Hi, could you give me idea how to calculate unique views of page? If i will increase counter on each page load it will be no good, otherside storing information of viewed pages in session looks like not ideal solution.
unacceptable - i'd like to use simple counter instead integration with analytics to fetch views count for page
Alexey Poimtsev
2010-05-25 10:41:17
+1
A:
If you don't want to increase the counter on every single hit, but only on the first time some user visists, you must store it somewhere. I would store it in a database table and store the session_id and the page in this table. Then I would increase the counter only if the current session haven't already visited the current page and then store it to the database.
jigfox
2010-05-25 09:43:27