Skip to content

EARN UP TO 50% COMMISSION WITH OUR RESELLER ACCOUNTS + REGULAR PASSIVE INCOME SIGN UP TODAY

Cookie law

How GDPR and PECR apply to cookies

A plain-English look at how the cookie rules in PECR and the ePrivacy Directive work alongside the GDPR. General guidance, not legal advice.

Updated 3 min read

Applies to:
  • Compliance

https://cookiescan.com/help/gdpr-pecr-and-cookies/ Β· Updated 12 October 2026

On this page

Overview

Two sets of rules apply when your website uses cookies. Cookie rules decide when you need consent to store or read information on a visitor's device. Data protection law sets what valid consent looks like, and covers any personal data the cookies collect.

This page is general guidance, not legal advice. Check with your own adviser if you're unsure which rules apply to your website.

In the UK, the cookie rules are in regulation 6 of the Privacy and Electronic Communications Regulations (PECR). In the EU, they come from Article 5(3) of the ePrivacy Directive, which each country puts into its own law.

These rules cover any information stored on or read from a device, not only personal data. So they apply even when a cookie can't identify anyone. You need consent unless the cookie is strictly necessary, or another exception applies.

Where the GDPR comes in

The GDPR, and the UK GDPR in the UK, matter for cookies in two ways.

  1. They set the standard for consent. PECR and the ePrivacy Directive both use the GDPR's meaning of consent. It must be freely given, specific, informed and a clear yes.
  2. They apply to personal data that cookies collect. Many cookies hold an online identifier, which counts as personal data when it relates to a person.

When you need consent for a cookie and it collects personal data, the ICO says you should also use consent as your lawful basis under the UK GDPR.

The GDPR didn't replace the cookie rules

The GDPR and the cookie rules apply side by side. In the UK, the ICO says PECR takes priority where it applies, so you check the cookie rules first. Then you apply the UK GDPR to any personal data.

Changes to the UK rules

The Data (Use and Access) Act 2025 changed PECR. From 5 February 2026, some cookies used only for statistics about your own website, or to remember how a visitor wants it to look, no longer need consent. You must still tell visitors about them clearly, and give them a simple, free way to object.

The EU rules have not changed in the same way. If your visitors are in the EU, the stricter EU position may still apply to them.

Visitors in different countries

Which rules apply can depend on where your organisation is and where your visitors are. CookieScan's Geo-Awareness can change how the banner behaves for visitors in different countries. See Use Geo-Awareness.

Read the rules yourself

Was this article helpful?

Thanks for your feedback.

Please don't include personal details. We can't reply here.

Thanks for your feedback.

Please don't include personal details. We can't reply here.

Thanks, your comment has been sent.

Sorry, we couldn't record your feedback. Please try again later.

Still stuck?

Our support team can help with anything these guides don't cover. Tell us your CookieScan ID and the page address so we can look straight away.

Back to Cookie law