How to add Analytics to your site

Google Analytics is a free service from Google that generates detailed statistics about the visitors to a website. Google Analytics can track visitors from all referrers, including search engines, display advertising, pay-per-click networks, email marketing and digital collateral such as links within PDF documents.

Sign-up for a free account

Sign up for Google Analytics - - to get a free account. If you already have a Google Account you can sign in with that.

and add a new website profile

Once you are signed in click the 'Add a website profile' link to add a profile for your website. In most cases you will need to indicate that you are 'adding a profile to a new domain'. Enter the url of your site, for example ''. Be sure to specify the correct timezone for the website too, and click 'Finish'.

Retrieve the tracking code

On the next screen double-check to see if tracking status information is correct. Copy the new tracking code (ga.js) and paste this code back into your Tank site.


With the tracking code from Google in your clipboard go to your site's Config screen and select the Tracking and code option. Paste the tracking code into the 'Header code' field, and click Save.

The 'Header code' variable is included on each page of your website - in other words you have now effectively adding tracking code on each page of your website by adding it in only one place.

Finishing up

Back at Google Analytics you can now 'Finish' adding the profile. You will be directed to an Overview screen where you'll be able to see the site's profile you just added. It might take a while (an hour or more) before the status reflects that tracking has been successfully added.

When will stats be available?

It takes up to 24 hours for tracking to start working - check back later to see your site's statistics. Please note that stats are measured from when you install Analytics the first time so please do this as early as possible after you upgrade your site to ensure historical data is available.

More info

Be sure to visit Google Analytics Help for getting starting, troubleshooting, understanding reporting, tracking and more.