How to enable Google Analytics

The best way to track traffic on your Main Street Sites website is to sign up for a Google Analytics account. This free service will automatically track the traffic to each of your web pages. Here is an example of the kind of display you'll get with Google Analytics:



There is a field on the Site Options page of your Main Street Sites account for your Google Analytics ID. Once you put your Google ID in that field, we will hook up the pages on your site to Google Analytics. 
 
To enter your Google Analytics ID, go to Website > General > Site Options and select the "Settings" tab.


It's easy to get a Google Analytics account. Just go to http://analytics.google.com and click on the "Sign Up Now" link to get started.

After you have created your account, you'll need to add your website to the account. Click on "Add Website Profile" to tell them about your website.

Once you have provided information about your site, Google will give you some code to embed in your webpages.

It will look something like this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://
ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2414037-4");
pageTracker._initData();
pageTracker._trackPageview();
</script>

For the most part, you can ignore this code. However, it does contain the Google Analytics ID for your site. The ID is highlighted in the example above to help you find your ID.

If you take your ID from that code and save it as your Google Analytics ID in your Main Street Sites account, then Google will begin to track all of your pages, tell you where your traffic is coming from, and a variety of other useful features.
 
Note: It will take a day or so for any results to show up in your account.
*