01In plain English
In the EU, you need a visitor’s consent before storing or reading anything on their device that isn’t strictly necessary. That covers most analytics and advertising cookies, pixels and similar tags. The rule comes from the ePrivacy Directive, which each country implements through its own national law; the GDPR defines what valid consent is.
Consent has to be a clear, active choice: no pre-ticked boxes, no “by continuing to browse”. Refusing has to be as easy as accepting, and withdrawing as easy as giving.
Each country’s data protection authority enforces the cookie rules under its own national law. France’s CNIL has issued some of the largest fines; they’re listed on this page.
02Why it matters
- €325M[5]
- France’s fine on Google in 2025, partly over steering users to accept advertising cookies
- 6[5]
- CNIL fines over cookie consent listed on this page, from €35M to €325M
- 4%[1]
- of worldwide annual turnover or €20M, whichever is higher: the GDPR’s ceiling. Cookie fines themselves are set under each country’s law
03Who it covers
EU cookie requirements can apply when information is stored on or accessed from visitors’ devices in the EU. GDPR obligations for organizations outside the EU depend on additional territorial-scope rules, including whether they offer goods or services to individuals in the EU or monitor their behavior. In practice, the cookie rules matter when a site:
- Sets or reads cookies, pixels or similar technologies on the devices of visitors in the EU
- Uses them for anything beyond what’s strictly necessary for the service the visitor asked for, such as analytics, advertising or personalization
Being reachable from Europe doesn’t by itself bring every GDPR obligation. Strictly necessary cookies, such as a shopping cart or a security token, don’t need consent.
04What the law asks of your site
4.1Ask before non-essential cookies and tags
- The law says
- Storing information, or reading information already stored, on a user’s device is allowed only with their consent, unless it’s strictly necessary for a service they requested.[2]
- For your site
- Analytics and advertising tags don’t run, and their cookies aren’t set, until the visitor accepts.
- Related CodeAsure test
- Initial browser-state inspectionIn reports: Before any choice. It observes behavior related to this duty; it doesn’t establish that the duty is met.
4.2Make refusing as easy as accepting
- The law says
- Consent must be freely given and unambiguous. Most authorities in the EDPB’s cookie banner taskforce considered a banner with an accept button but no refuse option on the same layer not to meet that standard.[1],[4]
- For your site
- “Reject all” sits next to “Accept all”, equally visible, with no extra clicks to refuse.
- Related CodeAsure test
- Initial browser-state inspectionIn reports: Before any choice. It observes behavior related to this duty; it doesn’t establish that the duty is met.
4.3Make “no” actually stop the tracking
- The law says
- Without consent, non-essential storing and reading isn’t allowed, so it must not happen after a visitor refuses.[2]
- For your site
- After “Reject all”, the tags the visitor refused don’t run, on any page.
- Related CodeAsure test
- Post-rejection browser behaviorIn reports: After “Reject all”. It observes behavior related to this duty; it doesn’t establish that the duty is met.
4.4Let visitors change their mind
- The law says
- It must be as easy to withdraw consent as to give it.[1]
- For your site
- A visible way to reopen the banner and change the choice, available on every page.
- Related CodeAsure test
- No related CodeAsure test. Automated testing doesn’t cover this; check with your team or counsel.
4.5Explain what each kind of cookie is for
- The law says
- Consent must be informed: users get clear and comprehensive information, including the purposes.[2],[3]
- For your site
- The banner and cookie policy say what each category does, in plain language.
- Related CodeAsure test
- No related CodeAsure test. Automated testing doesn’t cover this; check with your team or counsel.
A law tells you what your site must do. It can’t show you what your site actually does.
That takes a test, run the way a visitor would, on every page type, every week, because sites change. CodeAsure runs those tests and keeps every result, dated. What the results mean for your obligations is a question for your counsel.
05Enforcement
Public actions, newest first, each linked to the regulator’s own page.
Google · CNIL, France’s data protection authority · Sep 2025
Users were steered to accept advertising cookies when creating an account, and shown ads in Gmail without consent.
SHEIN · CNIL, France’s data protection authority · Sep 2025
Advertising cookies were placed on arrival, and again after visitors refused them.
Microsoft · CNIL, France’s data protection authority · Dec 2022
On bing.com, refusing cookies wasn’t as easy as accepting them, and ad-fraud trackers ran without consent.
Google · CNIL, France’s data protection authority · Dec 2021
On google.fr and YouTube, refusing cookies wasn’t as easy as accepting them.
Facebook · CNIL, France’s data protection authority · Dec 2021
On facebook.com, refusing cookies wasn’t as easy as accepting them.
Amazon · CNIL, France’s data protection authority · Dec 2020
The amazon.fr banner didn’t tell visitors what the cookies were for or how to refuse them.
As of November 2026. Settlements may not include an admission of wrongdoing. None of these companies is affiliated with CodeAsure.
06Questions
Do the EU rules apply to a business outside the EU?
They can. The cookie rules, set by national laws implementing the ePrivacy Directive, can apply when information is stored on or read from the devices of visitors in the EU. The GDPR applies to organizations outside the EU under its territorial-scope rules, including when they offer goods or services to people in the EU or monitor their behavior there. Being reachable from Europe doesn’t by itself bring every GDPR obligation.
Do I need consent for analytics?
Usually, yes: analytics cookies generally aren’t strictly necessary. Some national authorities allow narrow exemptions for tightly limited audience measurement, under conditions they set, so check the guidance in the countries where your visitors are.
Is a “Reject all” button required?
Not in those exact words, but regulators expect refusing to be as easy as accepting. A banner that offers “Accept” on the first layer and hides refusal behind settings is the kind they’ve fined.
Who enforces the cookie rules?
The data protection authority in each EU country, under its national law. That’s why France’s CNIL can fine companies whose EU headquarters are elsewhere.
Does CodeAsure make my site GDPR compliant?
No. CodeAsure tests observable browser behavior before a choice, after “Reject all” and after “Accept”, from EU locations, every week, and keeps dated evidence. Those results document specific tests; they don’t establish compliance. Whether your site meets the GDPR and national cookie rules is a question for your counsel.
07Sources
- [1]StatuteGeneral Data Protection Regulation (EU) 2016/679 (opens in a new tab)
- [2]StatuteePrivacy Directive 2002/58/EC, including Article 5(3) on cookies (opens in a new tab)
- [3]RegulatorEDPB Guidelines 05/2020 on consent under the GDPR (opens in a new tab)
- [4]RegulatorEDPB report of the Cookie Banner Taskforce (2023) (opens in a new tab)
- [5]RegulatorCNIL: Google fined €325 million over cookies and ads in Gmail (2025) (opens in a new tab)
Last reviewed November 2026. Laws and how courts read them change; check the sources.
This content is provided for general educational purposes and does not constitute legal advice. Privacy laws vary by jurisdiction, business activity and circumstances. CodeAsure provides technical testing and evidence of observed website behavior, not legal compliance certification. Consult qualified legal counsel about the obligations that apply to your organization.
These guides cover selected laws and the CodeAsure tests most closely related to them. They don’t describe everything CodeAsure tests, and they aren’t a complete list of the laws that may apply to your site. Both the guides and CodeAsure’s testing are subject to change and will continue to evolve as laws, regulator guidance and the product change.