.josh Posted October 27, 2008 Share Posted October 27, 2008 I just noticed that it even increments when you go to the next page of the tutorial/article/whatever. I know it's possible for people to follow some link to a specific page of something, so that should count as a view, but I think having it increment on every page view like that is misleading, artificially bloating the numbers, etc.. (I'm sure this was not intentional, of course). So I was thinking, maybe you could throw the IP address in a session var and check if it's there and the same from page to page, and not increment it if it is? Or alternatively, throw a GET var onto your pagination to check if the person accessed the page from one of the other pagination links. If they did, don't increment the counter. Quote Link to comment https://forums.phpfreaks.com/topic/130279-of-views-counter-on-main-site-content/ Share on other sites More sharing options...
Daniel0 Posted October 27, 2008 Share Posted October 27, 2008 For logged in members we could track which things they've read and prune log entries that are x days old. For everybody else we could use cookies. Quote Link to comment https://forums.phpfreaks.com/topic/130279-of-views-counter-on-main-site-content/#findComment-675668 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.