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. Leesa Wood says:

    bookkeeping sunshine coast, bookkeeper sunshine coat, bookkeeping brisbane, bookkeeper brisbane, bookkeeping services sunshine coast, bookkeeping services brisbane

  2. Leesa Wood says:

    bookkeeping brisbane, bookkeeper brisbane, bookkeepers brisbane, bookkeeping services brisbane

  3. Pankay says:

    Hello Lee,
    Thanks for sharing this awesome way to analyse our site,till now I have been tracking from Google analytics but from now onwards i will go for this too.
    Once again thank you

  4. Thank you Lee for sharing this setup. I already wasting lots of time in try to set analytics. After seeing this script my problem solve in few minutes. Thanks again. Hope you share more articles which is useful for us.

  5. Aabha Tiwari 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.
    http://www.aabhatiwari.com/

  6. Mobile Phone says:

    Hi Lee,
    Valuable information, but needs it more novices
    Allow me to ask you?
    Why do not all visitors appear in the panel blogger control in Google Analytics?

  7. Google Analytics is free to use and gives marketers good insight on the traffic flowing in and out of their websites. Great Article Lee!

Leave a Reply to Mobile Phone

*