Almost everyone refers to cookie consent requirements as "GDPR compliance." That's close enough for everyday conversation, but it's not quite accurate, and the inaccuracy occasionally causes real confusion about what's actually required and why. Two separate pieces of EU law govern this area, and they do different jobs.
The ePrivacy Directive: the actual source of "ask before you set a cookie"
The requirement to get consent before storing or accessing information on a visitor's device — a cookie, local storage, a device fingerprint, anything along those lines — comes from the ePrivacy Directive (sometimes called the "Cookie Law" informally), originally from 2002 and amended in 2009. This predates GDPR by nearly a decade. It's the law that specifically says: you need consent before setting a non-essential cookie, full stop, regardless of whether that cookie happens to collect personal data in the GDPR sense.
Critically, the ePrivacy Directive's consent requirement applies to the act of storing or accessing information on a device — it doesn't require that information to be "personal data" to trigger the consent requirement. A purely anonymous analytics cookie that stores no identifiable information can still require consent under ePrivacy, purely because it's accessing the visitor's device.
GDPR: what governs the data itself, once collected
GDPR, effective 2018, governs the processing of personal data generally — not specifically cookies. Where it intersects with cookie consent: if the data a cookie collects (an IP address, a device identifier, browsing behavior tied to an identifiable person) counts as personal data, GDPR's rules on lawful basis, consent standards, data subject rights, and breach notification all apply to it. GDPR also sets the actual standard that consent has to meet — informed, specific, freely given, unambiguous, and as easy to withdraw as to give — which is the standard that cookie banners are built around.
Why the distinction matters practically
In practice, for almost all cookie and tracking scenarios, both laws apply simultaneously and point toward the same practical requirement: don't set non-essential cookies before getting proper consent, and make sure that consent meets GDPR's quality bar. You don't usually need to reason about which law technically governs which specific fact pattern.
Where it occasionally matters: enforcement and fine structures differ. GDPR has its own fine tiers (covered in our piece on GDPR cookie fines) enforced by national data protection authorities. The ePrivacy Directive, being a directive rather than a regulation, was implemented differently across EU member states into national law, with different enforcement mechanisms and penalty structures country by country — which is part of why some national regulators pursue cookie cases somewhat differently from others.
The upcoming ePrivacy Regulation
There's been a long-running effort to replace the ePrivacy Directive with an ePrivacy Regulation, which — like GDPR itself — would apply uniformly across all EU member states without needing individual national implementation. It's been in negotiation for years without final adoption as of this writing. Until it passes, the current ePrivacy Directive (as implemented into each country's national law) remains the operative law for the "ask before you set a cookie" requirement specifically.
What this means for your actual checklist
Functionally, nothing changes about what you need to do: don't fire non-essential trackers before consent, make reject genuinely equal to accept, meet GDPR's consent quality standard, and handle any personal data collected according to GDPR's broader rules. The two-law structure is useful background for understanding why the rules are shaped the way they are — particularly why even anonymous-seeming trackers need consent — but it doesn't change the practical compliance work.
Run a free scan to check your actual cookie behavior against this standard, regardless of which specific law you're citing.

