Skip to content

Privacy

ePrivacy Directive

The ePrivacy Directive (Directive 2002/58/EC) is the EU law that requires consent before a website stores information on, or reads information from, a visitor's device, unless that is strictly necessary for a service the visitor asked for. It is the reason cookie banners exist, and it applies to cookies, localStorage, pixels and similar techniques alike.

Also called cookie law, Directive 2002/58/EC, ePrivacy, Article 5(3), PECR Updated

How is it calculated?

The rule that matters for websites is Article 5(3), as amended in 2009 by Directive 2009/136/EC. Two exemptions apply: storage or access whose sole purpose is carrying out the transmission of a communication, and storage or access strictly necessary to provide a service the user explicitly requested. Everything else needs prior consent. The European Data Protection Board’s Guidelines 2/2023, final version October 2024, explain how far the technical scope reaches beyond cookies.

It is a directive, so each country writes it into its own law, and regulators read it differently: the UK has PECR, France its own audience-measurement guidance. It sits beside the GDPR: ePrivacy asks whether you may touch the device at all, and the GDPR governs the personal data you then process. A planned ePrivacy Regulation to replace it was listed for withdrawal in the European Commission’s 2025 work programme, as Germany’s federal data protection commissioner notes, so the directive and national laws still apply. In November 2025 the Commission proposed amendments to modernise the cookie rules, with one-click consent and preferences saved in the browser; they go to the European Parliament and the Council, and until any change is adopted the current rules stand. This is general information, not legal advice.

Example

  • 40% of visitors decline
  • 60% of traffic

A site runs a login cookie, a cart cookie, an analytics cookie and an ad pixel. The login and cart cookies serve something the visitor asked for, so they fall under the strictly necessary exemption. The analytics cookie and the pixel do not, so in the EU both wait for consent. If 40% of visitors decline, a cookie-based analytics tool sees 60% of traffic.

Common mistakes

  • Thinking it is only about cookies. Article 5(3) covers any storage or reading on the device, including localStorage, pixels and similar techniques.
  • Assuming first-party analytics cookies are exempt. Exemptions depend on strict necessity, and national guidance differs on audience measurement.
  • Treating it as the same thing as the GDPR. They are separate laws with separate questions, and a site can satisfy one and breach the other.

How CrispStats shows it

By default CrispStats stores nothing on the visitor’s device: no cookies, no localStorage, and no fingerprinting. The script does read the screen width, browser language and time zone to send with each event, so whether your setup needs consent under Article 5(3) is a question for your lawyer, and the EDPB guidelines above are the place to start. The opt-in persistent visitor mode writes an id to localStorage and so does fall under the rule.

  • CookiesNever storedThe script sets none and writes nothing to the device.
  • IP addressesNever storedHeld in memory for a moment to count the visit and limit abuse. Never stored or logged.
  • Raw user agentsNever storedReduced to a browser, OS and device family. The string is not kept.
  • A lasting identityNever storedA visitor is a hash that rotates daily. Each salt is deleted 35 minutes after its day ends, so past days cannot be recomputed.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.