The legal basis
Why You Need a Consent Banner
The requirement for a cookie consent banner stems from two interlocking pieces of European legislation: the ePrivacy Directive (Directive 2002/58/EC, as amended by Directive 2009/136/EC) and the General Data Protection Regulation (Regulation 2016/679). The ePrivacy Directive — often called the “Cookie Law” — establishes the foundational rule: storing or accessing information on a user’s device requires informed consent, unless that storage is strictly necessary for a service the user explicitly requested. The GDPR then defines what valid consent looks like and imposes the enforcement framework that gives the rule teeth.
Together, these regulations mean that any website setting non-essential cookies — analytics, advertising, social media embeds, session recordings, A/B testing, retargeting pixels — must obtain informed, unambiguous, freely given consent from the user before those cookies are placed. A consent banner is the standard mechanism for collecting that consent. It is how you present the choice, explain what you are asking for, and record the user’s decision.
Without a compliant consent banner, your website is almost certainly violating the law. The scale of non-compliance is enormous — studies consistently find that over 90% of websites either have no consent mechanism at all, or have one that fails to meet the legal requirements. But regulators are no longer turning a blind eye. The French CNIL fined Google €150 million and Facebook €60 million specifically for making cookie rejection harder than cookie acceptance. The Italian Garante has issued guidelines requiring “reject all” buttons to be as prominent as “accept all.” The Austrian DSB triggered the landmark Schrems ruling on Google Analytics by acting on a single individual’s complaint about cookie consent. Enforcement is increasing, complaints are easy to file, and automated scanning tools make violations trivially detectable.
The bottom line is simple: if your website uses any non-essential cookies or tracking technologies, you need a consent banner. Not a notification banner, not an informational popup, not a “we use cookies” acknowledgment — a genuine consent mechanism that gives users a real choice and respects that choice technically by blocking scripts until consent is given.