Add a way to disable tracking

Created on 18 June 2025, 10 days ago

Problem/Motivation

Currently it is not possible to disable tracking without disabling the module entirely.
Our uses cases are:

  • Our clients sometimes need to temporarily disable tracking but don't want to lose the module config and have to reset the domain and site ID when re-enabling tracking
  • We have a shared config across multiple environments and need an easy way to disable tracking on a specific environment by overriding a config key in settings.php

The matomo module has an option that does this: https://git.drupalcode.org/project/matomo/-/blob/5c36f08924771b5c001ad04...

Steps to reproduce

Proposed resolution

We could add a "Disable tracking" boolean setting.
If it is checked, piwik_pro_page_top() could return early.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024