Google Analytics 4 and GDPR: where things stand in 2026

What GA4 does with IP addresses, how Consent Mode works, where the Data Privacy Framework stands and what websites in Switzerland and the EU need to keep in mind.

Updated on · Reading time: approx. 6 minutes

In short

According to Google, GA4 does not store IP addresses of users in the EU, Switzerland and the UK, but uses them briefly to determine location. GA4 sets cookies and therefore usually needs consent in the EU. Even in advanced Consent Mode, the tags send pings without consent. The Data Privacy Framework for transfers to the USA has held up before the EU General Court, and an appeal is pending. In Switzerland, protection has been considered adequate for certified US companies since September 2024.

What GA4 collects and stores

GA4 works with cookies and records events such as pageviews, scroll depth and clicks. On IP addresses, Google writes that IP masking is not necessary in GA4 because IP addresses are not logged or stored. For users in the EU, Switzerland and the UK, Google says it uses the IP address only to derive location, on servers in those regions, and discards it immediately afterwards. So it is still collected, just briefly.

GA4 collects granular location and device data by default. You can switch this off per region. Event and user-level data is kept for either 2 or 14 months, event data longer on the paid Analytics 360. The setting does not affect standard aggregated reports.

With Google signals, GA4 also uses data from users who are signed in to Google and have ads personalisation turned on, to recognise them across browsers and devices. Once activated, signals runs in all regions but can be controlled per region.

Consent Mode controls how Google tags react to the choice made in the cookie banner. It uses four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization.

  • Basic mode: Google tags stay blocked until consent is granted. Without consent, no data is collected.
  • Advanced mode: The tags load straight away. If someone declines, they send cookieless pings with a timestamp, user agent, referrer, consent state, a random number and whether there was an ad click. Google uses these pings to model behaviour.

Important for the EU: according to the EDPB, these pings are also access to the device, because a script instructs the browser to send information. The fact that advanced mode works without cookies does not change that. If you run Google Ads with traffic from the European Economic Area, Google has required consent signals since March 2024, for example via Consent Mode, to keep using features such as ads personalisation. How cookieless measurement is treated in general is explained in the guide Cookieless tracking.

Transfers to the USA: the state of the Data Privacy Framework

Transfers from the EU to the USA rely on the EU-US Data Privacy Framework. Philippe Latombe challenged it. The General Court of the European Union dismissed the action on 3 September 2025 (case T-553/23), finding that the USA ensured an adequate level of protection at the time the decision was adopted. An appeal against the judgment is pending before the Court of Justice (C-703/25 P). As of October 2026, no ruling on it is known.

For Switzerland, the Swiss-US Data Privacy Framework has applied since 15 September 2024. The Federal Council recognises protection in the USA as adequate, but only for companies certified under it. Whether a provider is among them can be checked on the official Data Privacy Framework list. The FDPIC takes note of the arrangement.

Earlier decisions by data protection authorities

In 2021 and 2022 several authorities objected to the use of Google Analytics:

  • Austria: In its decision of 22 December 2021, the data protection authority held the transfer to Google LLC unlawful. According to the authority's newsletter 2/2022, the decision was not final at the time.
  • France: In 2022 the CNIL ordered a website operator to comply within one month, notably by ceasing to use the then current version of the tool.
  • Italy: In June 2022 the Garante announced that an operator had 90 days to comply or face the suspension of data flows. It held that the IP address is personal data.

In November 2023 the CNIL wrote that transfers to US companies certified under the Data Privacy Framework can take place freely. As of October 2026, no specific statement by the FDPIC on Google Analytics is known. Its cookie guideline refers to the Austrian decision in a footnote.

What applies in Switzerland

