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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module tracks site activity such as page views, clicks, and downloads, storing this data for internal analytics. It uses a plugin system to allow for various types of tracking and custom data structures, with options for queue support and tracking downloads via a specific hook.

This module is intended for internal site analytics, treating things like page views, clicks and downloads as events which are recorded to a table, possibly to replace Drupal core's Statistics module.

Please be responsible when collecting data from your users.

Version 2.0

Usage type plugins are used to create specific tracking tables for whatever needs you may have. Plugins can define what is tracked and additional table schema if needed to store additional data.

.htaccess alteration

In order for this module to work, you need to allow the custom controller in your .htaccess. Below the Statistics module's rule add similar condition:

RewriteCond %{REQUEST_URI} !/modules/contrib/usage_data/usage_data\.php$

Features

  • A pluggable system to allow endless tracking abilities based on any event
  • A default "Generic" plugin that will track the most common page views from:
    • Node
    • Media
    • Taxonomy Terms
    • Commerce Products
    • Routes
    • Views Pages
  • JS-triggered tracking for click events (View README)
  • Custom Data Structures
  • Queue support to prevent DB stampeding (use via Redis, etc)
  • Track Downloads via hook_download()

Version 1.0

You can then pull your data out with Views Database Connector or by writing your own queries. You can add your own columns to the usage_data table by writing your own install hook (hook_install()) in a custom module.

See the README for the default table structure.

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
3
Tracked since
Sep 2025
Latest release
4 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0-beta3 Pre-release 9–11 Apr 13, 2026
2.0.0-beta2 Pre-release 9–10 Sep 9, 2025
2.0.0-beta1 Pre-release 9–10 Sep 8, 2025