Have a question that has not been answered before? Feel free to flick us an email at hello@piwik.org and we shall pop the answer up here for all to see. Thanks!
The post Configure CNIL exemption opt-out tracking with a consent manager (CMP) appeared first on Analytics Platform - Matomo.
This guide provides general technical implementation advice. It does not constitute legal advice. Consult with a qualified privacy professional to ensure full compliance with applicable laws.
Website owners are responsible for their website’s compliance with privacy laws. This includes responsibility for collecting and retaining a log of their visitors’ valid tracking consents where required.
A Consent Management Platform (CMP) helps website owners manage visitor consent for cookie-based and cookieless tracking. It typically presents visitors with a consent banner explaining data processing activities and allows them to accept or decline specific purposes, such as Analytics or Marketing.
You can integrate a consent manager with Matomo using the Matomo tracking code or Matomo Tag Manager.
Matomo supports three tracking approaches, depending on your organisation’s legal requirements and tracking needs:
This guide provides general guidance for configuring a consent manager (CMP) for visitors to opt-out tracking when CNIL compliance is enabled in Matomo. These steps are not specific to a particular consent manager and may vary depending on the CMP you use.
To set up consent-based or adaptive tracking for your consent manager, refer to the CMP-specific integration guides.
The French supervisory authority, the Commission nationale de l’informatique et des libertés (CNIL) permits certain forms of website analytics to be used without prior consent, provided that strict conditions are met. This is commonly referred to as CNIL consent exemption for audience measurement tools. Our self-assessment against CNIL consent-exemption criteria can be found here.
Note: To comply with this exemption, you must implement the necessary settings in Matomo to ensure data collection remains privacy-friendly and adheres to CNIL’s guidelines.
Refer to the Matomo Analytics Configuration Guide and Self-Assessment as required for CNIL consent-exemption (English version or French version).
While CNIL’s exemption is specific to France, supervisory authorities in a small number of other EU countries have also exempted narrow scope of website analytics from consent (with opt-out right). The Opt-out tracking method can also be used in the context of those exemptions, if Matomo is configured in line with the specific requirements. Refer to the ePrivacy Directive overview, National Implementations, and Matomo’s Website Analytics Guide for details.
Configure the Consent ManagerTo configure tracking under the CNIL exemption (opt-out model), it’s important to assess whether your site qualifies for this setup. Consult with your data privacy officer or legal team before relying on the CNIL exemption.
If you fully comply with CNIL’s criteria for exempt audience measurement tools, there are different approaches you can take to integrate with your consent manager platform (CMP). Some consent managers provide specific CNIL settings, for example:
config.js file lets you set optOut: true to load the Matomo service before consent is given. When setting up opt-out tracking under the CNIL exemption, follow these guidelines for your consent manager and website configuration:
If you do not use a CMP to provide the Matomo opt-out mechanism, you can provide one directly on your website using one of the following methods:
If you are using Matomo Tag Manager in an opt-out configuration:
Once configured, test the tracking behaviour and validate your privacy compliance setup.
mtm_consent_removed cookie is set. This test confirms that the integration respects the user’s choice to opt out and behaves in accordance with CNIL’s exemption criteria.
⚠️ If you use Matomo features like Heatmaps, User ID, Ecommerce, Advertising Conversion, or Session Recording, or you want to access or export raw data, you must switch to Consent-based Tracking, as these features fall outside the exemption. Refer to the CMP-specific integration guides to configure consent to track.
Previous FAQ: Configure Matomo Analytics to comply with CNIL consent exemption
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Integrate Silktide consent manager CMP with Matomo | 0 | 8.88 | 30-09-2026 |
| 2 | Integrate Silktide consent manager CMP with Matomo Tag Manager | 0 | 8.03 | 30-09-2026 |
| 3 | Configure consent for marketing tags in Matomo Tag Manager | 0 | 8.03 | 04-09-2026 |
| 4 | Integrate the Matomo MCP Server with a third-party MCP client | 0 | 9.74 | 20-09-2026 |
| 5 | Ask Matomo | 0 | 10.77 | 14-09-2026 |
| 6 | Configure tracking for Crash Analytics | 0 | 9.15 | 28-09-2026 |
| 7 | Track Goals using server-side tracking | 0 | 12.93 | 03-09-2026 |
| 8 | Add custom metrics to Custom Reports | 0 | 8.49 | 04-10-2026 |
| 9 | Do Session Recordings capture browser form validation messages? | 0 | 8.59 | 18-09-2026 |
| 10 | Healthcare Website Tracking: Lessons from Four Recent ECPA Rulings | 0 | 8.44 | 22-09-2025 |