Does Google Analytics 4 need cookie consent? In the EU and the EEA, yes: GA4 cookie consent has to come before the tag sets its cookies. In the UK, consent is still the safe default, but since 5 February 2026 a narrow statistics exception can apply to analytics set up only to improve your site. In the US, no federal law asks for consent first; state privacy laws give visitors a right to opt out instead. This guide is for site owners, shop owners and agencies who want to know where GA4 cookie consent is needed, and where it is not.
In this article
Does GA4 need cookie consent? The short answer
It depends on where your visitors are, not on where your company is. That is why the honest answer to the GA4 cookie consent question is a table rather than a single yes or no.
| Visitors from | Consent before GA4 runs? | Main rule |
|---|---|---|
| EU and EEA | Yes, opt-in | ePrivacy Directive Article 5(3), with consent as defined by the GDPR |
| United Kingdom | Yes by default; a statistics exception exists since 5 February 2026, with strict conditions | PECR regulation 6, as changed by the Data (Use and Access) Act 2025 |
| Switzerland | At minimum clear information and a way to refuse; many sites ask first | Telecommunications Act Article 45c and the FADP; Google’s policy also covers Swiss users |
| United States | No federal consent rule; opt-out of “sale or sharing” under state laws | CCPA/CPRA in California and about twenty other state laws |
| Rest of the world | Varies by country | Check the local law; opt-in is the cautious choice |
Google’s own EU user consent policy asks for consent where the law requires it for users in the EEA, the UK and Switzerland. And “consent” here means a real choice before the cookies are set, not a notice that says “by using this site you agree”. Facts in this article were checked in October 2026.

Why does Google Analytics 4 trigger consent rules?
Because GA4 stores and reads information on the visitor’s device. By default, the Google tag sets first-party cookies named _ga and _ga_<ID> that identify a browser across visits, with a default lifetime of two years. Article 5(3) of the ePrivacy Directive says a site may only store or read such information without consent when it is strictly necessary for the service the visitor asked for. Statistics are useful, but a page loads perfectly well without them, so they are not strictly necessary. That is the root of every GA4 cookie consent rule in Europe.
The rule is not limited to cookies. In its Guidelines 2/2023 on the technical scope of Article 5(3), adopted in their final form on 7 October 2024, the European Data Protection Board explains that tracking pixels, local storage and similar techniques fall under the same rule. Turning off GA4’s cookies does not, on its own, take the tag out of scope.
A second layer is the GDPR. The data GA4 collects (a browser ID, pages viewed, device details, a rough location) is personal data in the EU and the UK, even though Google says GA4 does not log or store IP addresses. So you need a legal basis, a privacy notice that names Google, and an answer on international transfers. Several EU regulators found Universal Analytics transfers unlawful in 2022; since 10 July 2023 the EU-US Data Privacy Framework gives an adequacy basis for transfers to certified US companies, Google included.
GA4 cookie consent in the EU and EEA
For visitors in the 27 EU countries plus Iceland, Liechtenstein and Norway, GA4 cookie consent is opt-in. The tag should not set its cookies until the visitor clicks a button that says yes to statistics, and refusing must be as easy as accepting. Pre-ticked boxes, “continue browsing means yes” and a banner without a reject option do not meet the GDPR’s standard of freely given, specific, informed and unambiguous consent.
Some countries exempt audience measurement. The French regulator CNIL, for example, lets certain analytics run without consent when they are configured for the publisher’s sole use, produce anonymous statistics, are not combined with other data and are not reused by the provider. The CNIL has said that offers whose provider reuses the data for its own purposes do not qualify, and it names Google Analytics as an example of such terms. In practice, treat GA4 cookie consent as required across the EU unless your adviser confirms that a setup meets a national exemption.
What about Google Consent Mode v2? It does not replace GA4 cookie consent; it passes the visitor’s answer on to Google tags. In basic mode the tags wait for a yes. In advanced mode they load straight away with every signal set to “denied” and send cookieless pings. Some regulators look critically at any request that leaves the browser before a choice, so basic mode is the cautious reading. We explain the two modes, the four signals and the load order in our Consent Mode v2 guide for WordPress; this article stays with the question of whether and where consent is needed.
GA4 cookie consent in the UK after the Data (Use and Access) Act
The UK rule lives in regulation 6 of the Privacy and Electronic Communications Regulations (PECR). Until 2026, GA4 cookie consent worked as in the EU: analytics cookies needed a yes first. The Data (Use and Access) Act 2025 received Royal Assent on 19 June 2025, and its section 112, which amends regulation 6, came into force on 5 February 2026 under Commencement Regulations No. 6 (SI 2026/82). It adds new exceptions to the consent requirement, including one for statistics.
The Information Commissioner’s Office explains the conditions in its guidance on the exceptions. In short, the statistics exception applies only when:
- the sole purpose is to collect statistical information about how your own site or service is used, so you can improve it;
- you give clear and comprehensive information about that purpose, and a simple, free way to object, and you stop when someone objects;
- a third-party analytics provider acts as your processor, not as a joint controller, and does not link the data with other information it holds;
- the data is not used for anything related to online advertising, such as tying a visit to an ad that was clicked.
Can GA4 meet that test? Possibly, with a careful setup, but it is not the default. A GA4 property linked to Google Ads, with Google signals switched on or with data shared with Google for its own products, goes beyond improving your site. Whether Google acts purely as your processor for a given property depends on the terms and settings you accept, so check them with your adviser rather than assuming.
So the UK picture for GA4 cookie consent is: consent remains the safe choice, and the exception is an option for sites that keep analytics strictly for their own statistics and tell visitors how to object. An honest note on ClearCrumb: the plugin treats the UK as opt-in, the same as the EU. It has no separate UK setting for the statistics exception, so a site that wants to rely on the exception cannot switch it on in the free plugin today.

