Statistics fields

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.
Supporting organizations: 
maintains the project

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution No further development
    No longer developed by its maintainers.
  • chart icon2,256 sites report using this module
  • Created by thmnhat on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases