Google Analytics

Google analytics provides an amazing amount of data about your site.  It allows you to see the effect of a newsletter, adverts or some other marketing campaign.  You can see where your traffic is coming from and even see what your users are clicking on.

Analytics is very straight forward to set up from the Drupal side, all you need is your analytics account set up.

Go to: www.google.com/analytics

  1. Click 'Sign up' and follow the instructions to set up your account
  2. Sign into your Google account
  3. Click on Analytics
  4. Click sign up and follow the instructions (If you don't have a domain name set up you can enter any address and change it later)
  5. When you get to the end click 'Save'

You should now see a summary screen showing your site copy the code next to it starting: UA-

Now on your site:

  1. Go to: Site configuration > Google Analytics
  2. Paste in your tracking code
  3. Select 'Save tracking code locally' and save

Now:

  1. Go back to Google Analytics
  2. Click edit next to your site
  3. Click Check status and you should see it has picked up your site

Troubleshooting

If Google couldn't find your site first view the source of the homepage of your website and scroll to the bottom.  View source is available via your browser under something like View > Source, the Firefox shortcut is Ctrl + U.
Near the bottom you should see some text between <script type="text/javascript"></script> tags and near the bottom of that you should see your tracking code.