Sub topic 1
Which laws apply and how they fit together
Several laws sit behind a cookie banner, and each answers a different question. This chapter maps them so that later chapters on exemptions, consent design and enforcement have somewhere to attach. It is general information, not legal advice. Check the current text and your regulator's guidance before you rely on any detail.
Prerequisites
This chapter assumes you already know three things:
- How a web cookie is set and sent back to a server, including the difference between first-party and third-party cookies.
- What marketing tools such as analytics, advertising pixels and tag managers do on a page.
- That the GDPR regulates personal data, and roughly what "controller" means.
You don't need legal training. Each statute is introduced as it appears.
The core idea: two questions, two layers
Cookie consent rules answer two separate questions:
- May you store information on, or read information from, the visitor's device? This is a device-access rule. It applies whether or not the information is personal data.
- May you process the personal data that results? This is a data protection rule. It needs a lawful basis, transparency and the other GDPR principles.
A marketing cookie nearly always triggers both. A single page load can involve a consent rule, a lawful-basis decision and a vendor contract at once.
The EU layer
The ePrivacy Directive
Directive 2002/58/EC, the ePrivacy Directive, covers privacy in electronic communications. Article 5(3) is the cookie rule. Directive 2009/136/EC amended it in 2009 to say that storing or gaining access to information on a user's terminal equipment is allowed only if the user has given consent, after being given clear and comprehensive information. Two exceptions exist: technical transmission of a communication, and what is strictly necessary to provide a service the user explicitly requested. Chapter 3 covers them in detail.
A directive is not directly applicable to businesses. Each member state must pass its own law, so the "cookie law" is really a set of national laws with a shared core:
| Member state | Where the rule sits (example) |
|---|---|
| France | Article 82 of the Loi Informatique et Libertés |
| Germany | Section 25 of the TDDDG (formerly TTDSG) |
| Ireland | Regulation 5 of S.I. 336 of 2011 |
| Netherlands | Article 11.7a of the Telecommunications Act |
The wording and the regulator's guidance differ between these laws. Test your approach against each market you target, not only against the Directive.
The GDPR
Regulation (EU) 2016/679 does not contain a cookie rule. It does three things that matter here:
- It defines consent in Article 4(11) as a freely given, specific, informed and unambiguous indication of the person's wishes, given by a statement or a clear affirmative action.
- Article 7 sets the conditions for consent, including that you can demonstrate it and that withdrawal must be as easy as giving it.
- It governs everything you do with personal data after the cookie is read, such as building profiles, sharing identifiers with ad networks and measuring conversions.
The ePrivacy Directive's definition of consent points to the data protection definition. Since 2018, "consent" under Article 5(3) therefore means GDPR consent.
How the two EU instruments relate
The European Data Protection Board (EDPB) explained the relationship in Opinion 5/2019. The ePrivacy Directive is the more specific law and governs the act of storing or accessing information on the device. The GDPR governs the later processing of personal data. Three consequences follow:
- Valid consent for the cookie does not by itself give you a lawful basis for all later processing. You still need to identify one, and for marketing profiling that is usually also consent.
- If the cookie rule needs consent and you don't have it, you cannot fix this by relying on "legitimate interests" under the GDPR for the same access.
- The GDPR "one-stop-shop" does not apply to the ePrivacy rule. A GDPR matter is led by one authority where you have your main EU establishment. Cookie rules are enforced by each member state's authority, so the same site can face action in several countries.
The CJEU confirmed in Planet49 (C-673/17, 2019) that a pre-ticked checkbox is not valid consent for cookies. It also held that the consent requirement applies whether or not the cookie data is personal data.
The UK layer
After Brexit the UK kept the same structure under its own statutes:
- PECR, the Privacy and Electronic Communications (EC Directive) Regulations 2003, is the UK's version of the ePrivacy Directive. Regulation 6 is the cookie rule. It requires clear and comprehensive information and consent, with exceptions parallel to the EU ones.
- UK GDPR and the Data Protection Act 2018 replace the EU GDPR for UK processing. The consent definition is the same in substance. PECR points to the UK GDPR meaning of consent.
- The Data (Use and Access) Act 2025 amends PECR. It introduces some further exemptions, for example for certain low-risk statistical and functionality uses, and brings PECR penalties in line with the UK GDPR's much higher maximums. Check which of these provisions are in force on the date you read this, and read the Information Commissioner's Office (ICO) guidance on what the new exemptions do and don't cover. Chapters 3 and 10 return to this.
The regulator is the ICO, which enforces both PECR and the UK GDPR from one office. That is a practical difference from the EU, where the two sets of rules can be handled by different bodies.
How the pieces fit
In practice you apply the layers in this order:
- Decide which regimes apply, based on where your visitors are and where you are established.
- Ask whether the technology stores or reads information on the device. If it does, the device-access rule applies.
- Check for an exemption. If none applies, you need consent.
- Check that the consent meets the GDPR or UK GDPR standard.
- Separately, confirm a lawful basis and transparency for the personal data processing that follows.
Which regime applies to your site
Jurisdiction is a common source of confusion. A rough working model:
- The device rule follows the visitor's device. National laws generally apply where the terminal equipment is, or where the service is targeted. A UK-based business serving visitors in France should expect French rules to matter.
- The GDPR follows its own territorial test. Article 3 applies it to organisations established in the EU, and to those outside it that offer goods or services to people in the EU or monitor their behaviour. Behavioural advertising tracking usually counts as monitoring.
- The UK GDPR follows the same pattern for the UK. A non-UK company targeting UK visitors can be caught by PECR and the UK GDPR.
So a site serving both the EU and the UK should usually meet the stricter of the two rule sets, or vary its behaviour by region. Chapter 10 compares the regimes in detail.
Unfinished business: the ePrivacy Regulation
In 2017 the Commission proposed a directly applicable ePrivacy Regulation to replace the Directive. It was never adopted, and the Commission signalled in 2025 that it would withdraw it. Separately, the Commission's "digital omnibus" proposals from late 2025 suggest moving some device-access rules into the GDPR and widening exemptions. These are proposals. Until a text is adopted and in force, the national laws implementing Article 5(3) remain the rules. Treat reports of upcoming change as a reason to monitor, not as a reason to relax.
Common errors
- Thinking "no personal data, no consent needed." The device-access rule applies regardless. An anonymous-looking identifier in a cookie still needs consent unless an exemption applies.
- Using legitimate interests for marketing cookies. Legitimate interests is a GDPR lawful basis. It does not replace consent under the device-access rule.
- Treating the UK as covered by EU compliance, or the reverse. The substance is similar, but the statutes, regulators, exemptions and penalty levels are separate.
- Reading only the GDPR. The GDPR has no cookie provision, so a GDPR-only review misses the rule that makes most banners necessary.
- Assuming one regulator. In the EU, cookie complaints go to national authorities, and fines in different countries are independent.
- Assuming the new UK exemptions cover marketing. They are narrow. Advertising and cross-site tracking remain outside them.
Summary
Two layers apply to a marketing cookie. The device-access rule is Article 5(3) of the ePrivacy Directive, implemented through national laws in the EU and PECR regulation 6 in the UK. The data protection rule is the GDPR in the EU and the UK GDPR in the UK. The GDPR layer also supplies the meaning of "consent" for the device-access rule. The next chapters take the device-access rule apart: what counts as a cookie or similar technology, then which uses are exempt.
Exercise
A UK-based retailer sells to customers in the UK and Ireland. Its site sets an advertising cookie containing a random ID with no name or email attached. A colleague says, "It isn't personal data and we have legitimate interests, so we don't need consent." Identify two errors in this reasoning and name the rules that apply to each market.
Show answer
First, the device-access rule applies whether or not the cookie data is personal data (confirmed for the EU in Planet49), so the absence of a name or email does not remove the need for consent. Second, legitimate interests is a GDPR or UK GDPR lawful basis for processing personal data. It cannot replace consent under the cookie rule, and unless an exemption applies, an advertising cookie needs consent. For UK visitors the rules are PECR regulation 6 and the UK GDPR consent standard, enforced by the ICO. For Irish visitors the rules are Regulation 5 of S.I. 336 of 2011, which implements the ePrivacy Directive, and the EU GDPR consent standard, enforced by the Irish authorities. The retailer should apply the stricter of the two sets of rules or vary its behaviour by region.
Exercise
Why can the same cookie banner lead to separate enforcement actions in several EU countries, even though the GDPR has a one-stop-shop mechanism?
Show answer
The one-stop-shop applies to GDPR cross-border processing, where a lead authority is chosen based on the main establishment. The cookie rule comes from the ePrivacy Directive as implemented in national law, and it is not covered by the one-stop-shop. Each member state's authority can therefore enforce its own national law for visitors in its territory.