When you need it
| Cookie or tool | Consent needed in the EU? |
|---|---|
| Login session, shopping cart, language choice | No, strictly necessary |
| Google Analytics, Meta Pixel, ad tags | Yes |
| Embedded YouTube, maps, chat widgets that set cookies | Usually yes |
| Cookieless analytics that stores nothing and identifies no one | Generally no |
The rule comes from the ePrivacy Directive (“cookie law”), with GDPR deciding what valid consent looks like.
What valid consent looks like
- Asked before the cookies are set, not after.
- “Reject all” as visible as “Accept all”.
- No pre-ticked boxes.
- As easy to withdraw as to give.
What a banner costs
Banners interrupt every first visit, and in Europe often a third or more of visitors decline, so cookie-based analytics loses them. Work out your own cost with the cookie banner calculator, and read do you need a cookie banner for analytics?.