This module extends the statistics module to count views over a rolling period (for example if you need to know how many times a node was displayed over the last 15 days).

Features

  • AJAX count (to work with Varnish caching for example)
  • Provides a view field corresponding to the daily count over the rolling period

The module does not yet provide every feature available in the base statistics module, but contributions are welcome.

Post-Installation

The count_content_views option of the statistics module needs to be enabled for view tracking to work.
You then need to configure the rolling period on /admin/config/system/statistics.

Sort a view by total count over daily period

The "Day count during rolling period" field available in views is a multi-valued field pointing to the daily count for each day of the rolling period.
So if you want to sort a view by total count over this period, you need to enable grouping on the view and set the grouping type for this field on "sum".

Supporting organizations: 

Project information

Releases