Google Analytics in 5 minutes

Written by niemi | Friday, May 25th, 2007
, , ,

For those of you unfamiliar with Google Analytics, it’s a tool that logs detailed information about your visitors. More details here.

How to integrate Google Analytics with your homepage or blog?

1. Sign up

2. After you have signed up, you will be asked to fill some forms. Enter your domain address (e.g. www.attackr.com), choose your account name and specify country and time zone.

3. You will be asked to fill in some personal information, do that continue and accept the terms.

4. Google now generates a JavaScript which will looke like this:

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

The unique part of that script is the numbers “1925799-1″.

5. Insert that JavaScript into your web site. Preferably into the footer or the header. Note that this should be done on all your pages (e.g. index.html, contact.html, portfolio.html).

If you’re running WordPress just paste the JavaScript to the footer.php or header.php. This ensures that the script is called on all pages.

6. Exclude yourself. It’s quite discouraging to see that your brand new blog have 20 visits only to find out that they all come from the same person, namely you. Therefore, after setting up your account and web site, you should immediately create a filter to exclude all hits from your own IP.

To do this go to the filter manager (beneath you web sites), click add filter, choose a name, from filter types select “Exclude all traffic from an IP-adress. Now you will have to enter your own exteranl IP-adress. If you don’t know it check it out here or here.

7. Typing the IP correctly. Now lets say that your IP-address is 80.175.125.99. You would then have to enter a backslash (like this \) before each stop. If you IP was 80.175.125.99 you would have to enter 80\.175\.125\.99

8. Last step. Choose the domain which you want the filter to be applied to and click “add”. Press finish and you’re done. Navigate back to the your welcome screen by clicking “Analytics Settings” and wait a couple of days for the first results.

Share and Enjoy:
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon

Related Posts:

Leave a Reply