Skip to content

Original privacy and security research, news and free tools since 2018, cited by the FBI, CISA and the World Economic Forum See our research

Cited by the FBI, CISA and the World Economic Forum

Guide

GDPR Cookie Consent: What the Law Requires, What Banners Get Wrong, and What’s Changing

Published Updated

Miklos Zoltan

By Miklos Zoltan

Founder & Editor-in-Chief

Laura Bede

Fact-Checked this

1 Comments

In the EU, a website needs your consent before it stores any cookie on your device that it doesn’t strictly need to work. Saying no has to be as easy as saying yes.

That rule doesn’t come from the GDPR itself. It comes from the ePrivacy Directive, the 2002 “cookie law”, while the GDPR sets the standard for what counts as valid consent. Together they cover far more than cookies: tracking pixels, local storage and device fingerprinting fall under the same rule.

Below: which law applies where you are, which cookies are exempt, what a banner may and may not do (with the authority that said so), the fines regulators have handed out, and the reform the EU is negotiating right now.

We rewrote this page in November 2026; the old version was from 2024. Laws, cases and the state of the Digital Omnibus were checked on 15 November 2026.

Which law sets the cookie rules?

In the EU, the rule is Article 5(3) of the ePrivacy Directive. A site may store or read information on your device only with your consent, unless it’s needed to send the communication or strictly necessary for a service you asked for. Each country turned the directive into its own law, which is why France’s CNIL fines under the French Data Protection Act and German authorities apply §25 of the TDDDG.

The GDPR supplies the definition of consent (Article 4(11)): freely given, specific, informed and unambiguous. Article 7 adds that you must be able to withdraw it as easily as you gave it, and that the site must be able to prove it asked. Recital 30 names cookie identifiers as one way people can be tracked and profiled.

The EU’s top court settled the relationship in the Planet49 case on 1 October 2019. A pre-ticked box is not consent, and the cookie rule applies whether or not the cookie holds personal data. The site also has to tell you how long cookies last and whether third parties can read them.

“Cookies” is shorthand. The EDPB, the body of EU data protection authorities, confirmed in its guidelines on the technical scope of Article 5(3) (October 2024) that tracking pixels, tracking links, local storage and unique identifiers are caught too. A site that swaps cookies for a pixel hasn’t escaped anything. We found how often that happens on US hospital sites in our tracking pixels study.

In the UK, the rule sits in regulation 6 of PECR, with the UK GDPR’s standard of consent. The Data (Use and Access) Act changed it from 5 February 2026: three new exceptions (below) and fines of up to £17.5 million or 4% of worldwide turnover, the same ceiling as the UK GDPR.

In the US, no federal law requires consent for cookies. State privacy laws work the other way round: sites may track you until you opt out of the “sale” or “sharing” of your data, and several states require businesses to honour the Global Privacy Control signal. Our CCPA guide covers California’s version.

Which cookies need consent, and which don't?

The exemptions are narrow, and they depend on what a cookie does, not on what it’s called.

No consent needed for cookies that are strictly necessary for something you asked for:

  • a shopping cart or checkout
  • keeping you logged in after you signed in
  • security, such as fraud checks on a login or load balancing
  • the cookie that remembers your consent choice

Consent needed for everything else, in particular:

  • advertising and retargeting cookies, including those set by ad networks
  • social media plugins and share buttons that track you
  • analytics in most EU countries. France is the best-known exception: the CNIL lets some audience measurement run without consent if it is configured strictly (first-party, anonymous statistics, no cross-site tracking). Google Analytics in its usual setup doesn’t qualify
  • personalisation you didn’t ask for, such as recommendations built from your browsing

A site can’t move tracking out of the consent box by calling it “legitimate interest”. European regulators have said repeatedly that the cookie rule has its own exemptions and legitimate interest isn’t one of them.

