Legitimate interest and cookies

Can you rely on legitimate interest instead of consent for cookies, analytics or advertising? Why the ePrivacy rule on cookies still asks for consent, what the EU Court of Justice decided in the Meta and KNLTB cases, what the EDPB says, and where legitimate interest does fit.

Last checked on 16 October 2026

In short

  • Legitimate interest (GDPR article 6(1)(f)) is a legal basis for processing personal data. It does not replace the consent the cookie rule asks for.
  • Storing or reading information on a device needs consent under article 5(3) of the ePrivacy Directive, unless it is strictly necessary. That rule has no legitimate interest exception.
  • For tracking and personalised advertising, the EU Court of Justice and the EDPB leave little room for legitimate interest. Consent is the basis that fits.
  • Legitimate interest does fit processing that needs no consent under the cookie rule, such as security, fraud prevention and strictly necessary cookies.

What is legitimate interest?

The GDPR allows you to process personal data only on one of six legal bases (article 6(1)). Consent is one of them. Legitimate interest, point (f), is another: processing is lawful if it is "necessary for the purposes of the legitimate interests pursued by the controller or by a third party", unless the interests or fundamental rights of the people concerned override those interests, especially when they are children. Public authorities cannot use it for their tasks.

The EU Court of Justice reads this as three conditions that must all be met:

  1. A legitimate interest. The interest must be lawful, clearly described and real at the time of processing. It does not have to be laid down in law.
  2. Necessity. The processing must be strictly necessary for that interest. If the same goal can reasonably be achieved just as well in a less intrusive way, or with less data, the condition is not met.
  3. Balancing. The interests and rights of the people concerned must not override yours. What they can reasonably expect, the scale of the processing and its impact on them weigh heavily.

You must carry out and document this assessment before you start, tell people which legitimate interest you rely on (article 13(1)(d)) and respect their right to object (article 21). For direct marketing, that right is absolute: once someone objects, you stop.

Legitimate interest is not a lighter version of consent. The EDPB writes that it should not be chosen because it seems less demanding, and the Court of Justice says the legal bases other than consent must be interpreted restrictively.

Why it doesn't replace consent for cookies

Two sets of rules apply to cookies, and they ask different questions:

ePrivacy Directive, article 5(3) GDPR, article 6(1)
What it covers Storing or reading information on a device: cookies, local storage, pixels, fingerprinting Processing of personal data
What it asks Did the visitor consent, or is it strictly necessary? Which of the six legal bases applies?
Legitimate interest? No. The only exceptions are transmission and strictly necessary storage Yes, as one of the six legal bases

The ePrivacy rule comes first. It allows storing or reading information on a visitor's device only with consent, unless it is needed to transmit a communication or strictly necessary for a service the visitor explicitly asked for. There is no exception for a legitimate interest. Every EU country has written this rule into national law, which is why you need a cookie banner even if you think you have a good reason to track.

The GDPR then applies to what you do with the data. The EDPB says that when you use cookies or other tracking techniques for marketing, consent is likely to be the right legal basis both for placing and reading them and for the processing that follows, which normally rules out legitimate interest. In practice: once you need consent for the cookie, you also base the tracking behind it on consent.

The rule does not depend on what kind of cookie it is. First-party or third-party, set by a script or by a server: what counts is the purpose. More in server-side tracking and consent.

What the EU Court of Justice decided

Meta Platforms v Bundeskartellamt (C-252/21, 4 July 2023). Meta relied on legitimate interest, among other bases, for personalised advertising based on data collected on and off Facebook. The Court accepted that direct marketing can be a legitimate interest, but ruled that users cannot reasonably expect their data to be used for personalised advertising without their consent, even when the service is free. Their interests and rights override Meta's interest, so legitimate interest cannot be the basis. The Court also pointed to the scale of the processing: potentially unlimited data, which can give users the feeling that their private life is being continuously monitored.

Koninklijke Nederlandse Lawn Tennisbond (C-621/22, 4 October 2024). The Dutch tennis federation passed its members' data, for payment and without their consent, to two sponsors, a sports shop and a gambling operator, for marketing. The Dutch data protection authority, which fined the federation, held that only interests laid down in law can be legitimate, so a purely commercial interest could not be. The Court disagreed: an interest does not have to be laid down in law, and a commercial interest can be legitimate as long as it is lawful. But the processing must still be strictly necessary, and the Court noted that informing members beforehand and asking whether they want their data passed on could be the less intrusive route. In the balancing test, what members could reasonably expect when they joined weighs heavily.

Together: a commercial interest is not ruled out, but for tracking and targeted advertising the reasonable expectations of the people concerned usually tip the balance, and asking for consent is the less intrusive way.

What the EDPB says

In its Guidelines 1/2024 on legitimate interest (version 1.0, adopted in October 2024 for public consultation), the EDPB, where all EU data protection authorities meet, applies these rulings:

  • Direct marketing may be a legitimate interest (recital 47), but not automatically. You still need the three conditions.
  • Where the ePrivacy rule requires consent for cookies or other tracking, consent will likely be the right basis for the processing that follows too.
  • Intrusive profiling and tracking for marketing, for example tracking people across websites, devices or services, will hardly ever pass the balancing test.
  • Less intrusive marketing, such as sending the same catalogue to existing customers, is easier to justify.

The EDPB's cookie banner taskforce was blunter. In its January 2023 report, the authorities in the taskforce confirmed that placing or reading cookies under article 5(3) cannot be based on the controller's legitimate interest, and that if the cookie rule is breached, for example because valid consent is missing, the processing that follows cannot comply with the GDPR either. They also flagged banners that list purposes such as "create a personalised content profile" or "select personalised ads" under legitimate interest, in a deeper layer, as confusing: visitors may think they have to refuse twice.

