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). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). 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. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Piwik PRO

896 sites Security covered Drupal 9–11
View on drupal.org

This module integrates your Drupal site with the Piwik PRO analytics platform, allowing you to collect visitor data. It also offers a submodule to display key metrics directly within your Drupal admin interface.

A simple module to add the Piwik PRO container (with tracking code) to your Drupal site, making it easy to collect visitor data from any Drupal site. It also includes a submodule to view key metric data directly in Drupal.

What is Piwik PRO?

Piwik PRO is a privacy-first platform that offers advanced analytics features while allowing for full control of data. It provides flexible reports and data collection in addition to consent management, tag management and a customer data platform.

Analytics

Collect data across websites, apps, digital products and post-login areas. Customize how data is collected and analyze it with built-in audience, behavior, acquisition and conversion reports. Dive deeper with custom reports and access to raw data.

Installation

  1. If your site is managed via Composer, use Composer to download the webform module running composer require "drupal/piwik_pro". Otherwise copy/upload the webform module to the modules directory of your Drupal installation.
  2. Make sure you also install the dependencies:
    • Path alias (this is a core module and should already be installed)
    • Key module (required in Piwik PRO 1.4 and later)
    • For nonce support you need the CSP module
  3. Enable the 'Piwik PRO' module and desired sub-modules in 'Extend'. (/admin/modules).
  4. Set up user permissions. (/admin/people/permissions#module-piwik_pro)

Configuration for Piwik PRO

  1. Navigate to Administration > Configuration > Webservices > Piwik PRO
    to configure the Piwik PRO account.
  2. Container address: The account address with containers added to the address.
  3. Site id
  4. As default, every page except the listed pages in section what to track are tracked. Same applies for roles and content types. You can read more in section Page specific tracking.

Configuration for Piwik PRO analytics dashboard

To find your Piwik PRO Client ID and secret, log in to your account, click on your email address in the top right corner, select "API keys," and create or view your credentials.

  1. Make sure you have completed the piwik pro setup
  2. Configure Key module with your user secrets. To use environment variables for your client secrets you can follow key modules developer guide
  3. Navigate to Administration > Configuration > Webservices > Piwik PRO
    and switch to tab Dashboard.
  4. Give your Client ID and select the secret you created with Key api.
  5. Select the tracking features you want to track

Page specific tracking

The default is set to "Add to every page except the listed pages". By
default the following pages are listed for exclusion:

/admin
/admin/*
/batch
/node/add*
/node/*/*
/user/*/*

These defaults are changeable by the website administrator or any other
user with 'Administer Piwik PRO' permission.

Analytics Dashboard (introduced in version 1.4.0)

Piwik PRO Dashboard is a submodule for the Piwik PRO module.
It enables site administrators to view key analytics data directly within the Drupal admin interface. The dashboard can be accessed from the Reports admin menu.
Currently, the dashboard includes:

  • Overview metrics: Visitors, Page Views, Returning Visitor Rate, Bounce Rate, Visitors Over Time, Page Views Over Time
  • Top Pages
  • Device Breakdown

The displayed data can be toggled between the last 7 or 30 days.

The configuration for the Dashboard module can be found at /admin/config/services/piwik-pro/dashboard.
The dashboard can be accessed from /admin/reports/piwik-dashboard.

There are also new permissions that should be configured:

  • "Administer Piwik PRO Dashboard": Allows setting the required API information.
  • "Access Piwik PRO Dashboard": Allows viewing the dashboard and using the necessary API routes.

IMPORTANT:
To enable the dashboard, the site administrator must create an API key to obtain a Client ID and Client Secret. Remember to configure the base Piwik PRO module too.
For more information about authentication with Piwik PRO, see the official documentation:
https://developers.piwik.pro/reference/authentication

Dependencies

  • Path alias
  • Key module (required in Piwik PRO 1.4 and later)

Depends on

Dependencies of the latest stable release

  • path_alias Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
17
Tracked since
Oct 2024
Latest release
5 months ago
Releases (12 mo)
4 ▼ from 13
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.4.4 Stable 9–11 Mar 2, 2026
1.4.3 Stable 9–11 Jan 29, 2026
1.4.2 Stable 9–11 Sep 16, 2025
1.4.1 Stable 9–11 Sep 4, 2025
1.4.0 Stable 9–11 Jun 6, 2025
1.4.x-dev Dev 9–11 Jun 4, 2025
1.3.2 Stable 9–11 May 13, 2025
1.2.2 Stable 9–11 Mar 7, 2025
1.3.1 Stable 9–11 Mar 7, 2025
1.3.0 Stable 9–11 Feb 28, 2025
1.3.x-dev Dev 9–11 Feb 27, 2025
1.2.1 Stable 9–11 Jan 16, 2025
1.2.0 Stable 9–11 Jan 8, 2025
1.2.x-dev Dev 9–11 Dec 11, 2024
1.1.1 Stable 9–11 Dec 4, 2024
1.1.0 Stable 9–11 Oct 25, 2024
1.1.x-dev Dev 9–11 Oct 21, 2024