Back to Insights

Cookie banners in the EU

What the ePrivacy Directive and European data protection authorities require from a cookie banner, and how its design affects marketing measurement.
Portão de jardim meio aberto

On this page

A cookie banner in the EU has to ask for consent before the site sets analytics or advertising cookies. The rule comes from Article 5(3) of the ePrivacy Directive, which each member state has written into its own law, and each country’s data protection authority enforces it. The banner’s design decides how many people accept and how much the company can measure.

What the law requires

Storing information on the visitor’s device, or reading what is already there, requires prior consent. The exception is cookies strictly necessary for the service the visitor asked for, such as the shopping cart or a login session. National laws and guidance vary in detail, so check the rules of each country where you sell.

The General Data Protection Regulation (GDPR) defines what valid consent is. It has to be freely given, specific, informed and unambiguous, and it must be as easy to withdraw as to give.

What European authorities consider invalid

In January 2023, the European Data Protection Board published the report of its Cookie Banner Taskforce, with the common positions of the national authorities. These are the points with the most impact on banner design:

  • No reject button on the first layer. A large majority of authorities consider that if there is an accept button, there must be a reject button on the same layer.
  • Pre-ticked boxes. Cookie categories cannot be switched on by default in the second layer.
  • Rejecting through a link. Replacing the reject button with a small text link, or a link to another page, does not comply.
  • Misleading colours and contrast. A large, bright accept button next to a barely visible reject option can make consent invalid, assessed case by case.
  • Legitimate interest on the second layer. Using legitimate interest as the basis for cookies that require consent is not accepted.

Several European authorities have already fined companies for these practices. A banner that meets these points reduces the risk of complaints in every EU market.

How banner design changes the numbers

Acceptance rates depend on the design, the wording and the audience of each site. A banner with accept and reject on the same level usually gets lower acceptance than one that hides the reject option. That gap hits marketing data, while the sales themselves still happen.

A compliant banner costs less than it seems, for two reasons. Consent Mode in advanced mode lets Google estimate part of the conversions from people who declined. Sales from people who accepted can also go through the server, with fewer losses. Both are covered in Consent Mode v2 and Server-side tracking.

How to design a banner that complies and is easy to understand

  1. Put accept and reject on the first layer, with the same size and prominence, plus a third option to choose by category.
  2. Write the text in plain language, saying what the cookies are for (measuring visits, showing ads) instead of technical category names.
  3. Leave every optional category switched off by default.
  4. Block all analytics and advertising tags until the click, including Meta, TikTok and LinkedIn.
  5. Add a permanent link or icon so visitors can change their choice later.
  6. Keep a record of each consent, with the date and the banner version.
  7. Test acceptance across two or three versions of the text and layout, without breaking the equality between accept and reject.

How to confirm the banner works

Open the site in a private window and, before clicking the banner, check in the browser tools which cookies exist. Only strictly necessary ones should appear. Repeat after declining, and again after accepting. A banner can look right and still let tags set cookies before the click, which is the most common mistake.

The banner is the first layer of marketing measurement with consent. Klevie installs the banner and Consent Mode on its own platform and is responsible for the technical side. The privacy policy text and the legal basis stay with the company and its lawyer. If you want your banner reviewed, book a call.

Sources: Directive 2002/58/EC (ePrivacy), European Data Protection Board (Report of the work undertaken by the Cookie Banner Taskforce, 17 January 2023, and Guidelines 05/2020 on consent). This article covers the technical side and is not legal advice.

Newsletter

Get our insights straight to your inbox.

Cases, articles, reports, and our take on what’s happening in the market.

Done. You’re on the list.

Picture of Ricardo Vasconcelos

Ricardo Vasconcelos

Keep reading

Folha de selos com um selo duplicado

Tracking errors in e-commerce

Seven tracking errors that inflate or hide sales in online stores, from delayed payments to payment gateways, and how to find them in one month.
Dois meios bilhetes que encaixam

Conversions API and enhanced conversions

How to send sales to Meta and Google from your server with the Conversions API and enhanced conversions, without counting the same sale twice.
Painel de comutação com cabos ligados

Server-side tracking

What server-side tracking is, what it improves in cookies, blockers and data control, what the server costs and when it pays off for an online store.