Where legitimate interest does fit

Legitimate interest is a sound basis for processing that needs no consent under the cookie rule, or that does not touch the visitor's device at all. For example:

  • Security and fraud prevention. Recitals 47 and 49 of the GDPR name both. Think of bot detection, rate limiting or security logs on your server, as long as you only process what is strictly necessary.
  • Strictly necessary cookies. A session cookie, a shopping cart or a load balancer needs no consent. The processing behind it rests on the contract with the visitor or on legitimate interest.
  • Remembering the visitor's cookie choice. Storing the choice itself is necessary to respect it.
  • Exempt analytics. Some countries exempt analytics that only produces anonymous statistics for your own website from consent, under strict conditions. Where that exemption applies, the processing can rest on legitimate interest. Standard Google Analytics usually does not qualify; see Google Analytics and the GDPR.

IAB TCF and "legitimate interest" switches

Banners built on the IAB Transparency & Consent Framework often show a second list of switches marked "legitimate interest", which are on by default. They cover processing that ad tech vendors say needs no consent.

The TCF Policies limit what those switches may cover. Storing or accessing information on a device (purpose 1) and creating or using profiles for personalised advertising or content (purposes 3 to 6) may only be based on consent. For purposes such as ad measurement, audience statistics or limited data to select ads, vendors may choose legitimate interest; the visitor can object to it, and your banner must offer that.

So for anything that reads the visitor's device, the TCF itself requires consent. Whether a vendor's legitimate interest really passes the three conditions is something the vendor and you, as the publisher, remain responsible for. In March 2024 the EU Court of Justice ruled that the TC string can be personal data and that IAB Europe can be a joint controller for it. More in IAB TCF: who needs it?.

Common mistakes

  • "We have a legitimate interest, so no banner." Legitimate interest answers the GDPR question. The cookie rule still asks for consent for every non-essential cookie or tracker.
  • Falling back on legitimate interest after a "no". If a visitor declines marketing, you may not keep tracking them on another legal basis. Switching bases afterwards also undermines the consent you did ask for.
  • Legitimate interest switches that are on by default for tracking. Pre-ticked boxes are not consent (Planet49, C-673/17), and profiling for ads cannot run on legitimate interest under the TCF.
  • No documented assessment. Without a written three-step assessment, you cannot show that legitimate interest applies.
  • Not mentioning the interest. Your privacy policy must name the legitimate interest for each purpose and explain the right to object. See the privacy policy template.

The UK

In the UK the same split applies: PECR (regulation 6) asks for consent for storage and access, and the UK GDPR asks for a lawful basis. According to the ICO, where PECR requires consent you should use consent as your lawful basis for the processing that follows too, and you must not fall back on legitimate interests when your consent turns out to be invalid. Where a PECR exception applies, such as the statistics exception introduced in 2026, another lawful basis may fit. More in UK cookie law.

Sources

Frequently asked questions

What is legitimate interest under the GDPR?

One of the six legal bases in article 6(1) of the GDPR. You may process personal data without consent if three conditions are all met: you pursue a legitimate interest, the processing is necessary for that interest, and the interests and rights of the people concerned do not override it. You have to assess and document this before you start, and tell people which interest you rely on.

Can I place cookies based on legitimate interest?

Not for cookies that need consent. Article 5(3) of the ePrivacy Directive allows storing or reading information on a device only with consent, unless it is strictly necessary for the service the visitor asked for. The GDPR's legitimate interest is not an exception to that rule. For strictly necessary cookies you need no consent, and the processing behind them can rest on legitimate interest or on a contract.

Can Google Analytics run on legitimate interest?

Not in its standard form in the EU. Google Analytics stores and reads cookies and sends data to Google, which needs consent under the cookie rule. Some countries have a narrow exemption for analytics that only produces statistics for your own website; where that applies, the processing can rest on legitimate interest, but Google Analytics usually does not meet the conditions.

Is personalised advertising a legitimate interest?

Direct marketing can be a legitimate interest, but that is only the first of three conditions. In the Meta case of 2023, the EU Court of Justice ruled that users cannot reasonably expect their data to be used for personalised advertising without their consent. The EDPB adds that tracking people across websites for marketing will hardly ever pass the balancing test.

Can a commercial interest be a legitimate interest?

Yes. In the KNLTB case of October 2024, the EU Court of Justice ruled that a purely commercial interest can be legitimate, as long as it is lawful. That does not make the processing lawful by itself: it must still be strictly necessary and pass the balancing test. The Court pointed out that simply asking people beforehand could be the less intrusive route.

What does "legitimate interest" mean in a cookie banner or IAB TCF?

Some banners, mainly those using IAB TCF, show separate "legitimate interest" switches that are on by default. They are for processing that vendors say needs no consent. Under the TCF rules, storing and reading information on the device and creating or using profiles for personalised ads or content always need consent. Visitors can object to the rest, and your banner must let them.

This guide is general information, not legal advice. We check it regularly, but laws and guidance change. Not sure about your situation? Ask a lawyer.

Enjoy the first 7 days completely free

Create a free account and see if Cookie Confirm is the right fit for you. Live in 5 minutes.

  • No credit card required
  • €7.95 per month after
  • Plug & play installation
Start my free trial

5.0/5 5,000+ websites

Enjoy the first 7 days completely free

No credit card required

Start free trial