Unique visitor counting in ASP.NET MVC
- by Max
I'd like to do visitor tracking similar to how stackoverflow does it..
By reading through numerous posts, I've figured out some details already:
Count only 1 IP hit per 15 minutes (if anonymous)
Count only 1 unique user-Login (per day?)
Now that leaves the question of the real implementation..
Should I log the two factors live into a table (and increase count)
| IP | timestamp | pageurl |
Or do the counting AFTERWARDS (e.g. using IIS log files - which don't include the user, right?
I know there're some similar posts outside, but NONE really has a great solution in my opinion yet..