Is there a way I can display the number of views a node has had? Is there some type of data for this stored in the database?

Thank you :)

Comments

kae’s picture

me too

smallfluffykat’s picture

I believe the statistics module (in the core package) allows this but I'm not sure if it only stores views for a set time period.

slayerment’s picture

Okay, I just enabled the statistics module and was looking around for some type of table in the database. Do you know if this uses the watchdog table or something?

slayerment’s picture

I have checked the accesslog database and I don't see a nid column which makes it hard to figure out the number of hits. Is there any way to do this?

cmsproducer’s picture

In the settings section for the statistics module, you can choose to count views and to show or not to show the number of counts per node.

Naturally a table exists for it and you can look int he statistics.module to see what column the stuff is stored in. Let me know if you cannot find it. You can also get some good information using the tracker tab of any node, as well as statistics_filter to aggregate the numbers.
-----
Web Development, Production & Marketing Advice - http://www.cmsproducer.com/click/26/3

slayerment’s picture

Ok I found it. It's under the node_counter table. Thanks!