# ePrivacy Directive

> The EU's cookie law. Sites must ask before they store cookies they do not need.

**Field:** Marketing & SEO  
**Category:** Law & Ethics  
**Also known as:** EU Cookie Law, Cookie Law, Privacy and Electronic Communications Directive

## Think of it like

It is like a rule that you must knock first. You do not drop a note in a bag without asking.

## Definition

The ePrivacy Directive is an EU law from 2002. It is about privacy in messages and on phones and laptops. Its best-known rule says a site must ask before it stores cookies on a visitor's device. Only what the site truly needs to work is exempt. It also says sales emails and texts need a yes first, with a small exception for past buyers. Each EU country writes it into its own law, so the details vary.

## Example

A blog in Berlin wants to load an ad cookie. Under this law it must ask first, but its login cookie needs no question.

## Why it matters

It is why sites in Europe show cookie banners. It applies even when no personal data is involved.

## Common mistake

Thinking the GDPR alone sets the cookie rules. The ask-first rule for cookies comes from this law.

## Three principles

- **Ask before storing.** Cookies you do not need require a yes.
- **Needed ones pass.** Login and cart cookies are exempt.
- **Email too.** Marketing emails need consent first.

## Related terms

- [General Data Protection Regulation (GDPR)](https://learn.benibix.com/term/data/gdpr)
- [Cookie Banner](https://learn.benibix.com/term/marketing/cookie-banner)
- [Consent Management Platform (CMP)](https://learn.benibix.com/term/marketing/consent-management-platform)
- [Consent (Data Protection)](https://learn.benibix.com/term/marketing/consent)
- [Opt-In](https://learn.benibix.com/term/marketing/opt-in)
- [HTTP Cookie](https://learn.benibix.com/term/development/cookie)

![A cookie banner with three buttons of the same size: Accept all, Reject all and Settings. Behind it, needed cookies are already loaded, while ad and analytics cookies wait behind a closed gate until the visitor answers.](https://learn.benibix.com/diagrams/mlaw-consent-banner.svg)

---

Source: https://learn.benibix.com/term/marketing/eprivacy-directive
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
