Tracking cookieless & Consent Mode V2: Matomo, GA4 server-side, open-source CMP

Evaluez cet article !
[Total: 0 Moyenne : 0]

Cookieless Tracking & Consent Mode V2: Matomo, GA4 server-side, open-source CMP

TL;DR: in 2025, secure your measurement with a “granular consent + cookieless architecture” duo. Update to Consent Mode V2 (ad_user_data, ad_personalization), link your CMP and switch GA4 to an EU server-side container. If you need analytics without a banner, configure Matomo in CNIL exempt mode or strict no-cookie mode — otherwise, request consent.

Padlock placed on a laptop symbolizing data protection
Featured image — Cookieless does not mean “without framework”: it is first and foremost an architecture of trust and evidence (credit: Unsplash).

Definition & 2025 Context

Cookieless tracking = measuring performance by reducing (or eliminating) reliance on cookies, especially third-party ones, and relying on first-party signals, proprietary endpoints, and privacy-respecting attribution models. Consent Mode V2 is Google’s API that adapts tag behavior (reading/writing, pings, modeling) according to user consent within the EEA.

On the browser side, the disappearance of third-party cookies in Chrome follows an adjusted schedule, but the direction is clear: the ecosystem is migrating towards measurement and relevance APIs that are more respectful of privacy. The stakes for brands: data continuity, compliance, speed, and control.

Business & Compliance Challenges

  • Continuity of KPIs despite consent refusals and blocking of third-party trackers.
  • ePrivacy/GDPR compliance (CNIL in France): prior consent for non-essential trackers, clear information, and management of transfers outside the EU.
  • Performance: less JS on the browser side, improved Time to Interactive, better Core Web Vitals.
  • Sovereignty & auditability: prioritize first-party data, auditable CMPs, EU endpoints.

Consent Mode was updated at the end of 2023 with two additional signals. In 2024, Google strengthened the requirement to transmit consent for users in the EEA, both for personalization and for certain measurements.

SignalPurposeImpact if deniedImplementation notes
ad_storageAdvertising storage (cookies)No Ads cookies (conversion/remarketing)Managed by CMP → GTM/gtag
analytics_storageAnalytical storageGA4 works without cookies with limited pings/modelingAffects writing of _ga
ad_user_data (V2)Authorization to send user data to Ads systemsPrevents sending certain data to advertising platformsCritical for Customer Match / Ads measurements
ad_personalization (V2)Enables advertising personalization featuresNo remarketing/personalizationBlocks advertising audiences/segments
functionality_storageEssential preferences (e.g. language)Degraded functionalitiesCan be granted by default if strictly necessary
personalization_storageNon-advertising personalizationNo non-essential UX personalizationSubject to consent
security_storageFraud prevention / securityRisk of security false positives if deniedMay fall under strictly necessary

Official sources: Consent Mode guides and EEA requirements (Google), including the addition of ad_user_data and ad_personalization signals, and verification procedures with Tag Assistant. See: Google Developers (Consent mode overview & setup), Google Support (updates & enforcement), Tag Assistant troubleshooting.

Consent mode – Overview · Set up consent mode (web) · Updates for EEA traffic · Verify & update consent settings (GA4) · Troubleshoot with Tag Assistant

Practical implementation (web)

  1. Before loading tags: set the default state via gtag('consent','default', {...}) (usually denied except strictly necessary).
  2. Link the CMP: map choices (Analytics, Ads, Personalization) → Consent Mode states, including ad_user_data and ad_personalization.
  3. Verify with Tag Assistant (consent events, update transitions), and test cases “total refusal,” “analytics only,” “ads + personalization.”
  4. Log (DPO/IT): keep evidence of CMP version, mapping, and tests.
Lire aussi  List of Chrome extensions alternative to Keywords Everywhere for keyword analysis

GA4 server-side: architecture and best practices

