GA4 and the law · checked 21 November 2026

Is GA4 legal in the UK and EU?

Yes, if it waits for consent and keeps its data lean. Every country covered here expects analytics to ask first. The few exceptions are narrow, and a typical GA4 setup doesn't meet them. The legal basis for sending the data to Google in the US has held since 2023, but it's being challenged in Europe's top court.

  • 14jurisdictions compared
  • 5regulators that ruled against a website's use of Google Analytics, in 2022 and 2023
  • 0outright bans on GA4
  • 1appeal that could change it all

Country by country.

Choose a country to see its rules, its regulator and what it has said about Google Analytics.

United Kingdom

Needed, with a narrow exception

Since 5 February 2026, analytics used only to improve a site can run without consent, if the data is aggregate, the provider acts only as a processor, nothing is used for advertising, visitors are told, and there's a free, simple way to object. GA4 linked to Google Ads or with Google Signals on usually falls outside it.

The law
PECR regulation 6 and UK GDPR, amended by the Data (Use and Access) Act 2025
Regulator
ICO
The banner
Reject as easy as accept, on the first layer, under the ICO's final guidance of 29 April 2026
Google Analytics rulings
No ruling against Google Analytics. Transfers to Google rely on the UK-US data bridge.
Worth knowing
PECR fines now go up to 17.5 million pounds or 4% of turnover. The ICO checked the top 1,000 UK websites in 2025. Google's EU user consent policy covers UK visitors too.

More: The Data (Use and Access) Act and GA4. Sources: legislation.gov.uk: PECR regulation 6; ICO: What are the exceptions?; ICO: the UK Extension to the EU-US Data Privacy Framework.

EU-wide rules

Needed

Only strictly necessary storage is exempt, and analytics isn't. The Digital Omnibus would add audience measurement to the uses that don't need consent: the Council agreed its position on 21 October 2026, but the Parliament hasn't, so it isn't law.

The law
ePrivacy Directive article 5(3) and the GDPR
Regulator
Each country's regulator, with the EDPB
The banner
Set by each country, guided by the EDPB on deceptive design
Google Analytics rulings
Transfers to Google rely on the EU-US Data Privacy Framework, upheld by the General Court in September 2025 and now on appeal.
Worth knowing
After the US Supreme Court's Trump v. Slaughter ruling (29 June 2026), the EDPB asked the Commission to assess its effect on the framework.

More: Where does GA4 data go?. Sources: Council of the EU: position on the Digital Omnibus, 21 October 2026; EDPB: letter on Trump v. Slaughter, 31 July 2026; Google: EU user consent policy.

Ireland

Needed

Non-essential cookies need consent first, first-party analytics included.

The law
S.I. No. 336 of 2011 (ePrivacy Regulations)
Regulator
Data Protection Commission
The banner
Withdrawing as easy as agreeing; no pre-ticked boxes; browsing on isn't consent
Google Analytics rulings
No ruling against Google Analytics.
Worth knowing
The DPC leads on Google across the EU, so its decisions about Google itself carry weight.

More: Cookie consent in Ireland. Sources: DPC: guidance note on cookies (April 2020).

France

Needed

The CNIL exempts audience measurement only under strict conditions, such as anonymous statistics and no sharing. A standard GA4 setup doesn't meet them.

The law
Loi Informatique et Libertés article 82
Regulator
CNIL
The banner
Refusing as easy as accepting, with fines for sites that made it harder
Google Analytics rulings
February 2022: the CNIL ordered websites to stop sending Google Analytics data to the US under the old rules.
Worth knowing
On 1 September 2025 the CNIL fined Google 325 million euros (Gmail ads and cookies at account sign-up) and SHEIN 150 million euros (cookies set before any choice, and after a refusal).

More: Cookie consent in France. Sources: CNIL: solutions for audience measurement tools; CNIL: audience measurement and data transfers; CNIL: fines on SHEIN and Google, September 2025.

Germany

Needed

The DSK won't say audience measurement is generally allowed without consent, and third-party analytics usually needs it.

The law
TDDDG section 25
Regulator
16 state regulators and the federal BfDI, guided by the DSK
The banner
Rejecting must be as easy as accepting
Google Analytics rulings
No national ban, but regulators have long been sceptical of Google Analytics.
Worth knowing
A setup that passes in Germany passes almost anywhere.

More: Cookie consent in Germany. Sources: Gesetze im Internet: section 25 TDDDG; DSK: OH Digitale Dienste.

Netherlands

Needed, with a narrow exception

The law exempts analytics with no or minor privacy impact. The AP's privacy-friendly setup guide was written for Universal Analytics, and there's no GA4 equivalent. A GA4 property linked to Google Ads is outside the exemption.

