View Full Version : Resolved Page Counter

10-29-2012, 02:33 PM
Just wanted to know what the correct procedure is for counting page views with a site.

If a user visited the homepage first and then the contact us page for example, do you cound that as 1 viewing or 2 viewings?

Also, do I need to retrieve information about a user using the $_SERVER global to determine if it is the same user viewing the separate pages?



10-29-2012, 02:50 PM
It's a minefield. Some forums count you looking at the same topic twice as two views while others will only count you if the number of replies has changed etc. Thats just forums..

I don't think there is any right or wrong answer here to be honest with you LC. It's more a preference of what you prefer. Many tracking programs count hits and then 'unique' hits - so you get to see both.

10-29-2012, 03:07 PM
Ah thank you for the clarification.

Given what you've said, I think I will increment the count when any of the pages are accessed. After all I suppose it could be classed as a 'page view' because we're viewing that new page/content so maybe it should be incremented like that.

Not only that, it looks better for me! :p

Thanks for the reply.

Kind regards,