Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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

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

 
discard

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.