For organisations operating websites in France, consent requirements affect how much they can learn from their analytics. CNIL allows certain audience measurements without consent, provided specific conditions are met. More detailed information about marketing campaigns and visitor behaviour generally requires consent.
A hybrid analytics setup allows organisations to combine both approaches: retain useful audience measurement for visitors who haven’t consented, while collecting more detailed data from those who have.
What can you measure without consent under CNIL rules?
The French data protection authority, CNIL, recognises an exemption for audience-measurement trackers that are strictly necessary for the operation of a website or app. It applies to narrowly defined purposes, including measuring site performance, identifying navigation problems, improving technical performance and analysing viewed content. CNIL sets out the conditions in its audience-measurement guidance.
In practice, this gives organisations a basis for measuring page views, popular content, page-load performance and certain basic interactions. The resulting reports must respect the exemption’s limits and produce anonymous statistics.
Visitors must receive appropriate information. Where the processing relies on legitimate interests, they must also have an easily accessible way to object. CNIL additionally recommends limiting tracker lifetimes, for example to 13 months, and retaining information collected through them for no more than 25 months, subject to review of what is necessary. The CNIL cookies FAQ explains the relevant right to object.
The exemption doesn’t cover tracking people across websites, combining the resulting data with other processing, or reusing it for advertising and marketing analysis.
Where consent-exempt analytics reaches its limits
CNIL’s exemption is intended for specific audience-measurement purposes, such as understanding which content visitors view, monitoring website performance and identifying navigation problems. More detailed analysis of marketing campaigns, purchases and individual visitor behaviour falls outside these restrictions in several important ways.
Campaign attribution
CNIL’s audience-measurement exemption excludes tracking for marketing purposes, including measuring advertising campaign performance, conversion channels and acquisition channels. Organisations that want to compare individual campaigns or attribute conversions to specific marketing activities therefore need a separate approach based on the appropriate consent.
Ecommerce reporting
CNIL allows certain cookies needed for shopping baskets and checkout processes without consent. However, this exemption doesn’t automatically extend to ecommerce analytics. Tracking individual orders, analysing product performance or attributing purchases to marketing campaigns generally requires consent when it involves non-exempt tracking.
Behavioural analysis
Website interactions such as page views, button clicks, scrolling and time spent on a page can be measured without consent, provided the tracking meets the exemption’s conditions. More detailed methods, such as Session Recordings that replay individual visits, fall outside the exemption and require prior consent.
Combining consent-exempt and consent-based analytics
The restrictions described above apply to analytics collected under CNIL’s consent exemption. Organisations can still collect more detailed analytics data from visitors who have given valid consent.
A hybrid setup combines both approaches on the same website. Visitors who haven’t consented can be included in restricted audience measurement, provided the exemption’s conditions are met and they haven’t exercised their right to object. For visitors who explicitly consent, additional analytics data can be collected for the purposes covered by that consent.
What organisations can measure under each approach depends on the purpose of the tracking and whether visitors have consented. The following comparison shows how this affects common analytics activities.
| Measurement area | Under CNIL’s consent exemption | With valid analytics consent |
|---|---|---|
| Site use and performance | Anonymous statistics on page views, navigation, loading times and basic interactions. | More detailed analysis of website interactions and performance. |
| Acquisition and campaigns | Measuring campaign performance and acquisition channels falls outside the exemption. | Analyse individual campaigns, traffic sources and conversions attributed to marketing activities. |
| Ecommerce | Measure permitted page views and navigation interactions, including on product and checkout pages. The exemption doesn’t automatically cover ecommerce sales and revenue tracking. | Analyse purchases, order values, product performance and conversions attributed to campaigns. |
| Visitor behaviour | Measure basic interactions, such as clicks and scrolling, through anonymous statistics. Individual journey reconstruction and session replay are excluded. | Analyse individual visitor journeys and use tools such as Session Recordings. |
The comparison describes the general measurement approaches. The features available in a specific analytics platform depend on its configuration and technical capabilities.
Visitors who refuse consent or haven’t made a decision cannot be tracked for purposes that require consent. Restricted audience measurement may still continue, provided it meets CNIL’s exemption conditions and visitors haven’t exercised their right to object.
For visitors who consent, organisations must ensure that any additional tracking stays within the purposes covered by that consent. They must also respect subsequent withdrawals of consent.
How Matomo supports different consent requirements
Matomo provides a CNIL compliance configuration and self-assessment for Matomo Cloud and Matomo On-Premise. In Administration > Privacy > Compliance, a super user can review and enforce the supported restrictions for individual websites or an entire instance. The assessment also identifies requirements that must be addressed separately, such as providing visitors with a way to object to consent-exempt measurement.
Matomo’s new Hybrid Tracking feature builds on this configuration. It allows organisations to continue collecting restricted audience measurements from visitors who haven’t consented, while collecting additional analytics data from those who explicitly agree. Both approaches operate within the same Matomo website configuration.
For consented visits, Hybrid Tracking currently supports:
- Marketing attribution: Collect campaign names, UTM parameters and more detailed referrer information, subject to the website’s privacy settings.
- User ID: Associate consented visits with a User ID where one is provided.
- Visitor-level reporting: View consented visits individually in the Visits Log and Visitor Profile, while keeping these views unavailable for visits without consent.
- Consent-based segmentation: Filter reports, API results and exports by consent state to distinguish consented visits from visits without recorded consent. Matomo currently groups visits where consent was refused or no decision was recorded under the same ‘unknown’ consent state.
Some capabilities remain restricted under Matomo’s CNIL configuration, even for visitors who consent. These include more detailed device information, real order IDs, Heatmaps, Session Recordings, A/B Testing and Advertising Conversion Export. According to Matomo’s documentation, support for these capabilities is planned for a future release.
To enable Hybrid Tracking, a super user must first activate the CNIL compliance configuration, then enable Hybrid Tracking for the relevant website or instance. The website’s tracking code or Matomo Tag Manager configuration must also be updated to distinguish exempt measurement from data that requires consent. The consent banner or consent management platform must communicate visitors’ decisions to Matomo.
Matomo continues to distinguish between withdrawing consent for additional analytics and objecting to consent-exempt measurement altogether. Organisations need to implement both correctly.
For the full configuration steps and current feature availability, see Matomo’s Hybrid Tracking documentation.
What this looks like for an ecommerce website
Consider a French online shop running paid search and email campaigns. A visitor arrives through a tagged campaign link, views several product pages and completes a purchase without consenting to more detailed analytics.
With an appropriately configured consent-exempt setup, the shop can include permitted page and site-performance measurements in its aggregate reports. Matomo’s CNIL configuration also retains overall ecommerce conversion and revenue figures and distinguishes campaign traffic, while removing individual UTM values and anonymising order IDs.
However, the availability of these figures doesn’t automatically mean they can be used for sales or marketing performance analysis without consent. The shop must ensure that its data collection and use remain within CNIL’s permitted audience-measurement purposes. Additional tracking for non-exempt purposes requires consent.
Now consider a visitor who actively consents to additional analytics. With Hybrid Tracking enabled, Matomo can collect campaign parameters, more detailed referrer information and, where configured, a User ID. The team can also examine consented visits through the Visits Log and Visitor Profile to better understand individual navigation and investigate potential checkout problems.
The moment consent is given matters. If a visitor consents while still on the original landing page, Matomo updates the existing visit with the campaign and referrer information from their arrival. If the visitor has already navigated to another page, Matomo starts a new consented visit with the next page view and attributes it to Direct Entry. Previously discarded data can’t be recovered.
The resulting reports answer different questions. Aggregate audience measurements cover a wider proportion of the shop’s traffic, while detailed campaign attribution and individual journey analysis rely on consented data. Teams need to account for these differences when interpreting campaign performance and customer journeys.
What to check before implementing a hybrid setup
Marketing, analytics and privacy teams should agree on the intended reports and tracking purposes before changing their configuration. A practical review should cover:
- Permitted purposes: Identify which measurements fall within CNIL’s audience-measurement exemption and which require prior consent. Review additional GDPR obligations and data transfers where relevant.
- Matomo configuration: Apply the relevant CNIL restrictions, review the self-assessment and complete manual tasks such as providing an accessible opt-out mechanism. Enable Hybrid Tracking and ensure that the ‘Force tracking without cookies’ setting is disabled, as it prevents Hybrid Tracking from functioning.
- Consent handling: Make sure your consent manager distinguishes between consent, refusal and the absence of a choice. Keep an objection to exempt measurement separate from a refusal of optional analytics. Check that your tracking code or Matomo Tag Manager configuration communicates consent choices correctly.
- Data boundaries: Review which information Matomo collects with and without consent, which restrictions remain in place for all visitors and who has access to the resulting data. Check custom events, other tracking tags, data exports and retention settings.
- Withdrawal: Make it easy for visitors to change their consent preferences. Matomo records consent at visit level, so withdrawal during an active consented visit takes full effect from the next visit. Review this behaviour with your privacy team, alongside any deletion or retention obligations.
- Testing and rollout: Test first visits, returning visitors, consent on the landing page, consent later in the journey, refusal, objection and withdrawal. Compare network requests with the resulting reports and verify that the configuration works as intended.
Find the right balance between audience measurement and consent
French organisations have room to build an analytics strategy that supports both their measurement needs and their visitors’ privacy choices. Combining consent-exempt audience measurement with consent-based analytics helps teams understand overall website performance while gathering more detailed insights where visitors have agreed to additional tracking.
With Matomo, you can configure both approaches within the same analytics platform, retain ownership of your data and control how you collect and use it.
Try it yourself and start your free 21-day Matomo Cloud trial to explore how Matomo can support your organisation’s analytics and privacy requirements.