Server-side tagging (GTM Server-Side) offloads execution and formatting of measurement requests to a server container (Cloud Run or other). Benefits: data control, reduced JS, resilience to blocking, first-party endpoint (collect.yourdomain.com via CNAME/proxy).

Server racks symbolizing server-side tagging
Server-side GTM: a buffer between the browser and measurement providers (credit: Unsplash).

Architecture Checklist (EU)

  • Hosting: server container in the EU region (e.g. GCP europe-west), restricted access, secure logs.
  • Domain: first-party subdomain (e.g. metrics.example.com) with TLS.
  • Consent relay: relay consent states to the server (headers/params) and condition sending to destinations.
  • GA4 EU: for the Measurement Protocol, use the regional endpoint https://region1.google-analytics.com/mp/collect.
  • Minimization: remove unnecessary IP/UA, mask free fields, limit granularity.
  • Observability: enable preview, test flows, monitor errors and latency.

Useful resources: GTM Server-Side (overview, intro, fundamentals), server-side Consent Mode, GA4 Measurement Protocol & EU endpoint.

Server-side GTM – Overview · Introduction · Fundamentals · Consent Mode server-side · GA4 Measurement Protocol

Matomo: exempt mode & no-cookie

The CNIL provides a consent exemption for certain strictly necessary audience measurements, under conditions (limited purposes, lifespan, no retargeting, no provider reuse, etc.). Matomo offers:

  • a no-cookie mode (disableCookies) and enhanced anonymization;
  • an exempt mode (CNIL configuration guide);
  • a consent mode if you extend the purposes (e.g. enrichments, segments).
Code screen illustrating Matomo implementation without cookie
Matomo: no-cookie and consent managed natively. The CNIL exemption remains strictly conditional (credit: Unsplash).

CNIL & Matomo references: CNIL pages “Audience Measurement” and exemption, note on transfers and proxying, Matomo guides (consent/no-cookie).

CNIL – Audience measurement solutions · CNIL – Measurement & transfers · Matomo – Tracking & consent · Matomo – Disabling cookies

Open-source CMP: Klaro!, Orejime, CookieConsent

A CMP must be accessible, auditable, and interoperable. Open-source options offer transparency and self-hosting:

CMPStrengthsConsent Mode IntegrationNotes
Klaro!Open-source, JSON config, purpose groups, multi-languageIntegrable via GTM (consent template) and hooksFree client; optional backend services
OrejimeLightweight, accessibility-focused, easy to styleCustom mapping to gtag/GTMActive community project
CookieConsent (Osano)MIT license, WP plugin, massive adoptionIntegrable with custom eventsOpen-source version ≠ commercial platform
Stylized analytics dashboard representing consent choices
Choosing your CMP: prioritize accessibility, traceability, and Consent Mode compatibility (credit: Unsplash).

For further reading: consult TCF v2.2 (IAB Europe) if you operate TCF advertising partners.

IAB Europe – TCF · TCF v2.2 – Launch

Deployment Playbooks

Playbook 1 — “Essential Measurement” (Matomo exempted)

  1. Map the “strictly necessary” purposes according to CNIL (traffic, service performance).
  2. Configure Matomo in exempted mode (IP anonymization, no retargeting, reduced duration) and/or no-cookie.
  3. Document (register, DPA, policy) and avoid any transfers outside the EU (or mitigate via compliant proxyfication).
  4. Inform the user (clear cookie policy) and offer an additional opt-out.

Playbook 2 — “GA4 + Ads Mix” (Consent Mode V2 + server-side)

  1. CMP: define exact categories and map → ad_storage, analytics_storage, ad_user_data, ad_personalization.
  2. GTM web: set default to denied (except essential), then update after user action. Test with Tag Assistant.
  3. GTM server-side: 1P subdomain, EU region, consent relay, filtering sensitive parameters.
  4. GA4: Measurement Protocol via region1.google-analytics.com/mp/collect, Data Filters rules and minimal retention.
  5. Audit: server-side logs, test plan (total refusal, partial consent, withdrawal), alerts.
