Consent banner

On this page 7

A consent banner is the on-page notice that informs visitors about cookies and similar tracking technologies and asks for their choice before optional storage or tracking begins. In privacy and data protection practice, it is the visible front end of a consent management process: it presents the purposes of processing, offers accept, reject and customize controls, and records the answer so that scripts load only when the visitor has agreed.

The banner exists because laws such as the ePrivacy Directive and the GDPR require prior, informed and freely given consent for storing or reading information on a device when that access is not strictly necessary. A banner that merely announces the use of cookies, without a real choice, does not meet that standard in the European Union and in many other jurisdictions with comparable rules.

A consent banner works by blocking non-essential tags until a choice exists, then releasing them according to the stored decision. On the first visit the page loads only strictly necessary cookies and the banner itself; analytics, advertising and personalization scripts wait in a paused or inert state.

When the visitor clicks a button, the banner writes a consent record to the browser, usually a first-party cookie or local storage entry, and often sends a copy to a server log for proof of consent. Tag managers and the page code then read that record and fire only the tags whose purpose category was accepted. On later visits the banner stays hidden until the record expires, the policy changes or the visitor reopens the settings.

The following table shows the main components that sit behind a typical implementation and what each one does.

ComponentRoleTypical form
First layerShort notice with primary buttonsBar or modal with accept and reject
Second layerDetailed purposes and vendorsPanel with category toggles
Consent recordStores the visitor decisionFirst-party cookie or storage entry
Script blockingHolds tags until consentTag manager triggers or modified script types
Consent logProves when and how consent was givenServer-side record with timestamp and version
Withdrawal linkLets visitors change their mindFooter link or floating icon
Components of a consent banner setup

Under European privacy law, a compliant consent banner must collect consent that is freely given, specific, informed and unambiguous, and withdrawal must be as easy as giving consent. Regulators and courts have translated those principles into concrete design rules.

Pre-ticked boxes are invalid, so every optional category must start switched off. Continuing to scroll or browse does not count as consent. Several European supervisory authorities expect a reject option on the first layer that is as visible and as easy to reach as the accept option, and they treat a hidden reject path as a form of manipulation. Consent must also be granular by purpose, so a visitor can allow analytics while refusing advertising.

Requirements differ outside Europe. US state laws such as the California Consumer Privacy Act mostly follow an opt-out model, where processing may start by default but a visible way to refuse the sale or sharing of data must exist, and signals such as Global Privacy Control must be honored in some states.

RegimeDefault before choiceBanner implication
EU and EEANo optional cookiesPrior opt-in with equal reject option
United KingdomNo optional cookiesPrior opt-in, similar expectations to the EU
CaliforniaProcessing allowedClear opt-out link and respect for opt-out signals
Other US statesVaries by statuteOpt-out of targeted advertising, sensitive data opt-in
BrazilLegal basis requiredConsent or another lawful basis with transparency
Consent models in different legal regimes

The layout of a consent banner determines how much attention it demands and how easy it is to refuse. Each format trades visibility against disruption, and the right choice depends on the legal regime and the site’s design.

FormatBehaviorMain trade-off
Bottom barThin strip, page remains usableLess intrusive, easier to ignore
Center modalOverlay that pauses interactionClear decision, more disruption
Corner boxSmall panel in one cornerCompact, weaker on mobile screens
Full-page wallBlocks content until a choiceStrong prompt, risks becoming a cookie wall
Common consent banner formats

The term dark patterns describes designs that steer visitors toward acceptance: a bright accept button next to a gray text link for rejection, a reject option buried in the second layer, or confirmshaming wording that makes refusal sound careless. Regulators increasingly treat these patterns as invalidating consent, so visual parity between accept and reject is now a baseline expectation rather than a courtesy.

A consent banner is the interface, while a consent management platform (CMP) is the software system that generates the banner, stores records, manages vendor lists and integrates with tags. Many sites use a CMP to produce their banner, but a banner can also be hand-built, in which case the site must implement logging and script control itself.

TermWhat it isRelation to the banner
Consent bannerUser-facing choice interfaceCollects the decision
CMPPlatform that runs consent logicGenerates and operates the banner
Cookie policyDocument describing cookies in detailLinked from the banner
IAB TCFIndustry framework for ad consent signalsEncodes banner choices for vendors
Cookie wallAccess refused without acceptanceA restrictive banner variant
Global Privacy ControlBrowser-level privacy signalCan preset or override banner choices
How the consent banner differs from neighboring terms

In advertising contexts, the banner often feeds the IAB Transparency and Consent Framework, which encodes choices into a TC string read by vendors. The banner then becomes the source of truth for an entire chain of ad technology partners, which raises the stakes of any error in its wording or logic.

The most frequent failure is a banner that looks compliant but does not control anything: tags fire before the click, or a rejection is recorded but ignored by a script that was hard-coded into the page template.

  • Tags firing before consent, often from plugins or embedded third-party widgets that bypass the tag manager.
  • Reject hidden in a second layer while accept sits on the first layer as a prominent button.
  • Vague purpose labels such as improving experience instead of naming analytics or advertising.
  • No easy withdrawal, for example when the settings link disappears after the first choice.
  • Consent not renewed after new vendors or purposes are added to the site.
  • Overly long retention of the consent record; many sites reprompt after six to twelve months.

Regular technical audits with browser developer tools reveal whether cookies appear before a choice. Testing the reject path matters most, because that path receives the least attention during development and is the one regulators examine first.

The simple explanation

A consent banner is the question a website asks when you arrive. It wants to know whether it may use cookies and trackers beyond what it needs to work. Think of a shop assistant who asks before signing you up for a loyalty program. A fair assistant does not sign you up quietly.

A fair banner gives you a real yes and a real no. Both should be easy to find. You should also be able to change your answer later. Until you say yes, the site should run only the parts it truly needs, such as remembering your shopping cart.

How it is used in practice

A mid-sized online furniture retailer operating in several EU countries discovers during an audit that its analytics and advertising pixels load before any choice, because its old bottom-bar banner offered only an accept button and a settings link.

The team replaces it with a two-layer banner: the first layer shows accept all and reject all buttons of equal size and color, plus a customize option, and the second layer lists analytics, advertising and personalization categories, all switched off by default. Every advertising and analytics tag is moved behind consent triggers in the tag manager, and each decision is logged with a timestamp and banner version. A footer link reopens the settings at any time.

After the change, the share of visitors who accept analytics falls noticeably, but the retailer can now demonstrate valid consent for every tracked session, and its measurement relies on data it is actually permitted to collect.