How-To track visitors to your website

This document will explain how you can track users to your website using Google Analytics.  By placing a small snippet of code at the bottom of every page on your website, you’ll be able to see how many people are visiting your site, how many clicks are performed on your site, and where they are coming from.  Some of the more advanced features allow you to track how many people follow a certain “flow,” enabling you to optimize a certain process.

Before you begin, you’ll need a Google account and a website.  If you don’t have a Google account, create one (You can even use an existing email address as your new Google Account).

1. Create a Google Analytics account
Go to to begin. You’ll see a box like this:

Access Analytics/Sign Up Now

Click on the Sign Up Now link, log in using your Google account:

Google Account Login

Then click the “Sign Up” button:

Sign up for Google Analytics

Enter your website information, then click “Continue”:

Website Information

Enter your contact information, then click “Continue”:

Personal Information

Agree to the Terms and Conditions:

Terms and Conditions

And then click “Create New Account”:

Create new Account

This completes the account creation section.  Now I will explain how to insert the tracking code onto your website.  Conveniently, once you create the account, Google Analytics will take you to a page showing the tracking code and simple instructions:

Analytics Tracking Code

2. Install the tracking code on your website
This is actually the tricky part. The idea is to place the tracking code right before the
tag of each page you want to track. This is going to be different for each website depending on the type of website you have.

Here are some instructions on installing Google Analytics on some of the popular types of sites:

  • WordPress
  • Blogger
  • … (more to come – comment if you’d like one in particular)

If your site is different from the ones listed above, you can still insert the tracking code. If you would like me to post a how-to, leave a comment and I’ll add to the list. Otherwise…

Copy the tracking code from Google Analytics:

Google Analytics Tracking Code

Open each page of your website and paste the code right before the </body> tag, like this:

Google Analytics tracking code installed

Your site might be set up to have a universal footer, which would make your life much easier.  This universal footer is included on every page to save time for the web developer.  It is typically called ‘footer.php,’ ‘footer.html,’ ‘footer.cfm’ (you get the idea).  If your site has a universal footer, you can insert the code just before the </body> tag.  If there is no </body> tag, just paste it at the bottom of the universal footer.

Once your tracking code is installed, let it gather some data for a few days and log into Google Analytics for the reports.

Leave a Reply

Your email address will not be published. Required fields are marked *