Additional Options
In the configuration file there are keys that can be set.
These let you add any block of HTML or Javascript code before or after the Analytics script block or cause gahelper to use the non-async script..
By default, the configuration file includes the following element:
<appSettings>
<add key="GAHelperGoogleAnalyticsID" value="UA-XXXXXX-X" />
<add key="GAHelperPreScript" value="" />
<add key="GAHelperPostScript" value="<!--Tracking by GAHelper-->" />
<add key="GAHelperNoAsync" value="" />
</appSettings>
You can edit the value of GAHelperPreScript and GAHelperPostScript however you like, as long as they are HTML encoded. GAHelperGoogleAnalyticsID should be your full Google Analytics ID. GAHelperNoAsync can be set to Y if you do not want to use the newer async loading method.
These elements likely don't need to be edited unless you have special circumstances
<httpModules>
<add name="GAHelperHttpModule" type="GAHelper2.GAHelperHttpModule" />
</httpModules>
and
<system.webServer>
<handlers>
<add name="HTML" path="*.html" verb="GET" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="HTM" path="*.htm" verb="GET" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>
</system.webServer>
Helpful Ideas
How to track links to PDF documents and more!
.