Skip to Content

Better Drupal Node Count Statistics

The Drupal statistics module keeps track of how many times a node has been viewed. The statistics module is an optional core module so just turn it on and it will start keeping track of your node views. It stores the data in the node_counter table and keeps track of daily views and total views.

If you are using the "Today's popular content" and "Popular content" blocks from the views module (like I am in the left sidebar), these blocks get their data from the node_counter data.

The problem with these statistics is that they also include views by admins and the author of the nodes, so it's not very accurate. Also, even if you aren't the admin or node author, if you go to a page and keep reloading the page, the node count keeps incrementing.

The way to improve your statistics is to install the Statistics Advanced Settings module.

1) Download module
2) Untar
3) Put in sites/all/modules/statistics_advanced
4) Turn on module via admin/build/modules
5) Configure settings via admin/reports/settings/advanced

You can ignore search engine crawls by installing Browscap module and checking the box on the settings (in 5) to ignore these.

Tagged in:
ALL COMMENTS ARE MODERATED AND SPAM WILL BE DELETED SO SAVE YOUR TIME AND MINE AND ONLY LEAVE A COMMENT IF YOU ARE REALLY LEAVING A COMMENT AND NOT TRYING TO LINK OFF TO ANOTHER SITE FOR SOME GOOGLE LOVE.

Comments

Post new comment - ALL COMMENTS ARE MODERATED - SPAM WILL BE DELETED!

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Powered by Drupal, an open source content management system