The UK’s three new exceptions since February 2026 are for statistics about how a service is used, for adapting the site’s appearance or functions to your preferences (language, layout), and for locating you in an emergency. The ICO’s guidance sets two conditions that trip most sites up. The cookie must be used solely for that purpose, so an analytics tag that also feeds advertising doesn’t count. And for statistics and appearance, you must get a simple, free way to object. Advertising still needs consent everywhere in the UK.

What a valid cookie banner must do

Valid consent comes before the cookie. Anything set on page load, before you click, breaks the rule whatever the banner says afterwards.

The rest comes from the GDPR’s definition and from the EDPB’s Cookie Banner Taskforce report of January 2023, in which EU authorities agreed how they judge the most common complaints. It is the closest thing to a shared rulebook, though national authorities still differ on details.

If you run a website, the work is mostly technical. List every cookie and tag your pages load, including those your plugins and embeds add. Block everything that isn’t exempt until the visitor agrees, and check in your browser’s developer tools that “Reject all” really stops the requests. Give Accept and Reject the same size and weight on the first screen. Keep a record of each consent, because Article 7 puts the burden of proof on you. And leave a permanent link or icon for changing the choice later.

A consent management platform makes this easier, but it doesn’t make you compliant. Shein and Fnac Darty both had banners.

Cookie walls and "pay or OK"

A cookie wall lets you in only if you accept tracking. The EDPB’s guidelines on consent say consent given that way isn’t freely given, and the same guidelines rule out “by continuing to browse, you agree”.

“Pay or OK” is the newer variant: accept tracking or pay a subscription. National authorities don’t fully agree on it. Several, including the CNIL, have accepted it for news publishers when the price is reasonable and a real alternative exists, judged case by case.

For the largest platforms the EDPB took a harder line. Its Opinion 08/2024 of April 2024 found that a simple choice between paying and consenting to behavioural advertising will generally not produce valid consent, and that such platforms should offer a free option without that kind of tracking. Meta has since added a “less personalised ads” option for users in the EU.

The fines so far

France’s CNIL is by far the most active cookie enforcer, and the amounts keep climbing. Our GDPR fines tracker lists 42 fines that mention cookies, worth about €750 million together. Most of them came from the CNIL.

The biggest cookie cases:

  • Google, €325 million (CNIL, September 2025). Ads shown between emails in Gmail without consent, and cookies set when people created a Google account without valid consent. It was Google’s third cookie fine in France, after €100 million in 2020 and €150 million in 2021 (CNIL).
  • Shein, €150 million (CNIL, September 2025). Advertising cookies placed as soon as visitors arrived, and still placed or read after they clicked “Reject all”.
  • Google €150 million and Facebook €60 million (CNIL, December 2021). One click to accept, several to refuse.
  • Criteo, €40 million (CNIL, June 2023). The ad-tech firm couldn’t show that the people it tracked had consented.
  • Fnac Darty, €7 million (CNIL, October 2026). The retailer’s app sent users’ identifiers and the products they viewed to a third party without consent, and kept doing it after they refused. The two companies have a month to fix it or pay €10,000 a day (CNIL).

Not every case makes headlines. Since January 2026 the CNIL has also issued more than 20 small fines (up to €20,000 each, companies not named) under its simplified procedure, cookies among the reasons, and most of them started with a complaint.

What the Digital Omnibus would change

Nothing yet. The cookie rules described above apply unchanged in November 2026.

The European Commission proposed the Digital Omnibus on 19 November 2025. For cookies it would have moved the rule into the GDPR, added exemptions for low-risk uses, banned sites from asking again for six months after you refuse, and obliged them to honour an automatic consent signal from your browser.

EU governments agreed their own version on 21 October 2026, and it differs on most of that. Under the Council’s mandate:

  • The rules stay in the ePrivacy Directive, in a rewritten Article 5(3), rather than moving into the GDPR.
  • Six uses would no longer need consent, among them first-party audience measurement, security and measuring contextual ads.
  • Refusing must take a single click, and a site would have to wait at least four months before asking again.
  • The browser signal is gone, which would have let you refuse everywhere at once.

