GAhelper for Google Analytics
ISAPI Filter or .NET HttpModule for IIS
Easily add Google Analytics to ALL your web pages in less than five minutes

How Long Does this Take?
The first time, it may take you 10 minutes, in the future it should take you about 3 minutes.

How do I use GAhelper?
If you have not already, set up a Google Analytics account.

Google provides instructions on how to add a piece of code to the bottom of every page of your website. For the classic urchin.js the code will look similar to this:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-XXXXXXX-X";
urchinTracker();
</script>

or for the newer ga.js will look 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-XXXXXXX-X");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Copy or write down the part highlighted in orange from the code you are provided and save it for later.

Choose a Version of GAhelper
There is an ISAPI version and a .NET version. You can in theory use either on any version of IIS, but here is our general recommendations:

IIS 7 users should almost always use the .NET version

IIS 5 or 6 users will probably want to use the .NET version if they are already using ASP.NET but might find the ISAPI version easier to use

If you are on IIS 5 or 6 and not really familiar with ASP.NET you probably want to use the ISAPI version



Installation: Step 1/3