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. This is really useful information.

  2. Hey, already been following your website for some time. I run a comparable blog but I always keep getting a lot of spam responses, tips on how to keep your blogging site so clean?

  3. Riaz says:

    It is very use full. I will use it for my site

  4. Tim says:

    Nice article, I will implement this at http://www.sim-plee.com Thank-you

  5. sootydan says:

    great info, ive got anylytics and adwords sites linked and waiting for my first results now

  6. Zohar says:

    Hi Lee

    Very useful info.
    Waiting for the video !!!

    Hope you will have something similar for bringing Traffic
    So we’ll something to be analyzed :)

  7. James Detty says:

    as long as it is free i need the buisness

  8. enver aydin says:

    Bhutan through us and let us be of service to you

  9. enver aydin says:

    Visit Bhutan through us and let us be of service to you

  10. enver aydin says:

    that will linger in your memories for a long time.

    Visit Bhutan through us and let us be of service to you

  11. 2cute4u says:

    I use google analytics.It sure helps me know that I’ve got a long way to go..and so I keep working on it.

  12. Info has been really useful getting my site http://www.offyoutrot.co.uk off the ground

  13. fatur says:

    your acticles and tips very useful. Thank a lot.

  14. binaya says:

    Thanks alot . it is useful information . I like it . I am using it 4 month before.

  15. Hetanshi says:

    Thanks…its really helpful…

  16. dodo says:

    Yes, I’ve already done it on one of my websites but can we do it on wordpress.blogs?

  17. Goembo Dorji says:

    We are committed to providing you the very best tour and travel experiences in Bhutan.

    For us, your comfort and travel experiences are of utmost importance and we assure you the quality and experience that will linger in your memories for a long time.

    Visit Bhutan through us and let us be of service to you……..

  18. kodil says:

    I’ve used it. google analytic help me a lot to monitoring my article directory

  19. I am not using Google Analytic now. I get statistics from my host which does not give me which country the visitor came from. Now if I add google analytic code also into each page, will there be a conflict and will my site page load times increase?

  20. faza says:

    your acticles and tips very useful. Thank a lot.

Leave a Reply

*