Using Google Analytics
There are quite a few options when trying to report statistics on your page views. Of all of the options we have used, custom reports from the raw logs via grep, AWStats (which is a great open source resource for basics stats), but we are really falling for the free Google Analytics. We have seen botched installations of Google Analytics so we wanted to make a few tips absolutely clear.
First and foremost, take your time. Google Analytics installation will take about 60 seconds, so spend your time reading and listening to the video tour. Everything we are about to tell you is in the documentation, however. we have seen several complaints about the free system all related to not following the instructions. If you have created your website with a few basic tips that we also deploy our websites with, it can't get any easier.
The basic tip we are speaking with that will help you with your Google Analytics statistics is to create a footer include for your site. Header, menu, and footer includes allow you to make changes in one location that is automatically updating your entire site. If you pages are written in php this is easily done with the include instruction. If you are using straight html, do a javascript include. Either way this makes the rest of the Google Analytics installation very easily.
First, signup for Google Analytics by visiting Google. If you already have a Google Webmasters account, click on My Account and signup for Google Analytics under the same username. Upon signing up it will ask you to submit the domain name you wish to gather data for. You will then be supplied with code to enter on each page you wish to gather data for. The biggest mistake that we see turns into our number one tip.
Google Analytics requires code to be inserted on each page you wish to gather statistics for. This code is a javascript insert that is hitting Google servers in order to calculate hits for your site. As you can imagine millions of pages are hitting this cluster of servers every second of every day. Would you think from time to time it might slow things down a bit. Sure! This is where the complaints come in. However, if you read the documentation carefully, and in turn install the code appropriately, it shouldn't impact your site.
The Google Analytics documentation specifies that you instal the code directly above the end body tag

