Web Site Analytics

Importance of Web Analytics

Web Analytics is the collection and analysis of data about usage of your Web site. There are a number of good solutions available, including a number of free services. The most well-known free service is Google Analytics (see below for how to use it). There are excellent reasons for using some flavor of Web analytics, and no good reasons for not using it.

Setting Up Google Analytics

Google provides a free Web analytics service called Google Analytics. Once you sign up for an account with Google, you can register specific Web sites with the service. For each site registered, you receive a Javascript code fragment that is inserted into each page on your site. This Javascript code records usage info for your site, and the Google Analytics server collects and displays it. In this example, the code is standard for all sites using Google Analytics, but the unique ID assigned to your site is passed along to identify the transactions. Once you have inserted the Javascript code into your Web pages, it will begin to send transactions to Google Analytics. This code is usually placed at the very bottom of your HTML, just inside the closing <body> tag.

 

<!-- GOOGLE ANALYTICS -->
<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-1637920-14");

pageTracker._initData();
pageTracker._trackPageview();
</script>

 

Using Google Analytics

When you log into Google Analytics, you will have an opportunity to view the statistics about any Web site where you have installed the tracking code. Here are the top-level functions:

This just scratches the surface of what is available. There are a lot of tutorials out there about using Google Analytics, including material from Google itself.

CIS86 HomeContact DFFSiteMap • © 2009, Dennis F. Freeze