Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Download Statistics

68 sites Security covered Drupal 10–11
View on drupal.org

This module tracks file downloads on your Drupal site, showing which files are most popular. It offers a customizable block to display popular and recent downloads, and integrates with Views to provide download count data.

The Download Statistics module extends functionality of the core Statistics module and provides for Drupal 8/9 some file download statistics functionality that was available in Drupal 7 through Download Count module.

The file download statistics are useful in determining which files visitors most often download from your site. It provides a customisable "Popular file downloads" block that displays the most downloaded files today and for all time, and the last files downloaded. The block can be added to any region of your theme and it allows to configure the number of most recent downloaded files to display, the number of all time downloads to display and the number of day's top downloads to display.

The module provides extensive Views support: the views fields for Total File Downloads count, File Downloads Today count and Most Recent File Download timestamp.

The important configuration step for this module to be able to count downloads - as for any other module that controls or monitors files access - is to setup the "private" directory for the uploaded files. In the "Field settings" tab of the file upload field definition, make sure you select Upload destination: Private files. The private directory has to be configured in settings.php. If the upload destination is "Public files", the web server sends the file to client browser directly, bypassing Drupal code, and counting downloads is impossible.

Once you setup your files to go to a private directory, you can use the block from the module or you can build your own block with the views to show the attachments and their downloads right on a node page.

To enable/disable the file downloads count, navigate to Download Statistics Settings page at /admin/config/system/download-statistics. On the same settings page you can clear the file downloads table if desired.

To use the enabled download counter on a particular Views page or block display, select File URI with Download Count as URI Formatter type in Views UI.
To count downloads of an attachment from node or media page, select File with Download Statistics recorded as Format in Manage Display tab for a particular entity type.

Finally, set the necessary permissions so that the counter is visible to the users.

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • file Drupal core
  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Dec 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.1 Stable 10–11 Jul 16, 2026
1.2.0 Stable 10–11 Mar 5, 2026
1.1.0 Stable 10–11 Dec 2, 2025