I log usage on my site, by simply recording when a sessions starts and ends, and then posting it to a database, when it ends.
But now, I am interested in abit more details. To be precise, I would like to know which pages, people visit.
Can I do this in global.asax somehow? Should I make a handler instead?
What I really want to avoid, is adding logging code, on all my pages.
I log usage on my site, by simply recording when a sessions starts and
Share
Google Analytics is the best way here.
Also, you can use Global.asax
BeginRequestevent. Here you can find theHttpContextand probably url of the requested bage.Also, as an option, you can use:
HttpModules
Base page for all of your pages, and hadle log data on Load event for example