Reputation: 3216
Which is the best way to implement visitor's logic?
Any other idea
Upvotes: 0
Views: 865
Reputation: 7723
Not sure I'm answering, but I would not implement that myself, but rather take a look at existing solutions. For basic counting :
For more detailed metrics about what each user does, I would go toward cohort.
A totally other option could be using just the log and something like lograge to log each request. It is very easy to add fields (such as the IP). You can then extract all the informations from your logs.
Upvotes: 2