Cookies & tracking
Is Google Analytics 4 GDPR Compliant? What Site Owners Need to Do
Google Analytics 4, consent, IP handling and EU–US transfers explained: the settings that reduce your GDPR risk and the alternatives to consider.
Few questions worry site owners more than "can I use Google Analytics?". The honest answer is: it depends on how you configure it, and on whether you ask for consent first.
Why it became controversial
In 2022 several European authorities, among them the Austrian, French and Italian ones, found that using the earlier Universal Analytics could involve unlawful transfers of personal data to the US. Universal Analytics has since been retired in favour of Google Analytics 4 (GA4). In July 2023 the European Commission adopted the EU–US Data Privacy Framework, which provides a basis for transfers to certified US companies; its future depends on legal challenges, so keep an eye on it.
What GA4 changes
GA4 does not log or store IP addresses, which removes the old "anonymise IP" setting. That helps, but analytics cookies and identifiers still count as tracking: in most EU countries you need prior consent for them.
Configuration checklist
- Load GA4 only after the visitor accepts analytics cookies.
- Use consent mode correctly, understanding that it does not replace asking for consent.
- Shorten data retention to the minimum you need (for example 2 months instead of 14).
- Disable Google signals and advertising features if you do not use them.
- Sign Google’s data processing terms in your account settings.
- Mention Google Analytics, its purpose and transfers in your privacy and cookie policies.
Consent or not?
Some authorities allow a limited, privacy-friendly statistics exemption, but only when data is strictly aggregated, not shared and not used for other purposes. Standard GA4 does not fit that description, so treat it as requiring consent.
Alternatives
Privacy-focused, cookieless or self-hosted tools (for example Matomo configured appropriately, or Plausible) can reduce or remove the need for a banner for statistics. Check each tool’s setup and your national authority’s view.
Check your own site
Scanners look for analytics code present before consent. Learn more about cookie banner requirements and run a scan to see whether trackers fire too early.
Related checks in the Compliance Index
Find out what your website is missing
Scan it for free, then ask for a full report with a prioritised action plan.
Prefer expert help? Request a full compliance report →
Keep reading
- Cookies & tracking
Technical vs Profiling Cookies: Which Ones Need Consent?
Strictly necessary, preference, analytics and marketing cookies explained with examples, which need consent and how to split them in your banner.
November 20, 2026 · 5 min read - Cookies & tracking
Google Fonts, YouTube and Maps Embeds: The Hidden GDPR Risk of Third-Party Resources
Fonts, videos, maps and widgets load from other companies and send them your visitors’ IP addresses. Learn the risks and privacy-friendly alternatives.
November 12, 2026 · 6 min read - Cookies & tracking
Newsletter Consent and Double Opt-In: How to Stay GDPR Compliant
How to collect valid newsletter consent: unbundled checkboxes, double opt-in, proof of consent, the soft opt-in exception and easy unsubscribing.
October 27, 2026 · 5 min read
This guide is for general information and is not legal advice. Rules change and national laws vary: check with a qualified professional for your specific case.