Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Is Google Analytics GDPR Compliant? GA4 Consent, IP Addresses and EU Data Transfers

A plain answer to whether GA4 is legal in Europe: why regulators objected in 2022, what the Data Privacy Framework changed, how GA4 handles IP addresses, and the settings a marketer should review.

The EndFrame Team7 min read

Short answer: Google Analytics 4 can be used lawfully in the EU, but no analytics tool is GDPR compliant by itself. Compliance depends on how you deploy it. In practice that means asking for consent before GA4 sets its cookies, telling visitors that Google receives their data, choosing conservative retention and data sharing settings, and keeping email addresses and other personal data out of what you send. The big change since 2022 is the legal basis for sending data to the US. It is not legal advice; confirm your own setup with your counsel or data protection officer.

Why regulators ruled against Google Analytics in 2022

In July 2020 the Court of Justice of the EU struck down the Privacy Shield, the framework that had allowed data to flow to US companies. That judgment is known as Schrems II. The privacy group noyb then filed 101 model complaints against European websites that kept sending visitor data to Google in the US. In a decision published on 13 January 2022, the Austrian data protection authority (the DSB) ruled on the first of them: the website's use of Google Analytics broke the GDPR, because US surveillance law could force Google to hand data to US authorities, and the standard contractual clauses and extra measures Google offered did not prevent that.

Two details matter when you read those rulings today. They concerned Universal Analytics set-ups, and GA4 has since replaced Universal Analytics. And the problem was the transfer of personal data to the US, not the idea of web analytics. Online identifiers such as IP addresses and cookie IDs count as personal data under the GDPR, as Recital 30 makes clear, so the client ID in a Google Analytics cookie was enough to bring the data within the rules.

What the EU-US Data Privacy Framework changed

On 10 July 2023 the European Commission adopted an adequacy decision for the EU-US Data Privacy Framework (DPF). An adequacy decision means the Commission considers a country's protection essentially equivalent to the EU's, so personal data can go to organisations certified under the framework without additional safeguards such as standard contractual clauses. Google states that Google LLC has certified that it adheres to the DPF Principles. For a GA4 property, that gives the transfer to Google in the US the legal basis that was missing in 2022.

The framework has already survived one court challenge. On 3 September 2025 the EU General Court dismissed an action by a French citizen, Philippe Latombe, in case T-553/23, confirming that the US ensured an adequate level of protection when the decision was adopted. That judgment can be appealed on points of law to the Court of Justice, the court that struck down both earlier US frameworks.

A second line of attack opened on 29 June 2026, when the US Supreme Court ruled in Trump v. Slaughter that the protection of Federal Trade Commission members against removal by the President is unconstitutional. The framework relies on the FTC as an independent enforcer, so noyb asked the Commission to repeal it and announced an action to annul it. The decision stays in force until it is repealed or annulled. Treat the DPF as the current basis, not a permanent one, and before you rely on it in a privacy notice or vendor assessment, check the Commission's page on EU-US data transfers and the Court of Justice's case search for pending cases.

Does GA4 store IP addresses?

No. Google's help page on EU-focused data and privacy says Google Analytics does not log or store individual IP addresses from EU, Swiss or UK users. For that traffic, the IP address is received on servers in those regions, used only to derive location fields (city, region, country, subcontinent and continent), and discarded before the data is logged or forwarded for processing.

This reduces risk but does not take GA4 outside the GDPR. The IP address still reaches Google with every request, and the _ga cookie still holds a client ID that recognises a returning browser. Both are personal data. The IP handling limits how much is kept, which helps with data minimisation.

Consent comes first, and GA4 settings do not replace it

The consent requirement for analytics cookies comes mainly from the ePrivacy Directive, implemented in each EU country's own law, rather than from the GDPR itself. Storing or reading information on a visitor's device needs consent unless it is strictly necessary for a service the visitor asked for. GA4 cookies help you measure marketing; your site works without them, so they are not strictly necessary. The EU is negotiating changes to the GDPR and ePrivacy rules (the Digital Omnibus); until a final text is adopted and applies, these rules stand.

Some regulators allow a narrow exemption for audience measurement. The French CNIL's guidance, for example, exempts analytics cookies only if they are used strictly for audience measurement (and A/B testing), stay within one publisher's site or app, are not cross-checked with other data, truncate the last byte of the IP address and last no more than 13 months, among other conditions. The CNIL also notes that most large audience measurement offerings do not fall within the exemption, regardless of how they are configured. Do not assume GA4 qualifies anywhere without advice from someone who knows your country's rules. The UK has its own cookie law (PECR), whose storage and access rule was rewritten by the Data (Use and Access) Act 2025, with the change fully in force from 5 February 2026; our guide to UK cookie rules and the analytics exception covers what skips consent there.

