Home

What is Google analytics?

Google analytics is a free service that enables you to track and report on visitors to your website. Once you register for the service you will be given a small piece of Javascript code that needs to be added to your site. When pages are viewed the Javascript contacts the Goolge analytics server and records your visitors details such as browser type, length of time on site etc..

Set up your Google analytics

  • Sign up for a Google analytics account
  • Create new account from the My Analytics Accounts: option on the top right of the web page and follow the instructions.
  • Copy the script from the Standard tab on the final page.
  • Log into your website backend..
  • Select Extensions->Module manager.
  • Filter for Google and edit the module.
  • Set Show title is set to No.
  • Set Enabled to Yes.
  • Select Footer as the position (If you disable the Footer module your Google analytics will not work).
  • Select Public as the Access level listbox.
  • Select All menus from the Menu assignment section to ensure the script is displayed on all pages*.
  • Select Google analytics as the Banner client listbox.
  • Select Select Category from the Category list box (This means a blank selection).
  • Paste your Google analytics Javascript code into the header section.
  • Click Save.
  • Tools->Clean Cache to display the Cache Manager - Clean Cache Admin page
  • Check each box (or click the top box to select all boxes)
  • Click Delete

Sample Javascript code from Google analytics

<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-9999999-9"); pageTracker._trackPageview(); } catch(err) {}</script>

UA-9999999-9 is Google's tracking reference for your website.

* You won't see the Javascript code your web page as it's hidden. You can view it by viewing the page source :-

  • Google Chrome. A4 sheet icon->Developer->View source. Ctrl-F and enter tracker in the search box.
  • Mozilla Firefox. View->Page source. Ctrl-F and enter tracker in the find box.
  • Internet Explorer. Page->View source. Ctrl-F and enter tracker in the find box (Bottom of screen).