How to track & measure your traffic using google analytics

April 3rd, 2010 by admin Leave a reply »

Hi,

In this article I’ll explain how to track your website visitors in detail and then analyze this information and put it to good use.

Many websites are NOT using any kind of traffic tracking software, this tracking software which normally runs in the background of websites is often referred to as analytics.

You may be using the logs in your website hosting control panel to get an insight into your website traffic, but this doesn’t give you the in depth details that a proper analytics program can give.

What details can I get?

You can get a really good information about where your traffic is coming from, I personally use it to check these types of details:

They are separated into three main areas (Visitors, Traffic sources, Content) that can also be crossed referenced.

Google Analytics

Visitors-

Monthly,weekly, daily, hourly + compare to last month, set time scale to anything

Pages per visit, Time on site, Bounce rate, % New visits

Internet browser type and version, Geographic location

+++ Many more details

google analytics visitors

Traffic Sources

Pie chart of where traffic is coming from, and also list view.

What keywords people used when they arrived at your site

These details can be used with other data from the analytics, for example if you crossed it with geographical data it could show that 80% of visitors from India found you using Google, but only 40% of your UK visitors came from Google and this shows that your website is more visible on the Google India than Google UK or it could show more people in India are looking for you than they are in the UK. You would need to dig a little further to find out why.

+++ Many more details

google analytics sources

Content

Most popular pages, landing pages, exit pages, pages with high bounce rates.

What traffic sources go to what pages, is all your Google traffic just for one page?

Page navigation, if they land on index.html where do they go next?

+++ Many more details

The tracking software that provides all these details and the one that I highly recommend you use is called Google Analytics and as the name suggests it’s made by Google and it’s entirely free and also very simple to use.

I’ll show you how to install the software and get up and running with it.

Goto Google Analytics and create an account if you don’t already have a google account.

Once logged into the Google analytics page, you need to click  “Add WebSite Profile”

Then select “Add a Profile for a new domain” enter your websites domain name in the box “www.mywebsite.co.uk”

Tick apply Google adwords cost if it applies to you (tick it if you pay for ads using adwords with this website).

Click Next

What are you tracking? Most people will need “A single domain”

Copy the code in the box on the right side.

You need to add this code to every page in your website that you want to track.

Before you make any changes to your html its always a good idea to backup the site just in case something goes wrong.

The code goes into the html just above the </body> tag

It should look like this when added to your page

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-10101010-19″);
pageTracker._trackPageview();
} catch(err) {}</script>

</body>

</head>

If you have a good html editor like dreamweaver you can use the find and replace feature to edit all your pages very quickly.

Open find and replace from the edit menu, enter in the find box

</body>

</head>

Enter in the replace box your analytics code + the closing body & closing head tag like this

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-10101010-19”);
pageTracker._trackPageview();
} catch(err) {}</script>

</body>

</head>

Then select all pages in site and then click replace all.

Your pages have now been updated, you can now upload them to your website using your preferred ftp program.

Hope you like this introduction to analytics, I will add a video here soon that wil go into more detail and show the best features and how to use them properly.

Comments always welcome,

Lee

Advertisement

107 comments

  1. Martin says:

    Already using this but info is refreshing

  2. ecco boots says:

    In my view, in fact, doing so is right, very supportive of your point of view.
    Feel your article is very unique, great, reading your article is a pleasure.

  3. ian says:

    this looks a great idea i need to find how people reach my site where they come from

  4. ANU says:

    Hi Lee,

    thanks for sharing.

    bye.

    Anu.

  5. Thank you very much for the info and knowledge is superb, really amazing experience to meet with you, once again thank you and then I will publish in my blog content in Indonesian translation from google facilities, but sorry might not sesusai originally because I still have trouble HTML data processing

  6. Romeo says:

    In fact this simple way will help to know about real time visitors and more to websites. I am also using Google Analytics for my site to make more successfully. Overall I think “bounce rate” is very important topic because this is depend on quality content which is providing to users and they decide the time of stay on website. I want to say to “free-web-submission” team that I am not clear about Goal so please tell me and others about it.

  7. minka kelly says:

    Google Analytics is good software to track visitors come to my blog. I am glad to know my visitors complete. But I do not know what have I to do after that. It means, what is important for me to do so that my blog more successful and higher incomes. Maybe someone can tell me. Thank you.

  8. Thanks for giving details to know how important google analytics

  9. JNG WEB says:

    Thanks for information.

    Can you make a comparison between analytics and piwik ?

  10. Jerome says:

    Thanks. I know and use Google analytics. An other tools is Piwik (it’s free and open source and is like Google analytics)

  11. Sarah Jo says:

    Thanks for this information,i use this software only, i know how important is Google analytic. thanks again

  12. Chris says:

    Great article for beginners to Google Analytics. The bit about where to put the code was particularly useful. Thanks guys.
    Chris

  13. Ravi Mehta says:

    Thanks for Information

    I like this. Its very useful

    Thanks

  14. Kodil says:

    Thanks for this information, now i know how important is Google analytic. I really appreciate it. I have used like your suggestion. thank you Lee

  15. richard says:

    just a pity u cant actually find out the e mail addresses of visitors.

    probably privacy laws etc..
    http://www.southportdoors.com

  16. burke says:

    thank for sharing

  17. fees says:

    Good stuf thanks lee

  18. Anton says:

    I’ve recently started using the service, and realized that without him I just had a full 0

  19. Henal says:

    Thanks Lee, You explain it better then google does. Have just done it and big thanks.
    http://www.theceilingwizard.co.uk

Leave a Reply

*