Do US visitors need GA4 cookie consent?
Not under a general federal rule. The United States has no ePrivacy-style law that asks for consent before analytics cookies. Instead, about twenty state privacy laws, led by the CCPA as amended by the CPRA in California, give consumers a right to opt out of the “sale” or “sharing” of their personal information. “Sharing” in California means passing data on for cross-context behavioural advertising.
For plain site statistics, GA4 cookie consent is usually not required under these laws. The picture changes when GA4 feeds advertising: remarketing audiences, Google signals or links to Google Ads. Then the data can count as sharing, and visitors must be able to opt out. California’s regulations also require you to treat Global Privacy Control, a browser signal, as a valid opt-out of sale and sharing, and several other states, Colorado among them, require a universal opt-out signal as well. Our Global Privacy Control guide covers how the signal works.
Some data is treated more strictly. Several state laws require opt-in consent for sensitive data, such as health information. If your site is in a sensitive field, ask a lawyer before you decide that US visitors need no GA4 cookie consent.
What does Google itself require?
Google’s EU user consent policy is part of the terms for Google Analytics and Google Ads. It asks you to obtain consent for cookies or other local storage where the law requires it, and for the use of personal data for ad personalisation, for end users in the EEA, the UK and Switzerland. So GA4 cookie consent is also a term of your contract with Google, on top of any legal risk.
Since March 2024, Google has also required Consent Mode v2 signals, including ad_user_data and ad_personalization, for advertising features such as remarketing and conversion measurement with EEA visitors. Without them, those features lose data for European traffic.
The practical consequence is simple: if any of your visitors are in Europe, a GA4 cookie consent setup that blocks or limits the tag until a yes is not optional, whatever your own country’s law says.
Setting region rules for GA4 in ClearCrumb
ClearCrumb is a free cookie consent plugin for WordPress by Dotance. It recognises Google Analytics 4 by its tag and puts it in the Statistics category, so GA4 waits for that category. Google Tag Manager is also under Statistics, Google Ads under Marketing. Region rules decide what GA4 cookie consent looks like before a visitor chooses:
- Open the region settings. Go to ClearCrumb → Banner and find the Regions card. The setup wizard asks the same questions in its first step.
- Switch on Different rules per region. With it off, every visitor gets opt-in, the strictest rule.
- Check the fixed row. EU, EEA, UK, Switzerland is always Opt-in: GA4 stays blocked until the visitor accepts Statistics.
- Choose the rule for United States. Opt-out + Global Privacy Control lets statistics run and shows a Do not sell or share my info button, which turns off Marketing. Opt-in (like the EU) treats US visitors like Europeans.
- Choose the rule for Rest of the world. Opt-in (safest), Notice: everything runs, visitors can change it, or No banner, only the settings button.
- Save and test. Click Save banner, clear your page cache, then run the Leak Test from the Scanner screen.
Two details matter for GA4. In the US opt-out rule, “Do not sell or share” switches off Marketing only, so GA4 keeps running as statistics; if your GA4 property feeds ad audiences, consider the opt-in rule for the US instead. And when a browser sends Global Privacy Control, ClearCrumb saves an opt-out of Marketing automatically and records it in the consent log.
The region comes from a country header your host or Cloudflare adds, or from the visitor’s timezone when there is none. When the region is unknown, ClearCrumb uses opt-in. The region rules and GPC documentation has the full reference. ClearCrumb Pro adds rules per US state for the states with a privacy law, plus a switch that asks every US visitor first for sensitive data. None of this guarantees compliance; it gives you the settings, and the choice of rule stays yours.

