Welcome Guest, Not a member yet? Register   Sign In
number of page hits
#1

[eluser]junaids[/eluser]
is there a way to get how many times a page has been viewed..i.e. a view has been called?
#2

[eluser]drewbee[/eluser]
No, you would have to log it to a database or a flat file.
#3

[eluser]Dam1an[/eluser]
If you do end up logging thi (eg to a database or other) I would recommend using a post system hook so the extra query doesn't delay showing the user the rendered page, but does it after thats been sent to them
#4

[eluser]Thorpe Obazee[/eluser]
I'd use a database backend to increment a field value whenever a page is viewed. However, there are other options like Analytics if you don't want a CI solution.
#5

[eluser]skunkbad[/eluser]
If you are on a shared hosting account, many have the awestats program, and it shows this info. You don't need to install anything. I like to use statcounter.com to log site visits, but this doesn't really show what pages are most popular.




Theme © iAndrew 2016 - Forum software by © MyBB