The law
Telecommunicatiewet article 11.7a
Regulator
Autoriteit Persoonsgegevens (AP)
The banner
Rejecting as easy as accepting; the AP is investigating misleading banners (October 2026)
Google Analytics rulings
No ruling against Google Analytics.
Worth knowing
The AP fined the owner of Kruidvat.nl over tracking cookies (reduced from 600,000 to 50,000 euros in 2025).

More: Cookie consent in the Netherlands. Sources: AP: investigation into misleading cookie banners.

Spain

Needed

Analytics cookies need consent, as set out in the AEPD's cookie guide.

The law
LSSI article 22.2
Regulator
AEPD
The banner
A Reject button on the first layer, as prominent as Accept (since 11 January 2024)
Google Analytics rulings
No ruling against Google Analytics.
Worth knowing
The AEPD handles tens of thousands of complaints a year and publishes its decisions.

More: Cookie consent in Spain. Sources: AEPD: Guía sobre el uso de las cookies.

Italy

Needed

Analytics is treated like a technical cookie only when the site uses it itself for aggregate statistics. Otherwise it needs consent.

The law
Privacy Code article 122, with the Garante's 2021 cookie guidelines
Regulator
Garante per la protezione dei dati personali
The banner
Scrolling alone isn't consent; a refusal is remembered and the banner isn't shown again for six months
Google Analytics rulings
June 2022: the Garante found a website's use of Google Analytics unlawful, over transfers to the US.
Worth knowing
The 2021 guidelines have applied since January 2022.

Sources: Garante: cookie guidelines, 10 June 2021; Garante: cookie FAQ.

Austria

Needed

Only technically necessary storage is exempt, and the courts read that narrowly.

The law
TKG 2021 section 165(3)
Regulator
Datenschutzbehörde (DSB), with the telecoms authorities
The banner
Carrying on browsing isn't consent; no pre-ticked boxes
Google Analytics rulings
2022: the first decision in Europe that a website's use of Google Analytics broke the GDPR. It found IP anonymisation no real protection.
Worth knowing
The Austrian decision started the wave of Google Analytics rulings.

Sources: DSB: cookies FAQ; noyb: Austrian DSB decision on Google Analytics.

Denmark

Needed

Legitimate interests isn't a basis for Google Analytics statistics (Den Blå Avis, January 2022).

The law
Cookie Order (cookiebekendtgørelsen)
Regulator
Datatilsynet
The banner
Consent must be a clear, active choice
Google Analytics rulings
2022: Datatilsynet said Google Analytics couldn't be used lawfully without extra measures. In July 2023 it said it had taken no new position, and the other GDPR duties still apply.
Worth knowing
Lawful transfers don't settle the other questions: legal basis, processor terms and visitors' rights.

Sources: Datatilsynet: Google Analytics, July 2023.

Sweden

Needed

Analytics cookies need consent.

The law
Electronic Communications Act chapter 9 section 28
Regulator
IMY (data) and PTS (cookies)
The banner
Consent must be a clear, active choice
Google Analytics rulings
June 2023: IMY fined Tele2 SEK 12 million and CDON SEK 300,000 for Google Analytics transfers, and ordered two others to stop.
Worth knowing
The first real fines in Europe for using Google Analytics.

Sources: IMY: four companies must stop using Google Analytics.

Finland

Needed

Analytics isn't essential, so it needs consent. Legitimate interest isn't a basis for cookies.

The law
Act on Electronic Communications Services section 205
Regulator
Traficom (NCSC-FI)
The banner
An option to refuse as easy as Accept all; browser settings don't count as consent
Google Analytics rulings
No ruling against Google Analytics.
Worth knowing
NCSC-FI publishes its cookie decisions.

Sources: Traficom: guidance on the use of web cookies.

Norway (EEA)

Needed

Norway follows the GDPR through the EEA Agreement.

The law
Electronic Communications Act
Regulator
Datatilsynet
The banner
Consent must be a clear, active choice
Google Analytics rulings
July 2023: Datatilsynet reprimanded Telenor and found its use of Google Analytics unlawful, under the rules before the Data Privacy Framework.
Worth knowing
Datatilsynet still advises Norwegian sites to look at alternatives.

Sources: Datatilsynet: decision in the Google Analytics case.

Switzerland

Tell and let visitors object

Unlike the EU, Swiss law asks sites to tell visitors what's stored and let them object. Prior consent is still needed when processing is unexpected, high risk or involves sensitive data, and the FDPIC says giving third parties access to visitors' data can need consent too. GA4 linked to Google Ads is the cautious case for asking first.

