Sub topic 1
Which laws apply and how they fit together
Cookie consent for marketing is governed by two layers of law. One layer covers access to a visitor's device. The other covers what you do with personal data afterwards. This chapter shows how the EU and UK versions of both layers relate, so later chapters can apply them.
Prerequisites
This chapter assumes you know the following:
- How web cookies are set and read by a browser.
- What common marketing tools do, such as analytics, advertising pixels and tag managers.
- The basic ideas of GDPR: personal data, controllers and lawful bases.
The two layers
The first layer is the rule on storing or reading information on a user's device. In the EU this is Article 5(3) of the ePrivacy Directive (2002/58/EC). In the UK it is regulation 6 of the Privacy and Electronic Communications Regulations 2003 (PECR). Both rules say you need the user's consent before you store information on their device or read information already stored there. There are narrow exemptions, covered in a later chapter.
The second layer is data protection law. In the EU this is the GDPR. In the UK it is the UK GDPR together with the Data Protection Act 2018. It applies whenever the information collected counts as personal data. Cookie identifiers, advertising IDs and the browsing data tied to them usually do.
The two layers do different jobs:
| Question | Governing rule |
|---|---|
| May we place or read a cookie or pixel on this device? | ePrivacy Article 5(3) or PECR regulation 6 |
| What counts as valid consent? | GDPR or UK GDPR definition of consent |
| May we process the personal data we collect, and on what basis? | GDPR or UK GDPR |
| Who enforces the rules? | National regulators |
How the layers connect
Article 5(3) is the specific rule for device access, so it comes first. You must have consent, or an exemption, before the cookie is set. This applies whether or not the data is personal.
The ePrivacy rules do not define consent themselves. They borrow the definition from data protection law. Consent must be freely given, specific, informed and unambiguous, and it must be shown by a clear affirmative action. The cookie consent you collect therefore has to meet the GDPR standard.
The GDPR then governs what happens next. If a marketing cookie feeds personal data into an advertising profile, you also need a lawful basis for that processing, plus transparency, retention limits and respect for individual rights. For marketing tracking, regulators generally expect that basis to be consent.
EU and UK in outline
The EU rule is a directive, so each member state writes its own national law. France, Germany and Ireland, for example, each have their own implementing provisions and their own regulator. The wording and the enforcement style differ between them.
The UK keeps its own copies after Brexit. PECR implements the ePrivacy rules, and the UK GDPR is the retained version of the GDPR. The ICO enforces both. The UK has also started to amend the details. The Data (Use and Access) Act 2025 changes PECR, including added exemptions and higher penalties. Check which provisions are in force when you audit a site.
A UK business whose site targets EU visitors can fall under EU rules as well. Likewise, an EU business serving UK visitors must follow PECR.
The EU's proposed ePrivacy Regulation, which was meant to replace the directive, never passed. The Commission announced its withdrawal in 2025. The directive and its national laws remain the rules that apply.
Common errors
- Treating the cookie banner as only a GDPR issue. Without consent or an exemption, setting the cookie is already unlawful.
- Assuming that non-personal cookie data needs no consent. Article 5(3) applies regardless.
- Applying one country's rules to every EU visitor without checking national implementation.
Exercise
A UK retailer's site sets an advertising cookie on page load for all visitors. It stores only a random ID, which the retailer says is not personal data. Which rule is the first problem, and does the "not personal data" argument help?
Show answer
The first problem is PECR regulation 6, which requires consent before storing or reading information on a device. The argument does not help, because that rule applies whether or not the data is personal. If the ID is later linked to a profile, UK GDPR applies as well.