Matomo Consents Integration

Consent-Controlled Analytics for Matomo

Matomo is often chosen for its privacy-first positioning and flexible deployment options. However, depending on configuration, Matomo may still require prior consent under GDPR and the ePrivacy Directive.

Intastellar Consents ensures that Matomo tracking only runs after valid user consent is granted.

  • No premature tracking.
  • No unauthorized analytics cookies.
  • No inconsistent consent states.

When Matomo Requires Consent

Matomo can operate in different modes. Consent may be required if you enable:

  • Tracking cookies
  • Cross-page user identification
  • Campaign attribution
  • Heatmaps
  • Session recordings
  • Any feature that stores or accesses non-essential identifiers

Even when self-hosted or configured for reduced data collection, certain setups may still fall within consent requirements.

IP anonymization and first-party hosting reduce risk, but they do not automatically remove the need for consent.

What Happens Before Consent

Until the required consent category (e.g. “Statistics”) is granted:

  • Matomo tracking scripts do not execute
  • No analytics cookies are set
  • No tracking requests are sent

The Matomo runtime is completely blocked.

How the Integration Works

Intastellar Consents controls Matomo execution through:

  • Script blocking at initialization
  • Category-based activation logic
  • Fetch, XHR, and beacon interception
  • Vendor-specific enforcement rules

Execution Flow

  1. Matomo tracking script is blocked by default
  2. User selects cookie preferences
  3. If “Statistics” consent is granted → Matomo initializes
  4. If declined → tracking remains disabled
  5. If consent is updated later → state changes apply dynamically

Consent Withdrawal Handling

If a user withdraws consent:

  • Further tracking requests are prevented
  • Matomo execution is halted
  • Existing cookies can be cleared (depending on configuration)

No additional analytics data is processed after withdrawal.

Compatible with Cookie and Cookieless Setups

The integration supports:

  • Cookie-based Matomo configurations
  • Cookieless tracking setups
  • Self-hosted deployments
  • Cloud-hosted Matomo instances

Consent enforcement remains consistent regardless of hosting model.