The law
Telecommunications Act article 45c, with the revised Data Protection Act (2023)
Regulator
FDPIC
The banner
A clear way to object, and clear information about each purpose
Google Analytics rulings
No ruling against Google Analytics. Transfers to certified US companies rely on the Swiss-US Data Privacy Framework, in place since 2024.
Worth knowing
Google's EU user consent policy has covered Swiss visitors since 31 July 2024.

Sources: FDPIC: cookie guidelines, updated version; Google: help with the EU user consent policy.

At a glance.

What each jurisdiction asks of GA4, side by side.

WhereConsent before GA4Google Analytics rulingsRegulator
United KingdomNarrow exceptionNoneICO
EU-wide rulesNeededTransfers rely on the Data Privacy Framework, now on appealEach country's regulator
IrelandNeededNoneData Protection Commission
FranceNeededFebruary 2022CNIL
GermanyNeededNone16 state regulators and the federal BfDI
NetherlandsNarrow exceptionNoneAutoriteit Persoonsgegevens
SpainNeededNoneAEPD
ItalyNeededJune 2022Garante per la protezione dei dati personali
AustriaNeeded2022Datenschutzbehörde
DenmarkNeeded2022Datatilsynet
SwedenNeededJune 2023IMY
FinlandNeededNoneTraficom
Norway (EEA)NeededJuly 2023Datatilsynet
SwitzerlandOpt-out, with limitsNoneFDPIC

Three questions about your site. The answer is a starting point for your data protection lead, not legal advice.

EU and EEA: ask for consent before GA4 runs. The narrow exemptions in France, the Netherlands and Spain don't fit GA4 as it's usually set up.

UK: ask first, unless every condition of the statistics exception is met: aggregate use to improve the site, Google acting only as your processor, no advertising, clear information and a free, simple way to object. GA4 linked to Google Ads or with Google Signals on usually falls outside it.

Switzerland: tell visitors and let them object, and ask first where data goes to Google for its own purposes, such as advertising.

Several regions: follow each region's rule for its visitors, with region-specific consent in Tag Manager, or the strictest rule for everyone.

Why the law applies to GA4.

It sets identifiers

GA4's cookies give each browser an ID that recognises it on the next visit. Under the GDPR and UK GDPR, an ID like that is personal data, even without a name.

It reads the device

Storing a cookie or reading one is what the ePrivacy rules and PECR cover, whether or not the data is personal. That's why the banner comes first.

It sends data to Google

Hits go to Google's servers, and some data reaches the US. For EU visitors, Google says IP addresses are used in the EU for rough location and dropped before storage.

Who's responsible.

You are. The business running GA4 decides what's collected and why, so it's the controller. For GA4 itself, Google acts as your processor under its data processing terms. Switch on data sharing with Google, link Google Ads or turn on Google Signals, and Google also uses the data for its own purposes, which is where most consent rules focus.

The GA4 settings that matter.

None of these makes GA4 lawful on its own, but each one reduces what's collected, and regulators look for them.

Data retention
2 or 14 months on the standard version. Choose the shortest that still covers the comparisons you make.
Granular location and device data
Can be switched off by region, so city and browser detail isn't collected where you don't need it.
Google Signals and ads personalisation
Both can be turned off for chosen regions. Off unless you use them.
Data sharing settings
Sharing with Google for its own products and benchmarking is optional. Off unless there's a reason.
Personal data in events
Email addresses in page addresses, names in form parameters and IDs in custom dimensions break Google's terms as well as the law. Strip them before they're sent, and delete any that got through.
BigQuery export
Create the dataset in an EU region if your visitors are in the EU.
Consent Mode
Basic mode, so nothing reaches Google before a choice. Google requires Consent Mode v2 signals for EEA traffic to keep ad features.

What getting it wrong costs.

20 million euros or 4%

The GDPR's top fine, of worldwide annual turnover if that's higher.

17.5 million pounds or 4%

The UK's top fine, which since 5 February 2026 applies to PECR as well as UK GDPR.

Fines and orders that involved cookies or Google Analytics.

  • France, September 2025: Google, 325 million euros, over ads in Gmail and the consent collected for cookies at account sign-up. SHEIN, 150 million euros, for cookies set before any choice and after a refusal.
  • Sweden, June 2023: Tele2, SEK 12 million, and CDON, SEK 300,000, for sending Google Analytics data to the US. Two more companies were ordered to stop.
  • Netherlands, 2025: the owner of Kruidvat.nl, 50,000 euros on appeal (from 600,000) over tracking cookies without valid consent
  • Norway, July 2023: a reprimand for Telenor, whose use of Google Analytics was found unlawful
  • UK, September 2024: a reprimand for Sky Betting and Gaming for setting cookies before consent

