0

I want show the number of views count in node.tpl.php with Drupal 7, but I cant find the Drupal 7 Equivalent of statistics_counter.

where can I find it?

1 Answer 1

2

The Statistics module shows you how often a given page is viewed, who viewed it, the previous page the user visited (referrer URL), and when it was viewed.

In Drupal 7 configure statistics via configuration > statistics.

To enable collection of statistics, the Enable access log checkbox on the Statistics settings page must be checked.

Enable Count content views to turn on and off the node-counting functionality. If turned on, an extra database query is added for each node displayed, which increments a counter.

Make sure you set permissions for the module at admin/user/permissions and configure it.

Based on drupal.org and http://groups.drupal.org/node/147619

1
  • You need the view post access counter permission to see the statistics_counter pseudo-link.
    – user49
    Nov 6, 2011 at 1:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.