Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to implement kind of a hit counter for the entire page (so how often the site was visited) in D7.

For D6 we got the Counter module, but is there any simple way to do it? Perhaps with a custom block and some PHP code?

share|improve this question
up vote 7 down vote accepted

You could use the core Statistics module as described here.

You could use Visitors module.

I use Google Analytics but this might be too heavy if you need a basic solution.

share|improve this answer
The link to the core module instructions no longer works (Jan 21 2015) – WorldsEndless Jan 21 '15 at 15:22

You could use the mostpopular module for this.

The module is pre-packaged with several services including:

  1. Drupal - Most Viewed pages (using Statistics module)
  2. Drupal - Most Commented pages (from simple database query)
  3. Google Analytics - Most Viewed pages
  4. AddThis.com - Most Shared pages
  5. Disqus.com - Most Commented pages The system defines Drupal hooks to allow new services to be created, which can pull data from third party providers or internally from Drupal.

The system also provides an API to help service plugins normalize their results and exclude certain pages, as configured by the administrator.

For more detail about the module you could visit this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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