Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Statistics Counter

2,199 sites Security covered
View on drupal.org

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)

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.

Activity

Tracked releases
2
Tracked since
Aug 2026
Latest release
3 days ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.0 Stable Aug 20, 2026
8.x-1.1 Stable Aug 20, 2026