GDPR compliance for web analytics with EU data protection

GDPR-Compliant Analytics: A Practical Checklist for Businesses

Only 11% of EU cookie consent banners are fully GDPR-compliant. Nearly half of websites set tracking cookies before users even click “accept.” And since 2022, data protection authorities in Austria, France, and Italy have ruled that standard Google Analytics configurations violate EU data transfer rules. If you’re running analytics in Europe without a clear compliance strategy, you’re gambling with fines that start at EUR 20 million or 4% of annual turnover.

The good news: GDPR-compliant analytics is entirely achievable. This checklist breaks down exactly what you need — from cookie consent to data processing agreements to choosing the right tools — so you can measure your website without measuring your legal risk.

What Does GDPR Actually Require for Analytics?

GDPR treats any data that can identify a person — directly or indirectly — as personal data. In analytics, this includes IP addresses (confirmed by the CJEU in Breyer v Germany), cookie identifiers (GDPR Recital 30), device fingerprints, and client IDs like the _ga cookie in Google Analytics.

Three rules define the compliance landscape:

  • ePrivacy Directive (Article 5(3)): Any storage or access to information on a user’s device (cookies, local storage, fingerprinting) requires prior consent — unless it’s “strictly necessary” for the service. Analytics cookies are not strictly necessary.
  • GDPR (Article 6): Processing personal data needs a legal basis. For analytics with cookies, that’s consent. For cookieless analytics without personal data, legitimate interest may apply.
  • GDPR (Articles 44-49): Transferring personal data outside the EU/EEA requires adequate safeguards — the issue that triggered rulings against Google Analytics.
Complete GDPR compliance checklist for website analytics: consent, data processing, and transparency requirements

How Should You Implement Cookie Consent?

Cookie consent is where most websites fail. The EDPB’s Guidelines 05/2020 set clear requirements, and DPAs are actively fining violations. CNIL alone issued EUR 150 million to Google and EUR 60 million to Microsoft for non-compliant cookie banners.

Compliant consent must be:

RequirementWhat It MeansCommon Violation
PriorNo cookies set before user consentsScripts loading before banner interaction
Freely givenNo cookie walls; access doesn’t depend on consent“Accept cookies or leave” barriers
SpecificGranular choices by purpose/categorySingle “accept all” with no alternatives
InformedClear explanation of what each category doesVague “we use cookies to improve experience”
UnambiguousActive opt-in; no pre-ticked boxesAnalytics cookies pre-enabled by default
WithdrawableEasy to revoke; as easy as giving itNo way to change preferences after initial choice

The “Reject All” test: Your “Reject All” button must be equally prominent as “Accept All” — same size, same visual weight, same number of clicks to reach. CNIL’s EUR 150 million Google fine was specifically about making rejection harder than acceptance. Studies show that adding an equal “Reject All” button reduces consent rates by 20-30 percentage points, which is exactly why many sites avoid it — and why DPAs fine them.

Business professional reviewing GDPR privacy policy for analytics compliance

What Happened With Google Analytics and EU Data Transfers?

In 2022, a wave of coordinated DPA rulings shook the analytics industry. Triggered by 101 complaints from Max Schrems’ organization noyb, data protection authorities across Europe found that Google Analytics violated GDPR’s data transfer rules.

Key rulings:

  • Austria (January 2022): The DSB ruled that a website using Google Analytics unlawfully transferred data to the US. Google’s Standard Contractual Clauses were insufficient because US surveillance laws (FISA 702) allow government access, and Google holds the decryption keys.
  • France (February 2022): CNIL confirmed Google Analytics cookie IDs are personal data and gave websites one month to comply or stop using GA.
  • Italy (June 2022): The Garante gave websites 90 days to implement compliant measures or stop using GA entirely.

Current status (2026): The EU-US Data Privacy Framework (DPF), adopted in July 2023, provides a legal basis for transfers to US companies like Google that have self-certified. Google is on the DPF list. However, Max Schrems has announced plans to challenge the DPF (a potential “Schrems III”), arguing it doesn’t resolve the underlying surveillance issues. Many privacy lawyers recommend not relying solely on the DPF.

