Compliance

GDPR Cookies: Guide to Valid Consent Banners

GDPR cookies compliance and consent banner requirements. Cookie categories, what constitutes valid consent, and the 7 most common mistakes to avoid.

2 April 20267 min readWarDek Team

GDPR Cookies Compliance: The Complete Guide to Valid Consent Banners

Cookie consent has become one of the most visible — and most poorly implemented — aspects of GDPR compliance. Every year, national supervisory authorities across the EU issue decisions against organizations whose consent mechanisms fail to meet the legal standard. The fines are real, the reputational damage is real, and the irony is that valid consent banners are not technically complex to implement. They just require understanding what the law actually requires.

This guide covers cookie categories, the legal standard for valid consent, and the implementation mistakes that most commonly attract supervisory attention.

The Legal Framework: Two Regulations, One Standard

Cookie compliance sits at the intersection of two instruments:

Article 5(3) of the ePrivacy Directive (2002/58/EC) requires consent before placing or accessing non-essential cookies on a user's device. The ePrivacy Directive has direct effect in most Member States and applies independently of GDPR.

GDPR (Regulation 2016/679) defines what valid consent means. Article 7 and Recital 32 establish the consent standard that Article 5(3) ePrivacy must meet.

The EDPB's Guidelines 05/2020 on consent, and subsequent national guidance from the French CNIL, German DSK, Dutch AP, and others, have fleshed out what this means in practice for cookie banners specifically.

The practical takeaway: your cookie banner is a GDPR consent interface. It must meet GDPR consent standards, not some softer "notice and choice" standard.

Cookie Categories: What Requires Consent and What Does Not

Understanding which cookies need consent determines how your banner must be structured.

Strictly Necessary Cookies (No Consent Required)

Strictly necessary cookies are those without which the website cannot function as requested by the user. Supervisory authority guidance consistently identifies:

The EDPB has emphasized that "strictly necessary" means technically necessary for a function the user has actively requested — not convenient for the organization, and not necessary for analytics or advertising.

Functional / Preference Cookies (Context-Dependent)

Cookies that remember user preferences (language, currency, accessibility settings) exist in a grey area. Some national authorities accept legitimate interest as a basis; others require consent. The safest approach is to obtain consent but allow users to opt into these without simultaneously accepting analytics or marketing cookies.

Analytics and Performance Cookies (Consent Required)

This is the most significant category for most websites. Analytics cookies — including Google Analytics 4, Adobe Analytics, Matomo in cloud mode, and similar tools — require consent under EDPB guidance.

The "IP anonymization" argument, which some organizations used to justify analytics without consent under NIS/UA-era guidance, has been explicitly rejected by several national authorities (Austria, France, Italy) as insufficient to remove the consent requirement when data is transferred to a third-country processor.

Exception: Purely audience-measurement cookies operated directly by the website owner, with no cross-site tracking and no data sharing with third parties, may be exempt from consent under some national frameworks (France's CNIL has a specific exemption; most others have not). This exception is narrow and technical — it does not apply to Google Analytics or any standard third-party analytics platform.

Marketing and Advertising Cookies (Consent Required)

All cookies used for targeted advertising, behavioral profiling, retargeting, or cross-site tracking require explicit consent. This includes:

There is no legitimate interest basis for advertising cookies. The EDPB Guidelines 02/2019 on Article 6(1)(f) explicitly state that the processing of personal data for behavioral advertising cannot rely on legitimate interest.

Social Media Embeds (Consent Required)

Embedding a YouTube video, Twitter feed, or social sharing button on your page causes the user's IP address and browser fingerprint to be transmitted to the social platform. This transmission occurs whether or not the user clicks on the embed. Consent is required before loading these embeds.

Practical solutions include "privacy-enhanced" embed modes (YouTube's nocookie.com domain), click-to-activate embeds (showing a placeholder until the user explicitly activates the embed), or server-side rendering that anonymizes the data.


What Valid Consent Looks Like

GDPR Article 7, Recital 32, and EDPB guidance establish five conditions that cookie consent must meet:

1. Freely Given

Consent is not freely given if:

Pre-ticked checkboxes are explicitly prohibited by Recital 32: "silence, pre-ticked boxes or inactivity should not therefore constitute consent."

2. Specific

Consent must be granular. A single "accept all" option without the ability to consent to specific categories fails the specificity requirement when distinct purposes are pursued.

Your consent interface must allow users to:

3. Informed

Users must understand what they are consenting to before they consent. This means:

The EDPB has stated that consent notices that use vague language like "improve your experience" without specifying what data is collected and how it is used fail the informed standard.

4. Unambiguous

An affirmative act is required. The EDPB has repeatedly confirmed that:

Your "Accept" button must be an active choice, and the user must make it.

5. Withdrawable (as easily as given)

If your banner has a one-click "Accept All" button, withdrawing consent must be equally simple — not buried four menus deep in a settings panel. Most implementations achieve this by placing a "Manage Preferences" or "Privacy Settings" link in the footer, which must open the consent interface at the same level of ease as the original banner.


The 7 Most Common Consent Banner Mistakes

Mistake 1: "Reject All" Is Hidden or Missing

Several supervisory authority decisions (French CNIL 2022, Italian Garante 2023) have specifically cited banners where "Accept All" is a prominent button but "Reject All" requires navigating to a secondary panel. The two options must be presented at the same visual and UX level.

Mistake 2: Cookies Load Before Consent Is Given

This is the most technically serious violation. Audits consistently find analytics and marketing cookies loading on page load — before the user has interacted with the consent banner at all. The consent mechanism must block third-party scripts from executing until consent is obtained.

Mistake 3: Consent Records Are Not Maintained

Article 7(1) GDPR states: "where processing is based on consent, the controller shall be able to demonstrate that the data subject has consented." This means your consent mechanism must record:

Without this audit trail, you cannot demonstrate compliance if challenged.

Mistake 4: Consent Is Assumed to Be Permanent

Consent is not indefinitely valid. EDPB guidance suggests consent should be renewed periodically (13 months is a commonly implemented interval). Additionally, if you materially change your data practices or add new third-party processors, previously obtained consent may no longer be valid for the new purposes.

Mistake 5: Legitimate Interest Is Applied to Advertising

As noted above, advertising cookies cannot rely on legitimate interest. Some implementations attempt to claim legitimate interest for marketing pixels. This is incorrect and any competent supervisory authority examination will flag it.

Mistake 6: The Consent Banner Is Not Shown to Users in EEA Countries

Some organizations disable their consent banner for users outside the EU to improve conversion rates, but fail to implement accurate geolocation — meaning EEA users sometimes see the unconstrained version. This creates direct GDPR liability.

Mistake 7: Consent Mechanism Does Not Apply to Existing Users

When implementing a consent mechanism for the first time, or when materially updating your cookie practices, existing users who previously had unconstrained cookies must also be shown the updated consent interface.


Implementing Compliant Cookie Consent: Technical Checklist

WarDek's security scanning covers HTTP security headers, including those related to content security policy — the technical mechanism that controls which third-party scripts can execute on your site. Proper CSP implementation is the technical foundation of a compliant cookie consent architecture.


This guide reflects GDPR Regulation (EU) 2016/679, ePrivacy Directive 2002/58/EC, and EDPB Guidelines 05/2020 on consent. National supervisory authority decisions referenced are publicly available. Not legal advice — consult qualified legal counsel for implementation guidance specific to your situation and jurisdiction.

#GDPR#cookies#consent#cookie banner#ePrivacy

Scan your site for free

WarDek detects the vulnerabilities mentioned in this article in seconds.

Back to Compliance