Most action on cookies starts with a complaint or a regulator's sweep of popular sites, and ends with an order to fix. Fines tend to follow when a site ignores the order, or when the scale is large.

How it got here.

  1. July 2020

    The EU's Court of Justice strikes down the Privacy Shield (Schrems II). Transfers to US companies lose their easy legal footing.

  2. January to June 2022

    Austria, France and Italy find websites' use of Google Analytics unlawful. Denmark says it can't be used without extra measures.

  3. June to July 2023

    Sweden fines Tele2 and CDON. Norway reprimands Telenor.

  4. 10 July 2023

    The EU-US Data Privacy Framework takes effect. Google is certified, and transfers have a legal basis again.

  5. 12 October 2023

    The UK-US data bridge takes effect for UK visitors' data.

  6. March 2024

    Google requires Consent Mode v2 for EEA traffic to keep ad personalisation and measurement.

  7. 31 July 2024

    Google's EU user consent policy extends to visitors in Switzerland.

  8. 1 September 2025

    France's CNIL fines Google 325 million euros and SHEIN 150 million euros over cookies and consent.

  9. 3 September 2025

    The EU General Court upholds the Data Privacy Framework. An appeal follows on 31 October.

  10. 19 November 2025

    The Commission proposes the Digital Omnibus, including changes to the cookie rules.

  11. 5 February 2026

    UK: new cookie exceptions and bigger PECR fines apply.

  12. 29 April 2026

    UK: the ICO's final guidance on storage and access technologies.

  13. 29 June 2026

    The US Supreme Court decides Trump v. Slaughter. The EDPB asks the Commission to assess the effect on the framework (31 July).

  14. 21 October 2026

    EU: the Council agrees its position on the Digital Omnibus. The Parliament's is expected in 2027.

  15. Next

    The Court of Justice rules on the Data Privacy Framework appeal, and the EU settles the Digital Omnibus.

What a setup that holds up looks like.

Consent first

No GA4 cookies or requests until the visitor agrees, with Reject on the first screen. Basic Consent Mode, so nothing reaches Google before a choice.

Lean data

No email addresses or names in page addresses or events. Granular location and device data off for regions that don't need it, and the shortest retention that works.

Proof

A record of what GA4 collects and why, and a test of every consent state. Rules differ by region, so test from each one your visitors come from.

The tracking checker shows what your homepage sends before a choice. The GA4 mini audit, from £175, checks all of it, and region-specific consent in Tag Manager explains how one site can follow different rules.

Questions.

Is GA4 illegal in Europe?

No. No regulator has banned GA4 outright. The rulings of 2022 and 2023 were about sending data to the US before the Data Privacy Framework existed. GA4 can be used lawfully, with consent first and the data kept lean, though the framework it relies on is being challenged.

Does GA4 need consent in the UK?

Usually. Since February 2026 there's a narrow exception for analytics used only to improve a site, with strict conditions. A GA4 setup linked to Google Ads or with Google Signals on usually falls outside it, so Marc's advice is still to ask first.

Does Consent Mode make GA4 compliant?

No. Consent Mode passes the visitor's choice to Google's tags. It doesn't ask for consent, and advanced mode sends pings before anyone agrees. Consent Mode v2 setup explains the difference.

Who is responsible for GA4 compliance, us or Google?

You are. The business running GA4 decides what it collects and why, so it's the controller. Google acts as your processor for GA4 itself, but uses data for its own purposes too when Google Ads is linked, Google Signals is on or data sharing is switched on.

Does GA4 need consent in Switzerland?

Not always. Swiss law asks you to inform visitors and let them object, rather than asking first. Consent is still expected where processing is unexpected, high risk or sensitive, and where data goes to third parties for their own use, which is the cautious reading for GA4 linked to Google Ads.

What happens if the Data Privacy Framework falls?

EU transfers to Google would need other safeguards again, as between 2020 and 2023. The UK-US data bridge wouldn't fall automatically, but the UK government would review it.

This page explains the rules and what regulators have said, as checked on 21 November 2026. It isn't legal advice: for decisions about your organisation, speak to your lawyer or data protection officer.

Check where your setup stands.

Tell Marc Alexander where your visitors are. The GA4 mini audit checks consent, what GA4 collects and what reaches Google, for each region you name.

Mini audit from £175.

Prefer to talk first? Choose "20-minute intro call" in the form.
Or email [email protected].

Marc replies personally, usually within one working day.