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.
The cookie rules: PECR and the ePrivacy Directive
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.
- 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.
- 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.