Skip to content
GDPR guide

Is Google Analytics GDPR compliant?

Short answer: Google Analytics 4 can be used lawfully in the EU, but usually only with prior consent and a careful setup. The tool itself is neither "compliant" nor "non-compliant"; your configuration, your consent process and your documentation decide. This guide explains the three questions that matter and gives you a checklist.

PureMetrixLast reviewed 7 min read16 sources checked

The short answer

Many website owners ask whether they are "allowed" to use Google Analytics. The honest answer is: yes, if you do it properly. European regulators have not banned Google Analytics as a product. What they have done, repeatedly, is find specific setups unlawful, for example because GA ran without valid consent or because data went to the US without an adequate legal basis.

So the useful question is not "is GA4 compliant?" but "is my GA4 setup compliant?". Three topics decide that: consent for cookies, the transfer of data to Google in the US, and how you configure and document the tool.

GA4 stores identifiers on the visitor's device, most visibly the _ga cookie, so it can recognise a returning browser. Under Art. 5(3) of the ePrivacy Directive, implemented in Germany by § 25 TDDDG (formerly TTDSG), storing or reading information on a device requires consent unless it is strictly necessary for a service the user explicitly requested. Analytics is generally not considered strictly necessary.

That consent must be a clear, active choice. In Planet49 (C-673/17, 1 October 2019) the Court of Justice ruled that a pre-ticked checkbox is not valid consent. In practice that means:

  • GA4 may only set cookies after the visitor actively agrees.
  • "Reject" must be as easy as "accept".
  • Visitors must be able to withdraw consent later.
  • You need to be able to show that consent was given.

A side effect many teams notice: GA4 then only measures the visitors who accept. Depending on banner design and audience, a sizeable share of visitors can be missing from your reports.

2. Data transfers to the United States

Google LLC is a US company, and data collected by GA4 can be processed in the US. Under Art. 44 ff. GDPR such transfers need a legal basis. The history explains why this topic made headlines:

DateEvent
16 July 2020Court of Justice, Schrems II (C-311/18): the EU-US Privacy Shield is invalidated.
13 January 2022Austrian data protection authority (DSB) decides in a noyb model case that a specific Google Analytics use violated the GDPR because of US transfers. Other authorities reached similar conclusions in 2022.
10 July 2023European Commission adopts the adequacy decision for the EU-US Data Privacy Framework (DPF). Transfers to certified US companies have a legal basis again.
3 September 2025EU General Court dismisses the action against the DPF (T-553/23 Latombe).
31 October 2025Appeal lodged with the Court of Justice (C-703/25 P). The case is pending; check the current status.

Google is listed under the Data Privacy Framework, so transfers currently have a legal basis. Many data protection officers still prefer EU-only processing, because the framework's predecessors were struck down and the appeal is open. Google itself states that GA4 does not log or store IP addresses from EU users and offers regional controls for Google signals and granular location data.

Consent mode lets Google tags adjust their behaviour to the visitor's choice. Google describes two implementations:

Basic consent modeAdvanced consent mode
Tags before consentBlocked until the visitor agreesLoaded before the banner
If consent is deniedNo data sentCookieless pings sent to Google
ModellingNo GA4 behavioural modelling (Ads uses a general conversion model)GA4 behavioural modelling once the property meets Google's thresholds

With analytics_storage='denied', GA4 does not read or write analytics cookies. In the advanced implementation, cookieless pings still go to Google, and as part of normal internet communication the request includes data such as the IP address and user agent. Google uses these pings to model behaviour and conversions. Consent mode is therefore a way to fill gaps in the data, not a way to skip the banner. Read more in GA4 "cookieless mode" explained.

Checklist if you keep GA4

TaskWhy it matters
Load GA4 only through a consent management platformCookies only after opt-in consent (§ 25 TDDDG)
Offer "reject" on the first layerConsent must be freely given
Accept Google's data processing termsArt. 28 GDPR
Document GA4 in your records of processingArt. 30 GDPR
Name GA4, its purposes and the US transfer in your privacy policyArt. 13 GDPR transparency
Set data retention deliberately (2 or 14 months for user-level data in standard GA4)Data minimisation
Turn off features you do not need, such as Google signals or granular location and device dataData minimisation
Review the setup once a yearLegal basis and Google features change

Not legal advice

This guide explains the legal situation and Google's documentation as of 9 November 2026. Ask your data protection officer about your own setup.

The cookieless alternative

If you mainly need visitors, sources, campaigns and conversions, a cookieless tool hosted in the EU is often simpler. It does not store anything on the visitor's device, so the consent question of § 25 TDDDG usually does not arise for analytics, and data does not leave the EU.

PureMetrix works this way: no visitor cookies, a server-side hash with a salt that changes daily, processing on Hetzner servers in the EU and a data processing agreement under Art. 28 GDPR. You still need a legal basis (usually legitimate interest) and an accurate privacy policy, but you measure every visitor rather than only those who accept.

GA4 with consentCookieless EU tool (e.g. PureMetrix)
Cookie banner for analyticsRequiredUsually not needed for analytics
Visitors measuredOnly those who consent (rest modelled)All visitors
Data locationGoogle infrastructure, US companyEU servers
Advertising featuresGoogle Ads audiences, modellingNone
PriceFree (GA4 360 paid)From €6/month

Compare options in Google Analytics alternative for GDPR and best cookieless analytics tools.

How to decide

  • Keep GA4 if you rely on Google Ads audiences, conversion modelling or BigQuery exports, and your consent banner stays anyway for other tools.
  • Switch to a cookieless tool if you want complete numbers, fewer consent prompts and EU-only processing.
  • Run both for a while if you are unsure. Compare trends over a few weeks before you decide; this migration guide shows how.

Frequently asked questions

Is Google Analytics illegal in the EU?

No. Google Analytics is not banned. Regulators have found specific setups unlawful, mainly because of missing consent or, before July 2023, US transfers without an adequate basis. With valid consent and a careful configuration GA4 can be used.

Do I need a cookie banner for Google Analytics?

In practice yes. GA4 stores cookies such as _ga, and under § 25 TDDDG and Art. 5(3) ePrivacy that needs prior consent because analytics is not strictly necessary.

Does consent mode make GA4 consent-free?

No. Consent mode adapts tags to the visitor's choice. In the advanced implementation, cookieless pings are still sent to Google when consent is denied, and Google models the missing data.

Is the EU-US Data Privacy Framework still valid?

Yes, as of 9 November 2026. The General Court upheld it on 3 September 2025; an appeal (C-703/25 P) was lodged on 31 October 2025 and is pending.

Does GA4 store IP addresses?

Google states that GA4 does not log or store IP addresses from EU users. IP addresses are still transmitted as part of normal internet communication.

How long does GA4 keep data?

User-level data and key events can be kept for 2 or 14 months, in GA4 360 as well. Only other event data can be kept longer in GA4 360 (26, 38 or 50 months). Age, gender and interest data are always kept for 2 months.

What is the easiest GDPR-friendly alternative?

A cookieless analytics tool hosted in the EU, such as PureMetrix, Plausible or Simple Analytics, avoids device storage for analytics and keeps data in the EU. You still need a DPA and an accurate privacy policy.

Try cookieless analytics on your own site

14 days free, no credit card. EU-hosted on Hetzner, set up in a few minutes with the WordPress plugin or a snippet.

Start the 14-day trial See pricing