what is best practise on implementing hit counters?
Posted: Fri Dec 22, 2006 3:37 am
hello folk
i've implemented a simple hit counter (text file with value thats incremented each time page is opened).
naturally, there are problems with this (same person navigating back and forth between site in same session increases hit counter).
technically speaking this person is still visiting the page, but it wouldnt be a fair indication of the website's popularity.
your thoughts?
i'm thinking using some kind of session within the hit counter script to track if the user has already been here in this session. and setting some kind of auto-expire date on the session (since there won't be any login/logout procedure).
i want to avoid the "track ip address within mysql" approach.
thanks.
i've implemented a simple hit counter (text file with value thats incremented each time page is opened).
naturally, there are problems with this (same person navigating back and forth between site in same session increases hit counter).
technically speaking this person is still visiting the page, but it wouldnt be a fair indication of the website's popularity.
your thoughts?
i'm thinking using some kind of session within the hit counter script to track if the user has already been here in this session. and setting some kind of auto-expire date on the session (since there won't be any login/logout procedure).
i want to avoid the "track ip address within mysql" approach.
thanks.