This is why many businesses are shifting to EU-hosted analytics alternatives — not because GA4 is currently illegal, but because the legal ground keeps shifting. As we covered in our guide to analytics migration pitfalls, regulatory uncertainty is itself a business risk worth mitigating.

Which Analytics Tools Are GDPR-Exempt?

France’s CNIL maintains an official list of analytics tools that can be used without cookie consent when configured correctly. The exemption applies because these tools, in their approved configurations, don’t set non-essential cookies or process personal data in ways that require consent.

ToolCNIL Exempt?Cookies?Data LocationConsent Required?
Matomo (configured)YesOptional (can run cookieless)Self-hosted or EU cloudNo (when configured per CNIL)
AT Internet / PianoYesFirst-party onlyFrance (EU)No (exempt config)
Plausible AnalyticsNo cookies to exemptNoneEU (Estonia)No
Fathom AnalyticsNo cookies to exemptNoneEU isolation availableNo
UmamiNo cookies to exemptNoneSelf-hostedNo
Google Analytics 4NoYes (_ga, _gid)US (DPF certified)Yes

The distinction matters: CNIL-exempt tools like Matomo require specific configuration to qualify. Privacy-first tools like Plausible and Fathom don’t need an exemption because they never set cookies in the first place — there’s nothing to exempt. For a detailed comparison, see our guide to cookieless tracking methods.

How Do You Configure Matomo for CNIL Exemption?

Matomo is the most popular self-hosted analytics platform that qualifies for CNIL’s cookie consent exemption. But the exemption requires specific configuration — the default installation does not qualify.

Required settings:

  1. Self-host on EU servers (or use Matomo Cloud EU). No US-based hosting.
  2. Enable IP anonymization: Mask at least 2 bytes (recommended: 3). So 192.168.1.1 becomes 192.0.0.0.
  3. Set cookie lifetime to 13 months maximum (visitor_cookie_timeout = 33955200 seconds).
  4. Configure data retention: Delete raw data after 6 months maximum. Aggregated reports can be kept longer, up to 25 months.
  5. Disable User ID tracking: No cross-device or cross-session identification.
  6. Disable cross-domain tracking: Each website tracked independently.
  7. Disable heatmaps, session recordings, and A/B testing plugins: These collect granular personal data and disqualify the exemption.
  8. Honor Do Not Track: Enable DNT browser setting respect in Matomo privacy settings.
  9. Provide opt-out: Embed the Matomo opt-out iframe on your privacy policy page.
  10. Do not combine data with advertising, CRM, or other processing operations.

Skip any of these steps and your Matomo installation requires cookie consent just like Google Analytics.

Working on EU GDPR compliance for website analytics tracking

How Much Data Do You Lose to Cookie Consent?

When you must show a consent banner, a significant portion of your visitors will decline. The rates vary dramatically by region and implementation:

Cookie consent acceptance rates by European country showing 35-65% range

In privacy-conscious markets like Germany and the Nordics, compliant consent banners see only 35-45% acceptance. That means more than half your visitors are invisible to cookie-based analytics. Your marketing KPIs and customer segmentation are built on a subset of your audience — and not a representative one.

This is the practical argument for GDPR-exempt analytics: it’s not just about avoiding fines, it’s about getting complete data. When no consent banner is needed, you capture 100% of visits instead of 40-60%.

What Should Your Privacy Policy Include?

GDPR Articles 13 and 14 specify exactly what your privacy policy must disclose about analytics. Missing any of these items is technically a violation:

Required ElementWhat to Include
Controller identityYour company name, address, and contact details
DPO contactData Protection Officer contact (if required under Article 37)
Purposes & legal basisWhy you track (audience measurement) and the legal basis (consent or legitimate interest)
Data categoriesWhat you collect: cookie IDs, IP addresses, device data, behavioral data
RecipientsName your analytics provider: “Google LLC” or “Matomo (self-hosted)”
International transfersIf data goes to the US, state the safeguard (DPF, SCCs)
Retention periodsHow long you keep analytics data (e.g., “14 months in GA4”)
Data subject rightsAccess, rectification, erasure, restriction, portability, objection
Complaint authorityName and link to relevant DPA (e.g., CNIL for France)
GDPR legal compliance framework for analytics data processing

