Consent management
Asking for and respecting users' choices about their data.
Consent covers cookies, tracking, marketing emails and data use. It has to be freely given and easy to withdraw. Choosing privacy-friendly analytics can remove the need for many consent banners.
Why it matters for a product engineer
Consent is valid only when it is freely given, informed, specific and clear, and people must be able to withdraw it. A product engineer builds the banner, the settings page and the code that decides whether a tracking script runs. If the script runs before the choice, or the “no” is hidden, the consent does not count. Good design here is also a product choice: tools that do not need consent, such as privacy-friendly analytics, remove many banners.
How to do it
- List every cookie, script and data use, and mark which ones need consent.
- Load nothing that needs consent until the person says yes.
- Make “refuse” as easy as “accept”: same level, same number of clicks.
- Store each choice with a date and version, and respect it on every page and device you can.
- Let people change their mind from a link that is always visible.
Common mistakes
- An “Accept all” button next to a “Settings” link, with the refusal hidden inside.
- Pre-ticked boxes or “by continuing you agree” text.
- Analytics or ad tags that load before the banner answers.
- Asking for consent when a contract or another legal basis is the right one.
Example
On 31 December 2021, the French data protection authority, the CNIL, fined Google 150 million euros and Facebook 60 million euros. On google.fr, youtube.com and facebook.com, one click accepted all cookies, but refusing took several. On Facebook, the last step to refuse was a button labelled “Accept cookies”. The CNIL said this pushed people toward consent. It gave both companies three months to make refusal as easy as acceptance, or pay 100,000 euros for each day of delay.
Accepting and refusing cookies on the sites the CNIL fined
| Accept | Refuse | |
|---|---|---|
| Clicks needed | One | Several |
| Where | On the first screen | Behind more options |
| Last button (Facebook) | Accept cookies | Also "Accept cookies" |
The choice existed, but one answer was much easier than the other. For the CNIL, that meant the consent was not free.
ReportedCNIL decisions of 31 December 2021, as reported by Hunton and TechCrunch
Sources: CNIL fines Big Tech companies 210 million euros for cookie violations (Hunton) ↗ · France spanks Google $170M, Facebook $68M over cookie consent breaches (TechCrunch) ↗ · Data protection basics (EDPB guide for small business) ↗
Resources
1- docsStart here
Data protection basics (guide for small business) ↗
European Data Protection Board · 7 minA short guide written for small companies, including when you need consent and when you do not.
Tools
1- ToolOpen source
Plausible Analytics
Lightweight, cookieless website analytics, open source and self-hostable.