Germany, Austria and Estonia voted against the mandate. The European Parliament hasn’t adopted its position yet (its two lead committees published a draft report in June 2026), and talks between the institutions can’t start until it does. Lawyers following the file don’t expect anything to take effect before 2027, and the Parliament could still put the browser signal back.

For visitors, the six exemptions would mean fewer banners. The single-click refusal and the four-month pause would make the banners that remain less pushy.

What you can do as a visitor

Click “Reject all” when it’s there. On a site that follows the rules, everything you came for still works, because the cookies the site really needs are exempt anyway. You may see ads that aren’t based on your browsing.

Changed your mind? Look for a “Cookie settings” or “Privacy choices” link, usually in the footer, or a small floating icon. If there’s none, the site isn’t meeting Article 7.

Your browser can do part of the work:

  • Block third-party cookies in the privacy settings. Safari blocks them by default and Firefox keeps them separated per site.
  • Turn on Global Privacy Control (built into Firefox, Brave and DuckDuckGo). It has legal force in several US states. In the EU it’s not binding, and the Council’s version of the Digital Omnibus wouldn’t change that.
  • Let an extension answer banners for you. Consent-O-Matic, from Aarhus University, clicks “reject” on many common banner designs.
  • Clear cookies regularly, or browse in a private window, so tracking doesn’t build up over months.

Fingerprinting falls under the same rule, but you can’t see it or clear it like a cookie; our guide to browser fingerprinting covers what helps. To get rid of one tracker everywhere, see how to block Google Analytics.

If a site sets tracking cookies before you choose, hides the reject option or keeps tracking after you refused, you can complain to its data protection authority. It’s free, a screenshot and the date are usually enough evidence, and our guide to filing a data protection complaint shows where and how.

Frequently Asked Questions

Some people found answers to these questions helpful

Does every cookie need consent under the GDPR?

No. Cookies that are strictly necessary for something you asked for, such as a shopping cart, a login session or remembering your consent choice, are exempt. Analytics, advertising and social media cookies need consent in most of the EU. The UK has added narrow exceptions for statistics and site preferences since February 2026.


Are cookies personal data under the GDPR?

Often, yes. A cookie with a unique ID that lets a site recognise your device is an online identifier, which the GDPR counts as personal data. But the consent rule doesn't depend on that: the EU's top court ruled in 2019 that it applies whether or not a cookie holds personal data.


What is the EU cookie law?

It's Article 5(3) of the ePrivacy Directive of 2002, amended in 2009 to require consent. Each EU country applies it through its own national law, and the GDPR defines what valid consent is. The Digital Omnibus would rewrite it, but nothing has changed yet.


Do I need a cookie banner if I only use Google Analytics?

In most of the EU, yes, because Google Analytics sets cookies that aren't strictly necessary. Some authorities, the CNIL among them, exempt analytics only when it's tightly configured, which the standard Google Analytics setup isn't. In the UK the new statistics exception applies only if the data are used for nothing else, so Google Analytics with advertising features switched on still needs consent.


What happens if I don't accept cookies?

On a site that follows the rules, nothing you need breaks: you can still read, log in and buy. You may lose saved preferences and see ads that aren't based on your browsing. A site that blocks you completely unless you accept is using a cookie wall, which EU authorities generally don't accept.


What is the fine for not getting cookie consent?

It depends on the country, because cookie rules are national law. France's CNIL has fined Google €325 million and Shein €150 million in 2025, and its smaller fines are a few thousand euros. In the UK, the maximum has been £17.5 million or 4% of worldwide turnover since February 2026.


1 Comment

  • Anonymous

    October 4, 2023 6:24 pm

    not sure that the toggles are in the right position, If you have a mechanical switch, the off part will be exposed, so you will need to toggle to it, to switch it off….