Skip to content
Privacy and compliance

What is PECR?

3 min read · Updated · By the Reveata team

Short answerPECR (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).

PECR is the UK's implementation of the EU ePrivacy Directive. The regulations are on legislation.gov.uk (opens in a new tab), and the ICO publishes a guide to PECR (opens in a new tab). This page explains the parts that matter for websites. It is not legal advice; the ICO's current guidance is the place to confirm the rules.

What PECR says about cookies

Regulation 6 deals with storing information on, or reading it from, a person's device. The basic rule mirrors the EU one: you must tell people clearly what you store and why, and get their consent, unless an exception applies. The long-standing exception covers storage that is strictly necessary for a service the person asked for, such as a sign-in session or a basket.

Like the EU rule, PECR is about the device's storage, whatever the technology. Cookies, local storage and similar techniques are all covered.

What changed recently

The Data (Use and Access) Act 2025 amended PECR and added new exceptions to the consent requirement. One of them is aimed at storage whose sole purpose is collecting statistical information about how a website or service is used, so it can be improved. The exception comes with conditions, including information for users and a simple, free way to object, and the ICO explains how narrowly it reads them in its guidance on the exceptions (opens in a new tab). If you are relying on it for analytics, read the ICO's current guidance and take advice: the conditions decide whether your particular setup qualifies.

This is one of the places where UK and EU rules now differ, so a site with visitors in both should check each separately.

PECR and the UK GDPR

Question Answered by
May I store or read data on the visitor's device? PECR
What makes consent valid? UK GDPR standard of consent
What may I do with the personal data collected? UK GDPR and the Data Protection Act 2018
May I send this marketing email? PECR

How Reveata relates to it

Reveata gives you two modes, and you choose based on your advice:

  • Default. Two first-party cookies on your domain: _dt_v, a random visitor id with a visit counter (up to 400 days), and _dt_s, a session id that expires after 30 minutes of inactivity. They hold no personal details and are not shared between websites.
  • Cookieless. Nothing is stored in the visitor's browser. The server counts visitors for one day with a hash of a random daily salt, your website, the IP address and the user agent, and deletes each salt after its day. See cookieless tracking.

In both modes IP addresses are never stored. Reveata is used only for your own website's analytics: its Cookie Policy says it sets no third-party cookies and does not track people across sites, which is relevant to the purpose-based conditions of the UK exceptions. Reveata's docs leave the final call to you and your adviser.

Frequently asked questions

Does PECR apply to businesses outside the UK?

It applies to storing or reading information on devices of people in the UK. A site based elsewhere with UK visitors should consider it, alongside the laws of its own country.

Is PECR the same as the UK GDPR?

No. PECR covers device storage, electronic marketing and communications privacy. The UK GDPR covers personal data generally. Cookie questions usually involve both.

Does PECR cover marketing emails?

Yes. It sets rules on unsolicited electronic marketing by email, text and phone, which is a separate topic from cookies. The ICO's guide covers both.

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 the ePrivacy Directive?The 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.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 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.