Google's own contract adds a requirement on top of the law. Its EU user consent policy requires sites using Google products to obtain consent from users in the EEA, UK and Switzerland for cookies where legally required, keep records of that consent, explain how to revoke it, and identify each party that collects the data. For the banner itself, see our GDPR cookie banner requirements. For how GA4 reads the visitor's choice, see Google Consent Mode v2 explained and Consent Mode basic vs advanced, which also explains what advanced mode sends before consent.

Who is the controller: you, Google, or both

For Google Analytics, Google acts as a data processor and you are the controller. The terms that govern this are the Google Ads Data Processing Terms, which also cover Analytics. If your business is based in the EEA, UK or Switzerland they are already part of your agreement, and new accounts accept them automatically. An older account run from elsewhere that collects EU data should accept them under Admin, Account settings, Account details, Data Processing Amendment, Review Amendment (this needs the Editor role on the account).

Two choices change that picture. First, the data sharing setting called Google products & services lets Google use your Analytics data to improve its own products, and Google's help page says it is an independent controller of that data for GDPR purposes. Second, once data leaves Analytics through a product link, it becomes subject to the linked product's terms. Google lists Google Ads as a controller service under its Controller-Controller Data Protection Terms, with exceptions such as Customer Match and Enhanced Conversions. So linking GA4 to Google Ads and sharing audiences adds a second controller, and your privacy notice and consent wording should say so.

GA4 settings to review

  1. 1Data retention: in Admin, open Data retention under the property's data settings (Data collection and modification; some help pages still call it Data Settings). You need the Editor role. Standard properties offer 2 or 14 months for user-level and event-level data. This limits explorations and funnel reports, not standard aggregated reports. Pick the shortest period your analysis needs and record why.
  2. 2Google signals: Admin, Data collection and modification, Data collection. Turn it off, or use the settings icon next to the region count to disable it for EU countries. Historical data stays; new collection stops from that point.
  3. 3Granular location and device data: on the same Data collection screen. It is on by default and covers city (with its latitude and longitude), minor browser and operating system versions, the user-agent string, device brand, model and name, and screen resolution. Disabling it for a region reduces modelled conversions for that region.
  4. 4Data sharing settings: Admin, Account settings, Account details. Turn off any setting you cannot justify in your privacy notice, especially Google products & services.
  5. 5Product links: in Admin, check which Google Ads accounts are linked to the property and whether each link is still needed, since data that flows through a link falls under Google Ads terms.
  6. 6Deletion requests: GA4 can delete one user's data by client ID, user ID or app instance ID through the Analytics Admin API. Agree who handles erasure requests before one arrives.
  7. 7PII in URLs: Google's policies forbid sending personal data such as email addresses, including in page URLs and query parameters. Use GA4 data redaction on web streams to strip email addresses and named query parameters.

What GA4 handles and what stays with you

RequirementWhere GA4 helpsWhat you must still do
Consent before cookiesConsent Mode reads the choice from your bannerRun a consent banner, hold the tag until consent, keep consent records
Lawful US transferGoogle LLC is certified under the DPFWatch the framework's legal status and update your notice if it changes
Data minimisationIPs not stored; retention, signals and granular data settingsChoose and document the settings
Processor contractData Processing Terms in Account detailsCheck they are accepted if you are outside the EEA, UK or Switzerland
TransparencyNoneName Google, the purposes and any Google Ads link in your privacy notice
No PII sentData redaction for emails and chosen query parametersFix forms and URLs that put personal data in the page address
Erasure requestsUser deletion by client ID or user IDFind the visitor's identifier and submit the request

None of this changes if you move tags to a server. A server container gives you a control point to strip fields before they reach Google, but consent, notice and transfers still apply, as our article on whether server-side tracking is GDPR compliant explains.

Frequently asked questions

Is Google Analytics banned in the EU?

No. No EU law or regulator has banned Google Analytics as a product. The 2022 decisions found that specific websites had transferred personal data to Google in the US without adequate protection. Since the July 2023 adequacy decision, transfers to certified US companies such as Google LLC have a legal basis they lacked then, although the framework can still be challenged in court.

Do I need IP anonymisation in GA4?

No. The anonymize_ip setting belonged to Universal Analytics. GA4 does not log or store IP addresses, and for EU, Swiss and UK traffic it uses the IP only to look up location on servers in those regions before discarding it. The IP still travels with each request, so it is processed briefly, which is one reason consent and disclosure still matter.

Can I run GA4 without consent if I turn off Google signals?

Turning off Google signals reduces what Google links to signed-in accounts, but GA4 still sets first-party cookies with a client identifier. Those cookies are not strictly necessary for your site to work, so under EU ePrivacy rules they still need consent. Settings make GA4 less intrusive; they do not create a consent exemption.

Who is responsible if my GA4 setup breaks the GDPR?

You are. As the site owner you are the data controller: you decide to collect the data and why. Google acts as your processor for Analytics, which means it handles the data on your instructions under its data processing terms. A regulator would look first at the controller's consent, notice and configuration.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading