Gathering statistics on asp.net mvc?

Hi, I need some advice.

I need a way to track user activity on my site, without third-party tools (e.g. google anayltics).

Thus, basically, any request that comes to my site, I need to run an asynchronous task, which would collect information about the user and write to the database. What is the best way to do this?

I tried to write asynchronous httphandler, but I could not work. It fires several times for each request (for all resource files, such as css jpg ...).

+5
source share
1 answer

I am currently using log4net to do something like this.

log4net , . logger, ActionFilterAttribute, , , logger.

OnActionExecuting log4net, . , base.OnActionExecuting(filtercontext), mvc-, , .

+2

All Articles