Setting up Google Analytics

Published on January 25, 2009 by Mr nCoded   ·   No Comments

If you have a website and need to know how many people are visiting, where they are coming from, and what areas they are viewing (etc) then you need Google Analytics. There are some other metrics available but with Google being the world’s number search engine it makes sense to use Google metrics, especially if you use or intend to use Google AdWords.

Screenshot of Google Analytics

Screenshot of Google Analytics

In order to setup Google analytics on your website, just follow this guide for full details.

  • The first thing you need to do is sign-up for a Google Account at: https://www.google.com/accounts/ManageAccount
  • Once you have an account setup, log into it and find the section called ‘My Products’.
  • In the ’My Products’ section, Click the link called Analytics.
  • Once in the ‘Google analytics’ area, look for (and click) and link called ‘Add Website Profile’
  • In the ‘Add website profile’ area, fill out the ‘Website Address’ and ‘Time Zone’, then click Finished.
  • In the next page you will see a lot of text very similar to this below:
  • <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-1110811-25");
    pageTracker._trackPageview();
    } catch(err) {}</script>

  • This code will then need to be added to every page in your website; If you are a programmer then this will offer no problems and would probably be placed in footer.php or some similar type of included file.
  • If you are using a Blog, CMS, or other ‘prebuilt’ application, then you will need to find out where the footers are, or perhaps look out for a module, component, etc which adds Google analytics to your website; You will need to put the code above into this.
  • If you’re website has been created from scratch the you will need to look for the following tag: </body>, and place the code above it, on every page that needs to be monitored.
  • Once you have done one of these, then check the Tracking Status (on the same Google page as the analytical code, at the top of the page).

Once the Tracking Status shows that Google is receiving Data then you can be confident that Analytics is fully setup and ready for you to view your metrics (after around 24 hours of setting it up).

Tags:  , ,

Readers Comments (0)

Comments are closed.

Share & Review
Share

Review http://www.ncoded.com on alexa.com
Advertisment
Popular Articles
KingsCollegeChapelWest

Cambridge SEO, SEM & Web Marketing

With the Universtiy of Cambridge being on ...
seo1

2011 SEO Strategy using automated tools

After the massive response to my first ...
Social SEO Media

SEO Analysis of Amplify, Ping.fm, and Posterous

Most organisations spend time and effort on ...
danger

Bad Bad Web Techniques

OK it has been a long time ...
fishing_man

The Fisherman SEO Analogy

This used to be the main analogy ...
blogcomments

Blog Comments SEO

It would seem strange that most website ...
wp

WordPress SEO

Wordpress offers owners key requirements for SEO, ...
an

Setting up Google Analytics

[caption id="" align="aligncenter" width="500" caption="Screenshot of Google ...
Advertisments