Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Statistics Counter

2,160 sites Security covered Drupal 10–11

Part of the Statistics ecosystem · 4 projects

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 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.

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
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core 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 May 1, 2023