Sub topic 2
What Counts as Valid Consent
Assume you understand basic cookies, marketing pixels, tag managers, and the general purpose of the GDPR. This chapter focuses on how consent must work in practice.
What counts as valid consent
Consent is valid only when it is:
- Freely given: the visitor can refuse without losing access to the service, except where access genuinely requires the technology.
- Specific: separate purposes, such as analytics and advertising, have separate choices.
- Informed: the visitor can understand who uses the technology, why, and which data it affects.
- Unambiguous: the visitor takes a clear affirmative action, such as selecting “Allow marketing”.
- Withdrawable: refusing or changing the choice is as easy as giving it.
A preselected checkbox, continued browsing, or a vague “Accept cookies” button does not prove valid consent for optional marketing technologies. The banner should offer a genuine choice between accepting and refusing optional categories. It should also link to fuller information without hiding the refusal option.
Designing a compliant banner and preference centre
A banner should identify the main purposes and provide controls at the same level of visibility. A preference centre lets visitors change individual categories later.
Use categories that match the actual technologies. “Marketing” might include advertising cookies, retargeting pixels, and identifiers shared with advertising platforms. Describe the vendors and purposes clearly enough for an informed decision.
A consent record should preserve the choice, time, banner and policy versions, purposes selected, and collection method. Do not store more information than needed to prove the choice.
Making sure tags wait for consent
Consent must control technical loading, not merely change a setting after a script has already run. Load optional scripts 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();
}
// The banner calls this function after the visitor saves choices.Audit tag-manager triggers, hard-coded scripts, third-party widgets, and server-side calls. A vendor’s own consent setting cannot fix a tag that fires before the consent signal.
Exercise
A banner has “Accept” and “Manage settings”, but no visible refusal option. Is the marketing consent clearly freely given?
Show answer
No. Refusing must be a genuine, comparably accessible choice.