Lire aussi  SEO FAQ: Content Optimization with Twixify | Boost Your Ranking

Playbook 3 — “Product teams / multi-sites”

  • GTM Templates to standardize consent checks and limit on-site code.
  • Event library (naming, mandatory params), shared between sites/apps.
  • Feature flags to activate new partners behind the appropriate consent.
  • Observability: consent status dashboards (rates by country), GA4 modeling rate, server-side health.

Cleaning, tag governance & data quality

A good transition to cookieless comes with a major cleanup:

  • Tag inventory: list everything that pulls data (GTM/Gtag, pixels, SDK), remove “zombie” history.
  • Streamline: one container per surface, sparing trigger rules, no vendor in “fire and forget” mode.
  • Block by default any destination that does not respect the consent status.
  • Quality: validate events (schema, cardinality), measure the drift between consented and denied.
  • Security: compartmentalize access, avoid secrets in the front-end, encrypt in transit and at rest.
Wiring and flow diagram illustrating tag governance
Tag hygiene: less noise, more signal (credit: Unsplash).

Trends 2025–2026

  • Third-party cookies: gradual phase-out in Chrome (Privacy Sandbox timeline): prepare experimentation and measurement plans with and without 3P cookies.
  • IP Protection & new protections in browsers: expect fewer passive signals.
  • Server-side by default for high-traffic sites: performance, stability, control.
  • Strengthened CNIL governance: compliance and transfer control, logging, security.

FAQ

Is Consent Mode V2 “mandatory” in Europe?

If you use Google tags/SDKs for advertising and measurement with EEA users, you must collect consent and transmit signals via Consent Mode. Without this, advertising and measurement features may be disabled or non-functional in accordance with Google policies.

Is GA4 cookieless enough to reconstruct data?

No. GA4 uses modeling when cookies are not available. This is useful for trends, not for individual tracking. Combine server-side, first-party data, and explicit consent when necessary.

Lire aussi  Tutorial: Set up Ryte Starter as a lightweight alternative to complex SEO platforms

Which open-source CMP to choose?

Klaro! if you want a well-documented free client, Orejime if you are looking for a lightweight accessible bundle, CookieConsent if you prioritize simplicity and the ecosystem (including a WordPress plugin). Check TCF compatibility if you need it.

How to avoid transfers outside the EU with GA4?

Use the EU endpoint of the Measurement Protocol, a GTM server in the EU region, minimize/mask data, and document protection measures. The EU endpoint does not exempt from all transfer obligations but reduces technical risks.

Matomo “exempt” vs “consent”: which to choose?

If your need is limited to essential traffic, try the exemption (strictly necessary). As soon as you add marketing purposes, retargeting, or advanced correlations, switch to a mode with clear consent.

Keywords & co-occurrences

Consent Mode V2, cookieless analytics, GA4 server-side, Matomo exempt CNIL, open-source CMP, TCF v2.2, EU region1 endpoint, proxyfication, privacy by design

Useful resources & sources


Conclusion: the right 2025 strategy is neither “all consent” nor “all model,” but an orchestra: Consent Mode V2 + reliable CMP, GA4 server-side in the EU for performance and control, Matomo in exempted or no-cookie mode for essential measurement, all documented and audited. You get more sustainable data, less regulatory exposure, and better loading times.

Need a cookieless measurement design for your stack? Let’s talk architecture, testing, and step-by-step migration.

Evaluez cet article !
[Total: 0 Moyenne : 0]
Julie - auteure Com-Strategie.fr

Julie – Auteure & Fondatrice

Étudiante en journalisme et passionnée de technologie, Julie partage ses découvertes autour de l’IA, du SEO et du marketing digital. Sa mission : rendre la veille technologique accessible et proposer des tutoriels pratiques pour le quotidien numérique.

Leave a comment