For websites with a Swiss audience, the FDPIC says the Data Protection Act and the Telecommunications Act do not make consent mandatory for analytics cookies. You must, however, inform visitors and let them object. Two points deserve particular attention with GA4:

  • Disclosure abroad: The data is processed by Google, a US company. Name the country and the basis in your privacy policy, that is, certification under the Swiss-US Data Privacy Framework or standard contractual clauses (Art. 16 and 19 FADP).
  • The provider's own purposes: According to the FDPIC, the statistics justification under Art. 31(2)(e) FADP covers external tools only if the provider works solely on your behalf. So check the data sharing settings and whether you really need Google signals.

How the rules of Switzerland, the EU and the UK fit together is shown in the guide to privacy-friendly analytics.

What applies in the EU

GA4 sets cookies and reads information from the browser. Under Art. 5(3) of the ePrivacy Directive and national laws such as § 25 TDDDG in Germany, this requires consent unless an exemption applies. The CNIL's exemption for audience measurement requires, among other things, that the provider does not use the data for its own purposes. If you want to be on the safe side, load GA4 only after consent in the cookie banner. Whether an exemption applies in your case is for your own assessment. Whether you need a banner in Switzerland is covered in the guide Cookie banners in Switzerland.

Checklist: using GA4 more carefully

  1. 1

    Obtain consent

    Use a cookie banner with a real choice for EU visitors and load GA4 only after consent.

  2. 2

    Choose basic mode

    Run Consent Mode in basic mode so that no data flows without consent.

  3. 3

    Limit location and device data

    Switch off granular location and device data for regions where you do not need it.

  4. 4

    Shorten retention

    Keep event and user-level data for 2 months only if the aggregated reports are enough for you.

  5. 5

    Review Google signals

    Activate signals only if you really need cross-device analysis.

  6. 6

    Settle the contract and transfer

    Accept Google's data processing terms and document the basis for the transfer to the USA.

  7. 7

    Update the privacy policy

    Name GA4, the purpose, the recipients, the transfer to the USA, the retention period and how to object.

A cookieless tool with data in Switzerland simplifies some of these points, such as the transfer to the USA. You still need to check whether you need consent or an opt-out, because in the EU cookieless measurement can require consent too. How to switch without a data gap is shown in the guide Replace Google Analytics. The direct comparison is at Logiwolf vs. Google Analytics 4. This overview is not legal advice.

Sources: Google on IP anonymisation, Google on EU data collection, Google on data retention, Google signals, Google on Consent Mode, EDPB Guidelines 2/2023, version 2.0, General Court press release on T-553/23, Appeal C-703/25 P, FDPIC on the Swiss-US Data Privacy Framework (German), CNIL on Google Analytics and data transfers (French), Austrian data protection authority newsletter 2/2022 (German), CNIL newsletter, February 2022, Garante, June 2022 (Italian). As of October 2026.

Frequently asked questions

Google Analytics 4 and GDPR: frequently asked questions

Is Google Analytics 4 GDPR compliant?
That depends on how you use it. In the EU, GA4 usually needs consent, and transfers to the USA rely on the Data Privacy Framework. With a banner, basic mode and sparing settings, GA4 can be run more carefully. Whether that is enough in your case is for your own assessment.
Does GA4 store IP addresses?
According to Google, no. For users in the EU, Switzerland and the UK, the IP address is used only briefly to determine location on servers in those regions and then discarded.
Is Consent Mode enough without a cookie banner?
No. Consent Mode translates the choice made in the banner into signals for the Google tags, it does not replace the banner. In advanced mode, the tags send pings even without consent, which the EDPB also treats as access to the device.
Is the Data Privacy Framework still valid?
Yes. The EU General Court dismissed the action against it on 3 September 2025. An appeal before the Court of Justice is pending, and as of October 2026 no ruling on it is known.
Does GA4 need a cookie banner in Switzerland?
According to the FDPIC, consent for analytics cookies is not mandatory, but a clearly visible way to object and complete information are. If you also have visitors from the EU, their rules apply as well.
Free up to 2,000 pageviews · no credit card

Web analytics without Google.

No cookies, hosted in Switzerland. From CHF 0 per month.