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

Quick and Easy

Thanks Kristen,

Perfect example of an easy to follow quick tutoral - exactly what I needed this morning.

Phil

keep reloading the page, the node count keeps incrementing?

Keep reloading the page, the node count keeps incrementing. Is there any solution for this ?

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.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

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