How do you check what GA4 does before a choice?
Settings tell you what should happen; a test tells you whether your GA4 cookie consent really works. Check three things in a private browser window, without touching the banner:
- Requests. Open the developer tools (F12), go to the Network tab and reload. In an opt-in region with basic Consent Mode, there should be no request to
google-analytics.comwith/g/collectin the address before you accept. - Cookies. In the Application or Storage tab, there should be no
_gacookie before a yes. After “Accept all”, it should appear. - A second copy of the tag. Many sites load GA4 twice: once through a plugin and once through a snippet pasted into the theme. The blocked copy looks fine while the forgotten one leaks.
For a quick outside view, the free Cookie Banner Checker reads any public page as a first-time visitor and lists Google Analytics if it loads before consent. On your own WordPress site, ClearCrumb’s Leak Test loads your pages in a real browser before and after “Accept all” and lists every request made before consent, including tags that Google Tag Manager adds later. The Leak Test documentation explains how to read the report.
Expect GA4 to report fewer users after you add a proper GA4 cookie consent flow. That drop is the price of a real choice, not a fault.
Common GA4 cookie consent mistakes
| Mistake | What happens | Fix |
|---|---|---|
| “We are a US company, so EU rules don’t apply” | GA4 sets cookies on EU visitors without consent | Apply rules by visitor region, opt-in for Europe |
| Treating Consent Mode as consent | Tags load with no banner choice behind them | Use a banner that collects the answer; Consent Mode only passes it on |
| Relying on the UK exception with ads features on | Google signals or Ads links take the setup outside the exception | Keep consent, or strip the property back to statistics only |
| A GA4 snippet hard-coded in the theme | That copy runs before any choice | Remove duplicates, let one tool load GA4 |
| Ignoring Global Privacy Control | California visitors’ opt-out signal goes unanswered | Honour GPC as an opt-out of sale and sharing |
Finally, update your cookie policy so it matches your GA4 cookie consent setup. Name Google as the provider, list the _ga cookies with their lifetime, and say how visitors can change their mind. ClearCrumb’s free cookie policy generator can write a first draft for EU, UK and US visitors.
Frequently asked questions
Does GA4 use cookies?
Yes. On websites GA4 sets two first-party cookies, _ga and _ga_<container-id>, each kept for two years by default. With Consent Mode and analytics storage denied, it sets no Analytics cookies and sends cookieless pings instead.
Can I skip GA4 cookie consent if I turn off its cookies?
Not automatically. In the EU, the EDPB’s guidelines say Article 5(3) also covers pixels and similar ways of reading or storing information, so cookieless GA4 requests can still need GA4 cookie consent. Advanced Consent Mode sends such requests; basic mode does not.
Does GA4 cookie consent apply to UK visitors in 2026?
By default, yes. Since 5 February 2026, a statistics exception allows analytics without consent if it is used only to improve your own site, visitors are told and can object easily, and nothing is used for advertising. Many GA4 setups do not meet those conditions.
Is GA4 cookie consent required for US visitors?
Not before the tag runs, under current federal law. State laws such as the CCPA give visitors a right to opt out of sale and sharing, which matters when GA4 data feeds advertising, and California requires you to honour Global Privacy Control.
Does anonymising IP addresses remove the need for GA4 cookie consent?
No. Google says GA4 does not log or store IP addresses, but the consent rule is about storing and reading information on the device, which GA4’s cookies do whatever happens to the IP address.
Does ClearCrumb support the UK statistics exception?
Not as a setting. ClearCrumb treats the UK as opt-in, like the EU, which is the cautious default. The US and the rest of the world have their own rules in the Regions card.
Summary
GA4 cookie consent is needed before the tag runs for visitors in the EU and the EEA, and by default in the UK, where a narrow statistics exception now exists. US visitors get an opt-out of sale and sharing instead, with Global Privacy Control honoured. Set rules by visitor region, test what loads before a choice, and read our Consent Mode v2 guide for how the signals work. Facts checked October 2026.