Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.9 Minor update available for module photoswipe (5.0.9). Release: AI (Artificial Intelligence) 1.4.8 Minor update available for module ai (1.4.8). Release: AI (Artificial Intelligence) 1.3.13 Minor update available for module ai (1.3.13). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: Block Token 8.x-1.3 Module block_token updated after 18 months of inactivity (8.x-1.3).

Download Tracker

No security coverage Drupal 10–11
View on drupal.org

Full documentation is at https://blogs.jamesrome.net/download-tracker
Install using Composer

composer require drupal/download_tracker
drush pm:install download_tracker

Features

Download Tracker is a high-performance Drupal module that monitors administrator-configured server directories for file changes and software releases, tracks file reads and downloads, and automatically categorizes downloads into New Users, Version Updates, and Repeat Downloads

πŸ“‚ Watched Directory Management: Monitor any server folder (e.g., /sites/default/files/release, public://release, private://documents).
πŸ‘₯ Role-Based Download Control: Granular access permissions per directory (e.g. restrict to Authenticated users or leave open for Anonymous visitors).
πŸ” Report Permissions in UI: Conveniently configure which roles can view analytics directly from the module settings page.
⚑ Intelligent Version Auditing: Automatically computes SHA-256 integrity hashes on disk to detect file updates and increment release versions (v1β†’v2β†’ v3...).
πŸ“Š Visual Analytics Dashboard:

High-level summary metrics cards (Total Files, Total Hits, New vs. Update vs. Repeat).
Interactive data table with multi-column sorting across all metrics.
Drill-down per-file audit trail with SHA-256 version history and chronological access logs (IP, User ID, Referrer, User-Agent).
One-click CSV Export.

πŸ›‘οΈ Transparent Static Link Redirection: Direct links to static file paths (e.g. https://example.com/sites/default/files/release/app.exe) automatically redirect to the tracker endpoint so no download is missed.
πŸ€– Bot & Crawler Filtering: Automatically filters out search engine spiders (Google, Bing, Yandex, etc.) to keep your metrics clean.

Post-Installation

Configuration

Navigate to Configuration
β†’Media
β†’Download Tracker (/admin/config/media/download-tracker):

  1. Report Access Permissions: Check the roles permitted to view reports and statistics.
  2. Watched Directories: Configure your folders:
  • Machine Key: e.g., release
  • Label: e.g., Software Releases
  • Directory Path: e.g., /sites/default/files/release or public://release
  • Allowed Roles: Select roles allowed to download, or leave unchecked for open public access.

3. Click Save and Scan Directories Now.

TIP

Both standard paths with leading slashes (/sites/default/files/...), relative paths (sites/default/files/...), and Drupal stream wrappers (public://..., private://...) are automatically supported.

Additional Requirements

No

No

Similar projects

Supporting this Module

Community Documentation

Full documentation is at https://blogs.jamesrome.net/download-tracker

Note
Automatic Static URL Interception: If users or external sites access legacy direct links like https://example.com/sites/default/files/release/mycode_v1.0.exe, the module automatically intercepts the request, routes it through the tracker to count the hit, and streams the file immediately.
πŸ“ˆ Reports & Analytics
See above image for meanings of the colums

βš™οΈ Drush CLI Integration
Command : Alias: Description
drush download-tracker:scan drush dt-scan Manually triggers a scan across all watched directories to catalog new files or version bumps.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
4 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Sep 2, 2026