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. IIMMI says:

    Hi Lee,
    I had tried to setup Analytics several times for my website but could only could setup with the help of this article. Thank you for helping with the complete information.

  2. ted hart says:

    Lee –

    Using as an example – why must your istructions be so “geeky”?
    I speak English quite well ; I have trouble with all the “code” of your instructions.
    Is it not possible to present your material in English? Weebly does….

  3. Hi Lee,

    Thank you for sharing this information, Definitely a must for anyone who has a website. Been using it for a while, very useful tool.

  4. Sagir Azam says:

    Hi Lee,
    Once again you have shared an excellent article. From now on we will have a complete knowledge of our website performance & visitors information. This way it will help us to make necessary changes on the website to perform our website well for target visitors/customers.
    Thank you once again.

  5. John F. says:

    Already I have created an account in analitics, Interesting tool, thanks Lee

  6. Magiclamp52 says:

    I agree google analytic tool is a must have for anyone promoting a website..http://www.magiclamp.pk/ 

  7. Karrie says:

    Yes, I do agree, Google Analytics is an excellent tool; i’m still learning how to use it properly so this article is great help.  Thanks for sharing Lee.

  8. Tezh73 says:

    it’s amazing how much help google will give for free…
    been using it for all sorts of info i.e. keywords,trend’s 
    http://terryhouseman.com

  9. Kizi says:

    Great! thanks for great information share about using Google analytic. 

  10. manojglobal says:

    Thank you for this
    amazing post! I have to bookmark!manojsingh1078.wordpress.com

  11. Leeannem says:

    Im just discovering how much detail google analytics can give, great stuff

  12. albert says:

    Google analytic does provide a lot of info if you know how it works. Will implement some of your advice and see how it goes. Many thanks.

  13. Vocso says:

    Great! thanks for great information share about using Google analytic. I have got/learnt many hidden information.

  14. I agree google analytic tool is a must have for anyone promoting a website.

  15. philip says:

    I use google analytic and did’nt know it could give this much detail. Will look into it..
    Thanks

  16. greta information, thanks for share this with us

  17. thanks for important information Google analytic. I really appreciate it.

  18. Sagir Azam says:

    Thanks for the information.
    I was already using some features of Google analytics but I didnot know this one. I can track my website in a better way.
    Thank you for the information.

  19. Hey really nice info…..thanks For a gr8 full ainfo

  20. Hi there,

    I’m glad that you are showing the Google Analytic Tracking Code system. This is a tool that every website owner or internet marketer should consider applying to their arsenal of tools.Using the Google Analytic Tracking Code has proven to be a must have resource.

Leave a Reply

*