Sub topic 2
What Counts as a Cookie or Similar Technology
This chapter assumes you know how HTTP cookies work (the Set-Cookie header, document.cookie, first-party versus third-party) and that you have met common marketing tools such as analytics libraries, advertising pixels and tag managers. It also assumes a general awareness of the GDPR and personal data. The previous chapter covered which laws apply. This chapter covers what those laws regulate on the visitor's device.
The rule is about the device, not about cookies
The EU ePrivacy Directive (2002/58/EC, Article 5(3)) and the UK Privacy and Electronic Communications Regulations (PECR, Regulation 6) do not mention the word "cookie" in their operative text. They regulate two acts:
- Storing information in the terminal equipment of a subscriber or user.
- Gaining access to information already stored in that equipment.
Terminal equipment means the visitor's phone, laptop, tablet, smart TV, games console, connected car, or any other device that connects to a network. The rule applies whether or not the information is personal data. This is a key difference from the GDPR. A random identifier that you never link to a name can still trigger the consent rule, because the trigger is the act of touching the device.
The practical result is that "cookie banner" is shorthand. The legal question for any technology is: does it store something on the device, or read something from it, in a way the visitor did not ask for?
Technologies that clearly fall within scope
Cookies are the most familiar case, but the rule covers any technique with the same effect.
| Technology | Stores on device? | Reads from device? | Typical marketing use |
|---|---|---|---|
| HTTP cookies (first-party) | Yes | Yes | Campaign attribution, retargeting audiences |
| Third-party cookies | Yes | Yes | Cross-site ad targeting, frequency capping |
| `localStorage` and `sessionStorage` | Yes | Yes | Storing visitor IDs, UTM parameters, A/B test buckets |
| IndexedDB | Yes | Yes | Persistent identifiers, offline caches of profile data |
| Tracking pixels (web beacons) | Usually no, but they read device data and often set cookies | Yes (IP address, user agent, referrer, cookies sent with the request) | Email open tracking, ad conversion tracking |
| Device fingerprinting | Not necessarily | Yes (canvas, fonts, screen size, plugins, audio stack) | Cross-site recognition without cookies |
| Mobile SDK identifiers (advertising ID, SDK-generated IDs) | Yes | Yes | App install attribution, in-app advertising |
| Tracking URL parameters with stored IDs | Sometimes | Sometimes | Click IDs such as `gclid` or `fbclid` written to a first-party cookie |
Local storage and similar browser storage
Moving an identifier from a cookie into localStorage does not avoid the rule. Both are storage on the device. The same is true of IndexedDB, the Cache API, service worker caches and ETags used as identifiers ("ETag respawning"). The format of the storage is irrelevant. The question is whether the purpose is exempt (see the next chapter) or needs consent.
// Both of these are "storing information" on the device.
// If the purpose is marketing, both need consent first.
document.cookie = 'visitor_id=abc123; Max-Age=31536000; Path=/; SameSite=Lax';
localStorage.setItem('visitor_id', 'abc123');Tracking pixels
A pixel is typically a 1x1 image or a script-loaded request to a third party. The image itself is not stored as an identifier. The scope question is subtler. When the browser requests the pixel, it sends cookies the third party previously set, and the request carries the IP address, user agent and referrer. The pixel often sets a cookie in the response too. Regulators treat pixels as within scope when they read information from the device or cause storage on it. The EDPB's Guidelines 2/2023 on the technical scope of Article 5(3) state that the rule applies to tracking links and pixels, including in emails.
Email is a good example. A pixel embedded in a marketing email, which tells you when and where the message was opened, accesses information on the recipient's device. It therefore needs consent in the same way as a website pixel, in addition to the rules for the email itself.
Fingerprinting
Fingerprinting combines attributes such as screen resolution, installed fonts, time zone, language settings and canvas rendering output to compute an identifier. Nothing is written to the device. It is still "gaining access to information stored in the terminal equipment", because the attributes are read from it. The EDPB's 2023 guidelines and the ICO both take the position that the rule applies. A site that drops cookies to avoid a banner and then fingerprints instead has not escaped the requirement.
Mobile and connected-device identifiers
The rules apply to apps and devices as well as websites. An advertising ID on a phone, an identifier generated by an SDK and stored in app storage, and an identifier read from a smart TV are all covered. When you assess a marketing technology, ask what it touches on the device, not what it is called.
What the EDPB guidelines add
The European Data Protection Board adopted Guidelines 2/2023 on the technical scope of Article 5(3). They set out four elements that together trigger the rule:
- Information: any data, personal or not.
- Terminal equipment of a subscriber or user: the device connected to a public communications network.
- Publicly available electronic communications service over public networks: the service context, which the guidelines interpret broadly so that ordinary websites and apps fall within it.
- Storage or access: an operation, carried out by the controller or by another party, that stores information on the device or reads it.
Two points from the guidelines matter for marketing teams.
- Access does not require the sender to write the data. If your script reads an identifier that was stored by someone else, such as a cookie from an ad network, that is access.
- The data does not need to leave the device in a visible form. Information that your code reads and sends to a server, or that a server instructs the device to send, counts as access. The guidelines note that a server asking a client to return specific information triggers the rule.
The guidelines are EU guidance. The UK is no longer bound by them, but the ICO's position on pixels, local storage and fingerprinting is closely aligned. Treat the EDPB document as persuasive in the UK, not binding.
The ICO's position on scope
The ICO's guidance on storage and access technologies lists cookies, tracking pixels, link decoration, device fingerprinting, and storage such as localStorage, as covered. It stresses that the PECR rule applies to the act of storing or accessing, and that it applies regardless of whether personal data is involved. It also says that technology neutrality is deliberate: the law was drafted to keep pace with new techniques.
A worked scope check
Consider a marketing team that adds the following to a landing page:
// Reads a click ID from the URL and stores it for later attribution.
const params = new URLSearchParams(window.location.search);
const clickId = params.get('gclid');
if (clickId) {
localStorage.setItem('ad_click_id', clickId);
}
// Later, on a thank-you page, reads it back and sends it to an ad platform.
const stored = localStorage.getItem('ad_click_id');
if (stored) {
navigator.sendBeacon(
'https://ads.example.com/conversion',
JSON.stringify({ clickId: stored })
);
}Apply the four elements:
- Is information stored or accessed? Yes.
setItemstores, andgetItemreads. - On the visitor's device? Yes.
localStorageis browser storage on the device. - Is it done by a technology other than a cookie? Yes, but the technology is irrelevant. The rule is neutral.
- Is the purpose exempt? Not on these facts. Advertising attribution is not needed to deliver a service the visitor requested.
Conclusion: the script needs consent before it runs. The only remaining question is whether an exemption applies, which is the subject of the next chapter.
Edge cases and common errors
- "We don't use cookies, so no banner is needed." Wrong when you use
localStorage, pixels, fingerprinting or SDK identifiers for non-exempt purposes. The trigger is device access. - "The data is anonymous." The ePrivacy rule applies whether or not the data is personal. Anonymity may matter for the GDPR analysis, but not for this one.
- "The cookie is first-party, so it is safe." First-party status does not create an exemption. A first-party cookie used for advertising attribution still needs consent. Whether a cookie is first- or third-party matters for responsibility and risk, not for scope.
- "The pixel only loads an image." The request carries information from the device and often triggers cookie exchange. Treat it as in scope.
- Server-side tagging. Moving tags from the browser to your server does not remove the rule if the browser still stores or sends device information to make it work, for example a first-party identifier cookie set by your server. The rule follows the device access, not the location of the vendor's code.
- Information the visitor sends voluntarily. A form field the visitor fills in and submits is not device access. The GDPR governs it instead.
- Purely server-side logs. An IP address that arrives with an ordinary request is part of normal communication. Whether reading further device characteristics from that request counts as access depends on what is read and how. The EDPB's view is broad, so document your reasoning where you rely on a narrow reading.
Inventory first
Scope decisions need an accurate inventory. For each technology, record:
- What it stores or reads, and where (cookie,
localStorage, IndexedDB, request header, device API). - Who sets or reads it (your domain or a vendor).
- Its purpose and lifetime.
- Whether the purpose might fit an exemption.
Open the browser developer tools, look at the Application tab for cookies, local storage and IndexedDB, and watch the Network tab for pixel requests before and after interacting with a banner. A scanner tool helps, but it misses behaviour behind logins or triggered by user actions, so treat scans as a first pass.
Exercise
A marketing team replaces its advertising cookie with a script that reads canvas rendering output, screen size and installed fonts, hashes them into an ID, and sends the hash to its ad platform. Nothing is written to the device. Does the consent rule for device access apply, and why?
Show answer
Yes. Article 5(3) of the ePrivacy Directive and PECR Regulation 6 cover gaining access to information stored in the device, not only storing information. Reading canvas output, screen size and fonts is access to device information, and it applies whether or not the result is personal data. Because the purpose is advertising, it is not strictly necessary for a service the visitor requested, so consent is needed before the script runs.
Exercise
A landing page loads a 1x1 image from an ad network's domain. The team says the pixel is "just an image" and sets no cookie of its own. Give two reasons a regulator could still treat it as within scope.
Show answer
First, the browser sends any cookies the ad network previously set on its domain with the request, so the pixel accesses stored information. Second, the request discloses device data such as the IP address, user agent and referrer, and the network's response can set a cookie or confirm an identifier. The EDPB's Guidelines 2/2023 treat tracking pixels as within the scope of Article 5(3).
Exercise
A site moves its visitor ID from a cookie to localStorage and concludes that no consent is needed because it no longer uses cookies. Is the conclusion correct?
Show answer
No. The rule applies to any storage on or access to the device, so localStorage is covered in the same way as a cookie. Consent is still needed unless the purpose falls within an exemption, and visitor-level advertising or analytics IDs generally do not.