Skip to content
Privacy and compliance

What is the ePrivacy Directive?

3 min read · Updated · By the Reveata team

Short answerThe ePrivacy Directive (Directive 2002/58/EC) is the EU law on privacy in electronic communications. Its Article 5(3) is the reason websites ask for cookie consent: storing or reading information on a person's device needs their consent unless it is strictly necessary for a service they asked for.

Browser logos displayed on a laptop screen
Photo by Zulfugar Karimov on Unsplash

People often call it "the cookie law". The directive dates from 2002 and was amended in 2009, which is when the consent requirement for cookies took its current shape. The text is on EUR-Lex (opens in a new tab). Because it is a directive, not a regulation, each EU country wrote it into its own national law, so the details and the regulator differ from country to country. This page is an explanation, not legal advice.

What Article 5(3) covers

The rule is about the visitor's device, not about personal data as such. It applies when a website stores information on a phone or computer, or reads information already stored there. Cookies are the classic case, but the same logic applies to local storage and similar techniques.

There are two exemptions:

  1. Storage or access needed only to carry out the transmission of a communication.
  2. Storage or access that is strictly necessary to provide a service the user explicitly asked for, such as a shopping basket or a sign-in session.

Analytics cookies are generally not treated as strictly necessary, which is why many sites put them behind a cookie banner.

In 2024 the European Data Protection Board adopted guidelines on the technical scope of Article 5(3) (opens in a new tab). They read the rule as covering more than cookies, including some tracking techniques that do not set a cookie at all. If you are planning a cookieless setup to avoid consent, that document is worth reading with your adviser.

ePrivacy and the GDPR together

Question Answered by
May I store or read something on the visitor's device? ePrivacy Directive (national law)
What makes consent valid? GDPR definition of consent
What may I do with the personal data I collect? GDPR

A proposal for an ePrivacy Regulation, which would have replaced the directive with one EU-wide law, was discussed for years. The directive and the national laws based on it remain the rules to follow.

The UK version

In the UK the same rule lives in PECR, the Privacy and Electronic Communications Regulations. The UK has since amended PECR with new exceptions, so UK and EU rules are no longer identical.

How Reveata relates to it

By default Reveata's script sets two first-party cookies on your domain: _dt_v, a random visitor id with a visit counter that lasts up to 400 days, and _dt_s, a session id that expires after 30 minutes of inactivity. They hold no personal details and are never shared across websites. These are listed in Reveata's Cookie Policy.

If you prefer to store nothing on the device, switch on Cookieless in Settings → General, or load the cookieless build of the script. The server then counts visitors for one day with a hash built from a daily random salt, your website, the IP address and the user agent, and deletes each salt after its day ends. See Privacy, cookies and cookieless mode for the trade-offs.

Reveata's own documentation is clear that whether you need consent depends on your configuration and your visitors' countries, and that you should check with your legal adviser.

Frequently asked questions

Does the ePrivacy Directive apply to websites outside the EU?

The national laws are generally applied to sites that store or read information on devices of people in the EU, wherever the site is run. How each country enforces this differs, so check the regulator in the countries that matter to you.

Is local storage treated differently from cookies?

No. The rule is about storing or reading information on the device, whatever the technology. Local storage, session storage and similar mechanisms fall under the same test.

Does cookieless analytics remove the need for consent?

Not automatically. Storing nothing in the browser takes away the most common trigger, but regulators have said the rule can cover other techniques too. Treat cookieless mode as a strong privacy measure and confirm the legal position for your setup.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is cookie consent?Cookie consent is the permission a website asks a visitor for before it stores or reads non-essential cookies, or similar data, on their device. Under EU and UK rules it must be given freely, clearly and before the cookies are set, and it must be as easy to refuse as to accept.GlossaryWhat is GDPR?The GDPR (General Data Protection Regulation) is the European Union law that governs how organisations collect and use personal data about people in the EU. It has applied since 25 May 2018 and sets the rules on legal bases, transparency, people's rights and security.GlossaryWhat is PECR?PECR (the Privacy and Electronic Communications Regulations 2003) is the UK law that sets the rules on cookies and similar technologies, electronic marketing such as emails and texts, and the privacy of communications. It sits alongside the UK GDPR and is enforced by the Information Commissioner's Office (ICO).GlossaryWhat is cookieless tracking?Cookieless tracking is website measurement that stores nothing in the visitor's browser: no cookies, no local storage. Visits are counted from what each request already carries, usually combined into a short-lived anonymous id on the server.GlossaryWhat is a cookie banner?A cookie banner is the pop-up or bar a website shows to tell visitors which cookies and similar technologies it uses and to collect their choice, so that non-essential cookies are only set after the visitor agrees.GlossaryWhat is a data controller?A data controller is the organisation that decides why and how personal data is processed. A data processor is a separate organisation that processes the data on the controller's behalf and only on its instructions, such as an analytics or email provider.