Sub topic 6
Designing a compliant banner and preference centre
This chapter assumes you know how consent works under the GDPR and UK GDPR (freely given, specific, informed, unambiguous). It also assumes you know which marketing technologies need consent. Here you turn those rules into interface decisions.
Two layers, one purpose
Most compliant designs have two layers:
- First layer (banner): a short message with the main choices.
- Second layer (preference centre): per-purpose controls, vendor detail and the policy link.
The banner is where most visitors decide, so it carries most of the legal risk. Regulators such as the CNIL in France and the UK ICO have both acted against banners that make refusing harder than accepting.
First-layer requirements
| Requirement | What to do |
|---|---|
| Equal prominence | Put "Accept all" and "Reject all" on the same layer, with the same size, colour weight and wording style. |
| No pre-ticked boxes | Every non-essential purpose starts off. The GDPR requires an active opt-in, and the Planet49 ruling (CJEU, 2019) confirmed this for cookies. |
| Plain language | Say what the cookies do, for example "show you adverts on other sites". Avoid "to improve your experience". |
| Named purposes | List marketing, analytics and similar purposes separately. Don't bundle them into one switch. |
| Policy link | Link to the cookie policy without making it a way to dismiss the banner. |
Scrolling, continuing to browse, or closing the banner is not consent. If the visitor ignores the banner, treat that as a refusal and load nothing non-essential.
The preference centre
Give each purpose its own toggle, off by default. Show "Strictly necessary" as always on, with no toggle, because it is exempt from consent. Mark it as necessary only if it really is. A marketing cookie filed under "necessary" is one of the most common audit findings.
For each purpose, explain what it does and list the vendors involved, so the visitor can make an informed choice. Where you share data with many vendors, a second tier with per-vendor controls is common.
// Preference centre state: everything optional starts off.
const preferences = {
necessary: true, // exempt, not user-controllable
analytics: false,
marketing: false,
};
function saveChoices(formValues) {
// Only an explicit true counts as consent.
preferences.analytics = formValues.analytics === true;
preferences.marketing = formValues.marketing === true;
return { ...preferences };
}
function rejectAll() {
return saveChoices({ analytics: false, marketing: false });
}
console.log(rejectAll()); // { necessary: true, analytics: false, marketing: false }Patterns to avoid
- Colour and size tricks: a bright "Accept" button next to a grey text link for "Reject".
- Extra clicks for refusal: one click to accept, three clicks through menus to refuse.
- Nagging: re-showing the banner on every page after a refusal.
- Confusing wording: double negatives such as "Don't not track me", or toggles whose on and off states are unclear.
- Cookie walls: blocking all content unless the visitor accepts marketing cookies. EU regulators generally treat this as consent that is not freely given. Check current national guidance before you rely on any exception.
Make withdrawal easy
Withdrawing consent must be as easy as giving it. Add a persistent control, such as a "Cookie settings" link in the footer, that reopens the preference centre with the visitor's current choices shown. Later chapters cover withdrawal and records in detail. For now, design the preference centre so it can be reopened at any time.
Exercise
A banner shows a large green "Accept all" button and a small grey link labelled "More options". Rejecting requires opening "More options", switching off three toggles and clicking "Save". Name two problems and one fix.
Show answer
The problems are that refusal is harder than acceptance (more clicks) and that the two choices are not equally prominent. The fix is to add a "Reject all" button on the first layer, styled the same as "Accept all". Pre-ticked toggles in the preference centre would be a further problem if present.
Exercise
A visitor closes the banner with the X and carries on browsing. May the site load its marketing pixel?
Show answer
No. Closing the banner or continuing to browse is not an active, unambiguous opt-in. Treat it as no consent and load only strictly necessary technologies.