Project DescriptionSAHM is the acronym for Simple Analytics HttpModule.
It's my implementation of an httpmodule injecting web analytics code.
Add the assembly in your asp.net
Add a few lines in the main web.config file
that's it !
Supported systems
- Google Analytics
- Piwik
- UserVoice
- OWA
How to use ?Add the assembly to your web application's bin folder
edit the main web.config
in the <configSections>
add
<sectionGroup name="SAHM">
<section name="google" type="SAHM.GoogleConfig, SAHM" allowLocation="true" allowDefinition="Everywhere"/>
<section name="piwik" type="SAHM.PiwikConfig, SAHM" allowLocation="true" allowDefinition="Everywhere"/>
<section name="uservoice" type="SAHM.UserVoiceConfig, SAHM" allowLocation="true" allowDefinition="Everywhere"/>
<section name="owa" type="SAHM.OwaConfig, SAHM" allowLocation="true" allowDefinition="Everywhere"/>
</sectionGroup>
then add the SAHM section
<SAHM>
<google Code="UA-XXXXXX-X"/>
<piwik Server="www.yourPiwikServer/" SiteID="YourSiteID"/>
<uservoice SubDomain="yourSubDomain" ForumID="YourForumID"/>
<owa Server="http://www.yourOwaServer" SiteID="SiteID="YourSiteID"/>
</SAHM>
and finaly in the <httpModules>
<add name="SAHM" type="SAHM.AnalyticsModule, SAHM"/>
If you only want one analytic system : remove the lines which are for the other systems
my blog post about this project :
http://www.sambeauvois.be/blog/2010/11/analyse-your-web-traffic-without-redeployment/If you enjoy it and want to be very kind you can check this link :
http://codecanyon.net/item/simple-analytics-module/141441