Common Mistakes in GDPR Analytics Compliance

Mistake 1: Loading Analytics Before Consent

A 2023 Cookiebot audit found that 49% of websites set tracking cookies before users interact with the consent banner. If your Google Tag Manager fires the GA4 tag on page load regardless of consent status, you’re in this group.

Fix: Configure GTM to fire analytics tags only after consent is granted. Use a Consent Management Platform (Cookiebot, OneTrust, Usercentrics) that integrates with GTM’s consent mode to gate tag firing.

Mistake 2: Relying on IP Anonymization as a Silver Bullet

GA4 claims it “doesn’t log or store IP addresses.” But IPs are still processed for geolocation, and the data travels through US servers during processing. DPAs ruled this insufficient because the full IP is in transit to Google’s infrastructure. IP anonymization alone does not make GA4 GDPR-compliant without consent.

Fix: Don’t treat IP anonymization as a substitute for consent. If you use GA4, you still need a cookie consent banner. If you want to avoid consent, switch to a tool that never processes IPs.

Mistake 3: Ignoring Data Processing Agreements

Article 28 GDPR requires a written DPA with your analytics provider. Many website owners add Google Analytics without ever signing Google’s Data Processing Terms or understanding what they cover. The 2022 rulings specifically noted that Google also processes analytics data as a controller for its own purposes — a fact many site owners don’t realize.

Fix: Review and sign the DPA with your analytics provider. For Google, this is done in Google Analytics admin settings. Understand whether your provider acts as a processor or a joint controller. Self-hosted tools like Matomo eliminate this issue entirely.

Mistake 4: Assuming the EU-US DPF Settles Everything

The Data Privacy Framework provides a current legal basis for US transfers, but it may face the same fate as Privacy Shield (invalidated in 2020). Building your analytics strategy on a potentially temporary legal framework is risky.

Fix: Use the DPF as your current legal basis but have a contingency plan. Consider running EU-based analytics alongside GA4 so you’re not scrambling if the DPF is invalidated.

Mistake 5: No Process for Data Subject Requests

Under GDPR Article 17, users can request deletion of their personal data — including analytics data. If someone emails asking you to delete their data from Google Analytics, you need to know how to use GA4’s User Deletion API. Many businesses have never tested this workflow.

Fix: Document your process for handling data subject access and deletion requests for analytics data. Test it. The best approach is collecting minimal, anonymized data from the start — if data is truly anonymous, erasure requests don’t apply.

Which Compliance Path Is Right for You?

ApproachEffortData CompletenessRisk LevelBest For
GA4 + compliant consentMedium40-65% of visitors (consent-dependent)Medium (DPF uncertainty)Teams invested in Google ecosystem
Matomo (CNIL-exempt config)High (initial setup)~95%+ (no consent needed)LowBusinesses wanting full-featured analytics without consent
Plausible / FathomLow~95%+ (no consent needed)Very lowContent sites, small businesses, privacy-focused teams
Hybrid (GA4 + cookieless tool)Medium95%+ for traffic, consent-dependent for conversionsLow-MediumTeams needing both traffic data and ad conversion tracking

The hybrid approach is increasingly common: run a cookieless tool like Plausible for complete traffic data (no consent required), and keep GA4 with consent for users who opt in — giving you access to Google’s ecosystem features for the audience that consents. Combined with server-side tracking, this maximizes both compliance and data quality.

Continue Learning

GDPR compliance is one piece of the evolving privacy landscape. These guides cover related aspects:

Bottom Line

GDPR analytics compliance isn’t optional, and it isn’t as complex as it seems once you understand the framework. The choice comes down to: either implement proper consent (and accept that 35-60% of your EU visitors will be invisible), or switch to GDPR-exempt tools that give you complete data without consent banners.

For most businesses, the practical path forward is clear. Start with the checklist above. Audit your current consent implementation — chances are high it has gaps. Then evaluate whether a cookieless analytics tool, a properly configured Matomo instance, or a hybrid approach best fits your needs. The sites that get this right don’t just avoid fines — they get better data than their consent-dependent competitors.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *