Sub topic 5
What counts as valid consent
This chapter assumes you know how cookies and marketing pixels work and what personal data means under the GDPR. It also assumes you have met the idea that storing or reading information on a visitor's device needs consent unless an exemption applies. Earlier chapters cover which technologies are in scope and which are exempt. This chapter covers what the consent has to look like once you need it.
Where the standard comes from
The ePrivacy Directive (in the UK, regulation 6 of PECR) requires consent before non-exempt cookies and similar technologies are used. It does not define consent itself. It borrows the definition from data protection law: Article 4(11) of the GDPR in the EU, and the UK GDPR equivalent in the UK. So a banner is judged against the data protection standard even when no personal data question is raised on its own.
Article 4(11) says consent is a "freely given, specific, informed and unambiguous indication of the data subject's wishes", given by a statement or a clear affirmative action. Article 7 adds rules on proof, on separating consent from other matters, and on withdrawal.
Two consequences follow:
- Legitimate interests cannot replace consent for non-exempt cookies. The ePrivacy rule applies first. If it requires consent, you need consent.
- Consent is a yes-or-no state that must be able to change. A visitor who consents can later withdraw, and a visitor who refuses must not be pushed into agreeing.
The five tests
Each test below can fail on its own. A banner is valid only if it passes all of them.
| Test | Question to ask | Typical failure |
|---|---|---|
| Freely given | Does the visitor have a real choice, without penalty? | Access to the site depends on accepting; consent bundled into terms |
| Specific | Is the consent tied to a defined purpose? | One "Accept all" covering analytics, advertising and profiling together |
| Informed | Did the visitor know who, what and why before choosing? | Vague text such as "to improve your experience", no vendor names |
| Unambiguous | Is the choice clearly shown? | Continued scrolling or silence treated as agreement |
| Clear affirmative action | Did the visitor actively do something? | Pre-ticked boxes, default-on toggles |
Clear affirmative action
The visitor must do something that shows agreement, such as clicking "Accept" or switching a toggle on. Silence, inactivity and pre-ticked boxes do not count. The Court of Justice of the EU confirmed this in Planet49 (C-673/17, 2019). It held that a pre-ticked checkbox does not produce valid consent, and that this applies whether or not the cookies involve personal data.
Common patterns that fail:
- A banner that says "By continuing to browse you agree to cookies". Scrolling, clicking a link or closing the banner is not an affirmative choice. The EDPB's Guidelines 05/2020 say so directly.
- A preference centre where the marketing toggle is already on.
- A banner that disappears after a few seconds and treats that as agreement.
Marketing cookies are only loaded after the affirmative action. The default state is "not consented":
const consent = { necessary: true, analytics: false, marketing: false };
function applyChoices(choices) {
// Only an explicit true counts. Missing, null or "yes" strings do not.
consent.analytics = choices.analytics === true;
consent.marketing = choices.marketing === true;
}
function mayLoad(category) {
return consent[category] === true;
}
console.log(mayLoad('marketing')); // false until the visitor opts in
applyChoices({ marketing: true });
console.log(mayLoad('marketing')); // trueThe strict === true comparison guards against a bug where a stray truthy value, such as the string "false", would count as consent.
Freely given
Consent is not free if the visitor has no genuine choice or faces a penalty for refusing. Recital 42 of the GDPR points to this, and Article 7(4) tells you to take account of whether a service is made conditional on consent that is not necessary for it.
Practical points:
- Refusing must be as easy as accepting. Regulators have treated a prominent "Accept all" button next to a hidden or multi-step refusal path as a failure. The French regulator CNIL fined Google and Facebook in 2022 partly for this: accepting took one click, refusing took several.
- Do not bundle. Agreeing to the terms of service and agreeing to advertising cookies are separate choices.
- Cookie walls need care. A cookie wall blocks access unless the visitor accepts. The EDPB has said that access to a service cannot be made conditional on accepting cookies, with narrow exceptions at most. UK guidance from the ICO is more open to some forms of conditional access, but says consent must still be genuinely free. Treat a hard wall on marketing cookies as high risk in both regimes.
- Power imbalance and incentives. Offering a discount for accepting is a grey area. If the "price" of refusal is high, the choice may not be free.
Specific
Consent has to match a purpose. Article 6 and recital 32 say that where there are several purposes, consent should be given for each. In practice this means a preference centre that separates categories:
- strictly necessary (no consent needed, shown for information)
- analytics or measurement, where it is not exempt
- marketing and advertising
- personalisation or social media features, if you use them
A single master "Accept all" button can exist as a convenience, but the visitor must also be able to choose per category. A category must not hide a different purpose. If a "marketing" toggle also enables data sharing with a broker for resale, that is a separate purpose that needs its own explanation and choice.
Informed
The visitor must understand what they are agreeing to before they click. The EDPB's guidance lists the minimum information:
- the identity of the controller (and any joint controllers)
- the purpose of each processing operation
- what data will be collected and used
- the existence of the right to withdraw consent
- where relevant, use of the data for automated decisions or transfers outside the UK or EEA
For cookies specifically, Planet49 adds that the visitor should be told how long cookies will last and whether third parties can access them. In practice, name the vendors, or provide a link on the first layer to a list that names them. Phrases like "partners" or "trusted third parties" without a list fall short.
The wording also has to be understandable. Plain language, no legal jargon, and the same language as the rest of the page.
Unambiguous and the burden of proof
Unambiguous means there is no reasonable doubt about what the visitor chose. This links to proof. Under Article 7(1) the controller must be able to demonstrate that consent was given. In Orange Romania (C-61/19, 2020) the court held that a pre-filled form and unclear wording did not meet that burden. Your system needs a record of each choice, with the banner and policy versions the visitor saw. A later chapter covers record design. For now, remember that a banner that cannot be evidenced is a banner that may not count.
Withdrawal and the symmetry rule
Article 7(3) requires that withdrawing consent is as easy as giving it. If the visitor accepted with one click on the banner, they should be able to withdraw with a similar single action. The usual solution is a persistent link or icon, such as "Cookie settings" in the footer, that reopens the preference centre. When consent is withdrawn, tags must stop firing and any non-exempt cookies already set should be removed where you can.
Special cases to watch
- Children. Where a service is aimed at children, the information must be understandable to them, and the age threshold for giving consent alone varies by country. The UK sets it at 13 for online services offered directly to children. Check the rules for each country you target.
- Consent from the wrong person. On shared devices, a banner records the choice of the device's browser, not necessarily of each user. Treat consent as a property of the browser profile and be careful about linking it to a logged-in identity.
- Dark patterns. Colour tricks, confusing double negatives, or a reject link styled as plain text can each invalidate consent. Regulators judge the overall effect on an average visitor.
- Reliance on browser settings. In the EU and UK, a browser default does not on its own show consent to marketing cookies. Do not assume a browser's "accept cookies" setting is a valid choice.
A quick validity check you can run on any banner
- Load the page in a fresh private window with no prior choice stored.
- Check that no marketing cookie or request to an advertising domain appears before you click anything.
- Find the refusal option. Count the clicks needed to reject, then count the clicks to accept. They should match.
- Open the preference centre. Confirm that every optional category is off by default.
- Read the first-layer text. Can you tell who is collecting the data and for what?
- After accepting, find the route to withdraw. Check that it is available on every page.
Exercise
A site's banner shows a large green "Accept all" button and a small grey text link "More options". The marketing toggle inside "More options" is switched on by default. A visitor who closes the banner with the X is treated as having accepted. Name three of the five validity tests the design fails and say why.
Show answer
It fails "clear affirmative action", because the default-on marketing toggle and treating a close as acceptance are not active choices (Planet49). It fails "freely given", because refusing takes more effort than accepting and the visual weighting steers the visitor. It fails "unambiguous", because closing the banner does not show what the visitor wants. A fourth failure is possible if the text names no vendors or purposes: it would not be "informed".
Exercise
Why does the strict check choices.marketing === true in the code example matter, compared with if (choices.marketing)?
Show answer
A loose truthiness check would treat any non-empty value, such as the string "false" or an object, as consent. Valid consent needs a clear affirmative signal, so only an explicit boolean true should switch marketing on. Everything else, including missing values, must count as no consent.