Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.6 Update released for Drupal core (11.4.6)! Release: Drupal 10.6.16 Update released for Drupal core (10.6.16)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: Website Feedback 1.2.1 Minor update available for module website_feedback (1.2.1). Release: Field Group Markup 1.0.5 Minor update available for module field_group_markup (1.0.5). Release: Website Feedback 1.2.0 Minor update available for module website_feedback (1.2.0). Release: User Registration Link Pop Up 1.2.5 Minor update available for module url_popup (1.2.5). Release: User Registration Link Pop Up 1.2.4 Minor update available for module url_popup (1.2.4). Usage Milestone: Menu Condition Module menu_condition crossed 1,000 active installs. Module Revived: EzContent API - Enhanced De-coupled CMS Experience 2.3.9 Module ezcontent_api updated after 15 months of inactivity (2.3.9).

Nonce Piwik Plugin

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

This module automatically adds the Piwik PRO analytics tracking script to your Drupal site while ensuring it is secure by generating a unique nonce for Content Security Policy (CSP) on each request. It allows configuration of tracking settings, visibility, and cookie options to integrate seamlessly with your existing analytics setup.

Nonce Piwik Plugin integrates Piwik PRO analytics with Drupal's Nonce Generator module. It renders the Piwik PRO tracking bootstrap with a fresh Content Security Policy (CSP) nonce on every request.

Features

  • Adds the Piwik PRO tracking script automatically to the page.
  • Applies a CSP nonce to the inline bootstrap script and the dynamically loaded tracking script.
  • Configures the Piwik PRO container URL, site ID, data layer name, and cookie security options.
  • Controls tracking visibility by request path, user role, and content type.
  • Supports Drupal 10 and Drupal 11.

Post-Installation

Install and enable Nonce Generator and this module. Configure this module at /admin/config/security/nonce-piwik-plugin. Enter the Piwik PRO container URL and site ID, enable tracking, and review the visibility and cookie settings. Configure your site's CSP separately so it permits the configured Piwik PRO host in the directives required by your tracking setup.

Additional Requirements

  • Nonce Generator (required).
  • Drupal core's Path Alias module.
  • A Piwik PRO account and container.

Recommended modules/libraries

No other additional modules or libraries are required. A CSP configuration that allows the configured Piwik PRO endpoints is recommended.

Similar projects

Piwik PRO is the related general-purpose Drupal integration for Piwik PRO. Nonce Piwik Plugin is focused on nonce-aware tracking through the Nonce Generator plugin system and is intended for sites that need this CSP integration.

Supporting this Module

Please report bugs and feature requests in the Drupal.org issue queue.

Community Documentation

See the project README and the configuration help provided by the module. Contributions and documentation improvements are welcome.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jul 2026
Latest release
4 weeks ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Aug 6, 2026
1.x-dev Dev 10–11 Jul 20, 2026