Cookies and consent

When EU law requires consent for cookies and trackers, which cookies are exempt, what a valid banner looks like and what the Digital Omnibus would change.

Last checked:

Key points

  • You need consent before you store or read anything on a visitor's device, unless it is strictly necessary for a service the visitor asked for.
  • Analytics, advertising and social media cookies need consent under EU law. A few countries exempt limited audience measurement under conditions.
  • Valid consent is an active choice. Pre-ticked boxes, scrolling and continued browsing do not count.
  • A proposal to exempt first-party audience measurement and to limit repeat consent requests is not law yet.

The rule in one sentence

You may store information on a user’s device, or read information from it, only with the user’s consent. This comes from Article 5(3) of the ePrivacy Directive (Directive 2002/58/EC, as amended in 2009).

The rule is a directive, so each EU country has its own law that implements it. The wording and the enforcing authority differ by country. The standard for consent is the one in the General Data Protection Regulation (GDPR).

What the rule covers

The rule is about the device, so it covers more than cookies:

  • cookies, first-party and third-party
  • local storage and similar browser storage
  • tracking pixels and tracking links
  • device fingerprinting
  • software development kits (SDKs) and advertising identifiers in mobile apps

The European Data Protection Board (EDPB) confirmed this broad reading in its Guidelines 2/2023 on the technical scope of Article 5(3).

The rule applies whether or not the information is personal data. If it is personal data, the GDPR applies on top for everything you do with the data afterwards.

The two exemptions

No consent is needed when the storage or access is:

  1. Used only to carry out the transmission of a communication over a network, or
  2. Strictly necessary to provide a service the user explicitly asked for.
Usually exempt Needs consent
Shopping basket and checkout Advertising and retargeting
Login and session cookies Analytics, in most countries
Language or accessibility choices the user set Social media plug-ins that track
Load balancing and security Cross-site or cross-device tracking
Storing the consent choice A/B testing and personalisation tools, in most cases

“Strictly necessary” is judged from the user’s side. A cookie that is useful for your business model is not strictly necessary for the user.

Consent must meet the GDPR standard (Articles 4(11) and 7):

  • Freely given. The user has a real choice. Refusing must not block access to the site unless a fair alternative exists.
  • Specific. Separate choices for separate purposes, such as analytics and advertising.
  • Informed. Say who sets the cookies, for what purpose and for how long.
  • Unambiguous. A clear action such as clicking a button. The Court of Justice ruled in the Planet49 case (C-673/17) that a pre-ticked box is not consent.
  • Given first. No non-exempt cookie or tag may load before the user agrees.
  • Easy to withdraw. Withdrawing must be as easy as giving consent, for example through a permanent link in the footer.

You must be able to show that consent was given (Article 7(1)), so keep a log of choices.

What a compliant banner looks like

The EDPB cookie banner taskforce published its report in January 2023. It records where national authorities agree. The main points:

  1. Offer a refusal on the first layer. The large majority of authorities treat a missing reject option next to the accept button as a breach.
  2. Do not pre-tick boxes on the second layer.
  3. Do not hide the refusal in a text link that looks unlike a button, or outside the banner.
  4. Do not use colours or contrast that mislead. Authorities judge this case by case.
  5. Do not claim legitimate interest for cookies that need consent.
  6. Classify cookies honestly. Do not label tracking cookies as essential.
  7. Give a permanent way to withdraw, such as a small icon or a footer link.

The report sets a minimum common position. A national authority can be stricter.

Analytics

EU law has no general exemption for analytics. Several authorities, including the French authority CNIL, accept audience measurement without consent under strict conditions: the data serves only the site operator, produces only anonymous statistics and is not combined with other data or shared. Other countries have no such exemption.

If your analytics provider sends data outside the EU, the transfer rules of the GDPR also apply.

What the Digital Omnibus would change

On 19 November 2025 the European Commission proposed the Digital Omnibus. It is a proposal. None of the following is law.

Point Commission proposal Council position of 21 October 2026
Where the rule sits A new Article 88a in the GDPR for personal data on devices Keeps the rule in the ePrivacy Directive, to be put into national law
New exemptions Aggregated audience measurement by the site operator for its own use, and security of the service Also audience measurement by a provider acting for the site operator, and measurement of contextual advertising, under conditions
Refusing One click or an equivalent means Same
After a refusal No new request for the same purpose for at least six months At least four months
Browser signals Sites must accept consent and refusal signals sent automatically by a browser, with an exception for media service providers Not confirmed

Consent would remain the rule for advertising cookies and tracking under both texts. The European Parliament has not adopted its position, so negotiations between the institutions have not started. The proposal itself gives transition periods of between 6 and 48 months after entry into force for the cookie rules.

Until a final text is published in the Official Journal, apply the current rules and the guidance of your national authority.

Common questions

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

Yes, in most EU countries. Analytics cookies are not strictly necessary to deliver the site, so they need consent under Article 5(3) of the ePrivacy Directive. Some national authorities exempt limited, first-party audience measurement under conditions. Check the guidance of the authority in each country you target.

Does a cookie banner need a reject all button?

Most EU data protection authorities say yes. In its cookie banner taskforce report of January 2023, the large majority of authorities considered a banner with an accept button but no reject option on the same layer to be a breach. A few authorities did not share that view, so the rule is not identical everywhere.

Do I need consent for strictly necessary cookies?

No. Cookies needed to carry out a transmission, or strictly necessary to provide a service the user explicitly requested, are exempt. Examples are a shopping basket, a login session, load balancing and the cookie that stores the consent choice itself. You should still describe them in your cookie information.

Do the EU cookie rules apply to a website outside the EU?

In practice, yes, if you target visitors in the EU. The rule protects the user's device and is implemented in the national law of each EU country, so the exact reach depends on that law. If you track visitors in the EU, the GDPR applies to you as well (Article 3(2)).

Are cookie banners being abolished in the EU?

No. The Digital Omnibus proposal of 19 November 2025 would reduce how often banners appear, but consent would still be the rule for advertising and tracking. It is still in the legislative procedure and nothing has changed in law.

Legal sources

This page is general information, not legal advice. Rules have exclusions and transition periods that depend on the details of your case. Check the legal text or ask a qualified adviser before you rely on it.