I’m trying to make a post view counter, so far its easy, but i have following problem, when user reloads the page it gets updated again, i want track only raw, but not the reloads. How i could make this best? setting a cookie?
The the site: the site has over 10k+ posts, im not sure, if this done with a cookie would work 🙂
And about updating the DB, should i do it in realtime with update low priority, or saving the data and processing like every 5 mins?
Gimma please some input how i can make this. Thank you
Take the unique user by comparing ip | session Id | page Id if the combination of same value exists then don`t insert it or insert it but process later by taking unique values