Adding Google Analytics to your site

Adding Google Analytics to your site

From pixyWiki

Jump to: navigation, search

Google Analytics is a great tool for finding how many people are coming to your site, where they are coming from and all sorts of other information, and it's free. There are other free (and of course paid) site statistic tools, notably Site Meter, and this guide can easily be adapted for these instead; the process would be very similar.

First of all you will need a Google account, you may already have one for your email address or another Google service, but if not you will need to register a new account with them. Once you have an account simply sign-in at http://www.google.com/analytics and follow the steps for adding your site, all you need is the domain name. You will be supplied with a bit of javascript which will look similar to this:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-000000-1";
urchinTracker();
</script>

Simply copy-and-paste the code you are given into your _footer template just above the </body> tag; this will make sure that the script is included in all of the pages on your site. The process can take about 24 hours before any statistics have been collected, so check back the next day and you should get an idea about who your visitors are.

Terms and Conditions | Privacy Policy | About | Contact us | Copyright © 2006-2008 Pixy® Ltd. All rights reserved.