Sub topic 2
What counts as a cookie or similar technology
This chapter assumes you know how browsers store cookies and what a tracking pixel is. It also assumes you know the basic GDPR idea of personal data. It covers the scope of the consent rule: which techniques are caught. The exemptions and the consent standard come in later chapters.
The rule is about the device, not the cookie
The EU ePrivacy Directive (Article 5(3)) and the UK's PECR (regulation 6) do not mention the word "cookie". They apply to two actions:
- storing information on a user's terminal equipment (a phone, laptop, tablet, smart TV or connected device), and
- gaining access to information already stored there.
Because the wording is technology-neutral, any technique that does either of these is in scope. Whether the data is personal does not matter for this test. The GDPR or UK GDPR applies separately when the data is personal.
Technologies that are in scope
| Technology | Why it is caught |
|---|---|
| HTTP cookies (first-party or third-party) | Stores an identifier on the device |
| localStorage, sessionStorage, IndexedDB | Stores data in the browser |
| Tracking pixels and web beacons | A script or request that reads device information, or sets or reads an identifier |
| Device fingerprinting | Reads attributes such as screen size, fonts and browser settings from the device |
| Identifiers in URLs or link decoration | Stores or reads identifiers on the device, for example click IDs saved after landing |
| Mobile app SDKs and advertising IDs | Reads identifiers stored on a phone |
| Smart TV and IoT identifiers | Same rule for connected devices |
The EDPB (the body of EU regulators) took this broad reading in its 2023 guidelines on the technical scope of Article 5(3). The UK ICO takes the same view for PECR.
// All four lines store or read information on the visitor's device.
// Each one needs consent unless an exemption applies.
document.cookie = "ad_id=abc123; max-age=31536000; path=/";
localStorage.setItem("campaign_visitor", "abc123");
const width = window.screen.width; // fingerprinting input
const saved = localStorage.getItem("campaign_visitor");Switching from cookies to localStorage does not avoid the rule. Only the exemptions, covered in the next chapter, can do that.
Pixels and server-side tagging
A pixel is usually a tiny image or script request. The request alone may only send an IP address and headers. The rule applies when the pixel's code, or the page that loads it, reads information from the device or writes an identifier to it. Most marketing pixels do this. They read cookies, set their own and collect browser attributes.
Moving tags to a server does not remove the issue. If the browser still sets or reads an identifier, for example a first-party cookie written by your own server-side endpoint, the rule still applies. Regulators look at what happens on the device, not at where the vendor's code runs.
Common mistakes
- Treating "no cookies" as "no consent needed". Fingerprinting and local storage are caught.
- Assuming anonymised data is out of scope. The device-access rule applies even if the data is never linked to a person.
- Ignoring apps. The rule covers any terminal equipment, so SDKs in mobile and TV apps count.
- Forgetting first-party cookies. The rule makes no distinction between first-party and third-party cookies. Marketing purposes are what make consent necessary.
Exercise
Exercise
A marketing team replaces its advertising cookie with a unique ID written to localStorage, and says no consent is needed because "we no longer use cookies". Is that correct? Give the reason.
Show answer
No. Article 5(3) of the ePrivacy Directive and PECR regulation 6 cover storing or accessing any information on a user's device, whatever the technology. localStorage is device storage, so consent is still required unless an exemption applies. A marketing identifier does not fall under the strictly necessary exemption.