Documentation

Introduction

This following tutorial will explain how you can add the Google Analytics service to your website. Google Analytics can provide you with traffic statistics for the website, such as the amount of page views received in a given time period, or what the most visited pages are.

Step 1 - Create an Analytics ccount

You will first need to log into your preferred Google account (Note: your analyitcs data will be tied to the account you sign up with - if one does not exist, you may wish to create an account for your office or committee, as opposed to using a personal account). Next, visit https://www.analytics.google.com, and click the 'Sign Up" button.

On the signup page, fill out the form with the appropriate website information.

Account Name: Enter a name of your choosing. This will be the name associated with the Analytics service.

Wensite Name: Enter the name of the website that will be used with the Analytics service.

Website URL: The address of the website (ex. "name.house.gov").

Industry Category: Select the most appropriate category for the site.

Reporting Time Zone: Select the most appropriate time zone for the website's traffic data logging. 

Step 2: Retrieve UA Number

Once you have signed up for the service and filled out your website information, Google will provide a code snippet to add to your site. The only part of this snippet that is necessary is the UA number

In the example snippet below, the UA number is highlighed in bold red letters.

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21965116-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

Finally, copy the UA number, and email it to Support@gslsolutions.com, along with a request to add the Google Analytics service (or reply to an existing support ticket).

NOTE: If you do not automatically see the tracking code snippet after completing the sign-up process, see the "Find your Tracking ID" instructions from the following Google Help page to retrieve it: Set up Analytics Tracking