Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Statistics Counter

Security covered No further development 2,081 sites

Part of the Statistics ecosystem · 4 projects

This module extends Drupal's core statistics functionality by adding counters for daily, weekly, monthly, and yearly node views. These new counters can be integrated with Views to display, filter, and sort content based on view counts over different time periods.

This is a tiny module that extends Drupal's core statistics module by adding node counts for week, month and year.

The module integrates with Views. If you create a View and show fields, and select the category "Content statistics", the following fields can be used (also see screenshot on the right):

  • Most recent view (from core Statistics)
  • Total views (from core Statistics)
  • Views this month
  • Views this week
  • Views this year
  • Views today (from core Statistics)

The field "Most recent view" shows the the time of the most recent view. The other shows a count (integer).

You can also use those fields to order and filter content.

Requirements

  1. Statistics (core or contrib version for 2.x)

Installation

Install as you would normally install a contributed Drupal module. For further
information, see Installing Drupal Modules.

Configuration

The module has no menu or modifiable settings. There is no configuration. When enabled, counters for week, month and year becomes fields available to Views.

The three counters (week, month, year) are reset in hook_cron(). For
this to work, cron needs to run as frequent as you want the counters
reset.

Project Status

The module is minimally maintained and new features will not be added by its maintainers. Instead, the community is encouraged to use the core Statistics module for this use case, and requests for new features should be directed towards core.

Related Modules

  • Statistics (core)
    This core module shows a statistics counter indicating the total number of views at the bottom of the node and at block that exposes other statistics. You should explore whether the core already provides what you need before installing this.
  • Comment Counter
    Shows comment counts for day, week, month and year. (Drupal 7 only)
  • Statistics Filter
    Allows customizable filtering of hits from particular user roles or crawlers. (Drupal 7 only)
  • Views
    Let you show statistics about weekly, monhtly and yearly views for a node.
Drupal 10–11

Ask your assistant about Statistics Counter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2023
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 10–11 Aug 20, 2026
8.x-1.1 Stable 8–10 Aug 20, 2026
8.x-1.0 Stable 8–10 May 1, 2023