Guide · Privacy
Is Google Analytics GDPR Compliant in 2026?
What changed for Google Analytics and GDPR since 2022, why consent is still needed for its cookies, and when a cookieless tool is simpler. Not legal advice.
· 3 min read
Short answer: you can use Google Analytics 4 in a way that meets GDPR, but it takes work, and "compliant" depends on how you set it up, not on the tool. This is a plain summary, not legal advice. Ask your own adviser about your situation.
What happened in 2022
After the Court of Justice of the EU struck down the Privacy Shield in 2020 (the "Schrems II" ruling), several data protection authorities looked at Google Analytics. In 2022, regulators in Austria, France and Italy found that specific websites' use of Universal Analytics was unlawful, mainly because personal data went to the US without enough protection.
What changed in 2023
In July 2023 the European Commission adopted the EU-US Data Privacy Framework, which lets data flow to US companies that certify under it. Google certified. That removed the main reason for the 2022 decisions, as long as the framework stands. A challenge to it was dismissed by the EU General Court in September 2025 and then appealed to the Court of Justice, so check its current status.
Google also built GA4 with more privacy controls than Universal Analytics. Google says GA4 doesn't log or store IP addresses, and it offers data retention settings and regional controls.
What still applies: consent for cookies
GDPR isn't the only rule. The ePrivacy rules (the "cookie law") require consent before storing non-essential cookies or reading them from a visitor's device. GA4 sets cookies. In the EU and UK that generally means:
- A consent banner before GA4 sets its cookies
- Consent Mode v2 if you use Google's advertising features in the EEA
- A privacy notice that names Google and explains what is collected
The practical effect: a share of your visitors decline, and GA4 doesn't see them as normal users. Your reports describe the people who said yes.
A checklist if you keep GA4
- Show a consent banner that blocks GA4 until visitors agree.
- Set data retention to the shortest period you need.
- Turn off Google signals and ad personalisation unless you need them.
- Don't send personal data (emails, names) in events or URLs.
- Sign Google's data processing terms in the admin settings.
- Name Google Analytics in your privacy notice.
When a cookieless tool is simpler
If you mainly need traffic and revenue numbers, a cookieless analytics tool avoids most of this work. Without cookies or local storage, the cookie-consent question is different, and you count every visitor, not just the ones who accept a banner. Whether you still need a banner depends on your jurisdiction and what else your site does.
DataFair offers both:
- Cookieless mode (
data-cookieless): nothing is stored in the browser. A daily visitor id is worked out from a keyed hash, and the IP address is never stored. - Consent mode (
data-consent="required"): no cookies and nothing sent until your banner callsdatafair('consent', true).
And unlike GA4 out of the box, DataFair records every payment from your provider, so revenue numbers don't depend on consent at all. Compare the options in GDPR-friendly analytics tools.
Related guide: A Google Analytics alternative built around revenue.
Questions
- Is Google Analytics illegal in the EU?
- No. The 2022 decisions concerned specific sites' use of Universal Analytics before the Data Privacy Framework. With the framework in place and a proper consent setup, many EU sites use GA4. Your adviser can confirm what applies to you.
- Does GA4 need a cookie banner?
- In the EU and UK, generally yes, because GA4 stores cookies that aren't strictly necessary.
- Is cookieless analytics automatically GDPR compliant?
- No tool is compliant by itself. Cookieless tools reduce the data collected and avoid storing anything in the browser, which simplifies things, but you still need a privacy notice and a lawful basis for processing.