Sub topic 5
What counts as valid consent
This chapter assumes you know how cookies and marketing tags work and that you have a general idea of what personal data is. It covers the standard of consent that applies once you have decided a marketing technology needs consent. Both the EU ePrivacy Directive and the UK PECR take their definition of consent from the GDPR (EU) and the UK GDPR (UK).
The conditions in the definition
Consent must be:
- Freely given. The visitor has a real choice and can refuse without being penalised.
- Specific. It covers a clear purpose. "Marketing" is a purpose. "Whatever we decide later" is not.
- Informed. Before choosing, the visitor knows who you are, what each purpose is, and which third parties are involved.
- Unambiguous. It is a clear affirmative act, such as ticking a box or pressing a button.
Consent must also be easy to withdraw, and you must be able to show that you obtained it. Those two points are covered in later chapters.
What does not count
The common failures follow directly from the conditions above.
| Practice | Why it fails |
|---|---|
| Pre-ticked boxes | Not an affirmative act. The EU Court of Justice held this in the *Planet49* case (2019). |
| "By continuing to browse you agree" | Scrolling or browsing is not a clear affirmative act. |
| A banner with only "Accept" and "Manage" buttons | Refusing takes more effort than accepting, so the choice is not free. |
| One switch for "all cookies" | Not specific. Analytics and marketing need separate choices. |
| Blocking the whole site until the visitor accepts | Often not free. Regulators treat these "cookie walls" with suspicion. |
| Bundling consent with accepting terms | Consent must be separable from other agreements. |
Granularity in practice
Group tags by purpose and give each purpose its own choice. Strictly necessary cookies are exempt and need no switch. Analytics and marketing each get one that is off by default.
Describe each purpose in plain words. "We use advertising cookies to show you ads for our products on other sites" is informed. "To improve your experience" is not.
Name the third parties or link to a list of them. A visitor cannot be informed about a pixel they cannot identify.
Equal prominence of refusal
Regulators in both the EU and the UK expect a "reject" option at the same level as "accept". That means the same layer, similar size, similar colour contrast and the same number of clicks. French and other EU regulators have fined companies for hiding refusal behind extra steps. The UK ICO takes a similar view in its guidance. Neither framework sets exact pixel rules, so judge each design by asking whether it nudges the visitor toward accepting.
Consent in code
Valid consent is only useful if your site behaves according to it. This snippet loads the marketing script only after the visitor opts in:
const consent = { marketing: false };
function loadMarketingPixel() {
const script = document.createElement('script');
script.src = 'https://example.com/marketing-pixel.js';
script.async = true;
document.head.appendChild(script);
}
function onConsentChange(choices) {
consent.marketing = choices.marketing === true;
if (consent.marketing) {
loadMarketingPixel();
}
}
// Nothing marketing-related is loaded until the visitor opts in.
// onConsentChange is called by the banner when the visitor saves choices.Note the strict check choices.marketing === true. A missing or unclear value is treated as no consent, which matches the "unambiguous" condition. Later chapters cover enforcing this across a whole tag manager setup.
Common errors
- Treating "legitimate interests" as a substitute. For marketing cookies, the ePrivacy rules require consent, so legitimate interests cannot replace it.
- Setting cookies when the banner appears, then asking afterwards.
- Treating a closed banner or an ignored banner as acceptance.
- Using vague purposes such as "to enhance your experience".
- Hiding the list of third-party vendors.
Exercise
A site shows a banner with a bright green "Accept all" button and a small grey text link reading "More options". The marketing toggle inside is pre-ticked. Name two reasons this does not produce valid consent.
Show answer
The pre-ticked toggle is not an affirmative act (Planet49), and refusing takes more effort than accepting because rejection is hidden behind a low-prominence link, so the choice is not free. Marketing tags that fire on this basis lack valid consent.
Exercise
Why does the code above test choices.marketing === true rather than just checking that choices.marketing is truthy?
Show answer
Consent must be unambiguous. The strict check means only an explicit true value loads the marketing script. Strings, objects or other truthy values from a faulty banner do not count as consent.