This guide gives an overview; it does not replace legal advice suited to your situation.

Two overlapping rules

All the confusion starts here: a tracking cookie falls under two texts at once.

  1. Storing or reading the tracker on the device: that is Article 5(3) of the ePrivacy Directive (Article 82 of the French Data Protection Act in France). It requires prior consent, with only two exceptions.
  2. Using the data obtained that way (analytics, advertising profile): that is the GDPR, which requires one of six legal bases (Article 6), including consent and legitimate interest (Article 6(1)(f)).

Legitimate interest only exists in the second rule. It can therefore never authorise the operation governed by the first.

The only exceptions

Without consent, a site can only set trackers that:

  • are used only to carry out a communication;
  • or are strictly necessary for the service the visitor asked for: basket, login, form security, remembering their cookie choice, load balancing.

In France, the CNIL also includes audience measurement limited to anonymous statistics for the publisher alone. These are exemptions written into the rule, not a “legitimate interest”: “we have an interest in measuring our campaigns” or “advertising pays for the site” are not among them.

What regulators say

The French regulator (CNIL) answered the question directly in the FAQ to its cookie guidelines: when an interface presents legitimate interest as the legal basis, storing and reading trackers still require prior consent, and if the visitor refuses, the data cannot be collected.

No non-essential tracker may be set without prior consent, “even if the interface presents legitimate interest as the legal basis for the processing”.

At European level, the European Data Protection Board (EDPB) points out in its guidelines on legitimate interest (final version adopted in November 2026) that they are without prejudice to the ePrivacy Directive, which governs the role of consent. And for targeted advertising, the CNIL considers that consent will generally be the most appropriate basis for the processing that follows too.

The “legitimate interest” tab in banners

This tab mostly comes from IAB Europe’s TCF (Transparency and Consent Framework), the standard of programmatic advertising. It lists hundreds of partners and “purposes” for which some claim legitimate interest, often switched on by default: a visitor who clicks “Reject all” still has to object partner by partner.

The standard itself has backed off: its version 2.2, published in May 2023 and mandatory since the end of September 2023, only allows consent for personalised advertising and content purposes. And in March 2024, the Court of Justice of the European Union (case C-604/22) ruled that the string encoding the visitor’s choices in this system can be personal data, as soon as it can be linked to an identifier such as the IP address. For a website, the right reading is simple: a tracker set on legitimate interest alone, without consent, is a tracker set without consent.

With Optooki

Optooki has no “legitimate interest” tab and does not support the TCF: that is a deliberate choice. Our banner is for sites that do not sell their ad space programmatically, and for them the rule fits in two boxes: what is exempt (strictly necessary, exempt audience measurement declared as such, never blocked) and what waits for consent, blocked until the “yes”. A refusal is a real refusal, and every choice is kept in a sealed consent log. If you sell programmatic advertising, you still need a TCF-certified solution.

Frequently asked questions

Can advertising cookies be set on the basis of legitimate interest?
No. Storing and reading non-essential trackers requires prior consent, whatever legal basis is claimed for what follows.
Why do some cookie banners have a “legitimate interest” tab?
It mostly comes from the programmatic advertising TCF. It does not remove the need for consent to set trackers.
Are strictly necessary cookies based on legitimate interest?
They are exempt from consent by the law itself, not by legitimate interest. The data they process then has its own GDPR basis, often the contract.

Your cookie banner, ready before your next coffee.

Create your account, customise the banner and add one line of code. Free for one site, no credit card required.