Publications / Law and cookies
GDPR and cookies – how these laws differ and when they apply
Consent to cookies is required by the ePrivacy Directive, not by the GDPR itself. The GDPR comes in when cookies are used to process personal data. How these laws complement each other and what this means for a website owner.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
“GDPR and cookies” is one of the most common questions from website owners. The short answer: the obligation to ask for consent to cookies comes from the ePrivacy Directive (as implemented in the national law of each Member State), while the GDPR sets how that consent must look and governs what happens next to personal data. The two laws work together, but each answers a different question.
ePrivacy Directive: when consent is needed
Article 5(3) of Directive 2002/58/EC requires the user's consent for storing information on their device and for accessing information already stored there. The only case where consent is not needed is when the storage or access is strictly necessary to transmit a communication or to provide a service explicitly requested by the user (e.g. a cart, a login).
Important: this provision covers any information on the device – not only personal data. That is why a cookie without personal data also requires consent if it is not strictly necessary. Each Member State has transposed the directive into its own law, e.g. Germany in § 25 TDDDG and France in Article 82 of the Informatique et Libertés Act.
GDPR: what consent must look like and what happens to the data
The GDPR comes into play in two ways:
- Definition of consent. The ePrivacy Directive refers to the definition of consent in data protection law, which today means the GDPR (Article 94(2) GDPR). Consent to cookies must therefore meet the requirements of Article 4(11) and Article 7 GDPR: freely given, specific, informed, unambiguous, and possible to withdraw as easily as it was given.
- Further processing of data. Where cookies are used to process personal data – e.g. analytics assigns the visitor an identifier and advertising builds a profile – the whole GDPR applies: the legal basis (Article 6), the duty to inform (Article 13), the rules on transfers of data outside the European Economic Area (Chapter V) and the rights of data subjects.
An identifier stored in a cookie is often personal data: GDPR Recital 30 names online identifiers, including cookie identifiers, as information that can make it possible to identify a person.
Comparison at a glance
| ePrivacy (national implementing laws) | GDPR | |
|---|---|---|
| What it covers | storing and reading information on the user's device | processing of personal data |
| When it applies | always for cookies and similar technologies | when cookies are used to process personal data |
| What it requires | consent before storing/reading, except strictly necessary ones; clear information | valid consent (or another basis for further processing), information, data protection, rights of individuals |
| Example | a _ga cookie set before the banner is clicked | sending analytics data to a provider outside the EEA without informing visitors |
What this means for a website
- Run cookies and scripts that are not strictly necessary only after consent – this is an ePrivacy requirement.
- Consent must meet the GDPR standard: no pre-ticked boxes, refusal just as easy, and the option to withdraw.
- Keep proof of consent – Article 7(1) GDPR requires the controller to be able to demonstrate that consent was given.
- In the privacy policy, describe the services, purposes, storage periods and transfers of data outside the EEA (Article 13 GDPR).
How consetgo helps
The consetgo module blocks scripts on the server until consent is given (ePrivacy), collects consent by category with an equal reject button, stores proof of consent in a log on your website's server (Article 7(1) GDPR) and generates a table of services for the privacy policy. The website owner is responsible for the content of the policy and for assigning services to categories.
More about the law: GDPR, ePrivacy Directive and national laws. What the banner itself should look like: “Accept all” and “Reject all”. This article describes EU law; it is not legal advice.
Questions and answers
Does the GDPR require a cookie banner?
It is required directly by the ePrivacy Directive (as implemented in the national law of each Member State): storing and reading information on the user's device requires consent, except where it is strictly necessary. The GDPR sets how that consent must look and governs the further processing of personal data.
Is an identifier in a cookie personal data?
It can be. GDPR Recital 30 names online identifiers, such as cookie identifiers, as data that can make it possible to identify a person – especially when combined with other information.
Is consent needed if a cookie contains no personal data?
Yes. Article 5(3) of the ePrivacy Directive covers any information stored on or read from the device, whether or not it is personal data. The exception is strictly necessary cookies.
This is general information, not legal advice.