New: Pandectes in Claude & ChatGPT - ask your AI assistant about your cookie banner, scans and consent rates

New: Pandectes in Claude & ChatGPT See how it works

Cookie Banner Examples: Compliant and Non-Compliant Designs

The short answer: a compliant cookie banner in the EU and the UK lets visitors accept or reject non-essential cookies with the same ease, usually “Accept all” and “Reject all” buttons side by side on the first screen, plus a way to choose by category. Nothing but strictly necessary cookies runs until the visitor chooses, no category is switched on in advance, and the choice can be changed later. In the US, a banner is usually a notice with an opt-out, such as a “Do not sell or share my personal information” link. The examples below show both, and the designs regulators have rejected.

The mock-ups below are illustrations of common layouts, not screenshots of real websites. Whether a banner is lawful also depends on what happens behind it, such as whether tags are actually blocked until consent, so treat the design as one part of compliance.

1. Bottom bar with equal choices

A cookie banner bar at the bottom of a web page, with Reject all, Accept all and Settings buttons of the same size and color

The most common layout. It explains in two lines what the cookies are for, links to the cookie policy, and puts “Reject all” next to “Accept all” in the same size and color. A “Settings” button opens the choice by category. Because it does not cover the page, visitors can keep browsing, but no non-essential cookie runs until they choose.

2. Centered pop-up with equal choices

A centered cookie consent pop-up over a dimmed page, with Reject all and Accept all buttons side by side and a Customize button below

A pop-up in the middle of the screen gets a decision on the first visit, which helps analytics and advertising data where most visitors accept. It is compliant as long as rejecting is as easy as accepting and the pop-up does not block the site for those who refuse.

3. Preferences by category, switched off by default

A cookie settings panel with strictly necessary cookies always on and functionality, performance and targeting switched off, with Reject all and Save choices buttons

The second layer, where visitors choose by purpose. Strictly necessary cookies are shown as always on, since they need no consent. Every other category starts switched off, so saving without changes means refusing them. Each category should say what it is for and which services it includes.

A cookie notice at the bottom of a page explaining that cookies may be a sale or sharing under California law, with a Do not sell or share my personal information link and an Opt out button

For visitors in California and most other US states, the law is opt-out: you must tell visitors at or before collection that cookies are used for advertising, and let them opt out of the “sale” or “sharing” of their data. The banner links to “Do not sell or share my personal information”, and the site must also honor the Global Privacy Control signal. This design is not enough for EU or UK visitors, which is why stores selling to both show a different banner by region with geolocation. See opt-in vs opt-out.

5. A way to change the choice later

A floating cookie icon in the corner of a web page with a Cookie settings label

Withdrawing consent must be as easy as giving it (GDPR Article 7(3)). A small floating icon, or a “Cookie settings” link in the footer, reopens the banner so visitors can change their choice at any time.

6. Accept only, or “by continuing to browse”

A dark cookie bar saying that by continuing to browse you agree to the use of cookies, with only a Got it button

A banner that only informs, with “OK” or “Got it” as the only answer, and treats browsing as agreement. Under the GDPR, consent must be a clear affirmative action, so continued browsing, scrolling or silence is not consent (EDPB Guidelines 05/2020 on consent). Many US sites still use this design, which is lawful there only if visitors can also opt out.

7. Reject hidden behind “Manage options”

A cookie pop-up with a large Accept and continue button and a small grey Manage options link

Accepting takes one click; refusing takes several, behind a faint link. The EDPB cookie banner taskforce report of January 2023 records that most EU authorities consider a first layer without a reject option a breach. France’s CNIL fined Google €150 million and Facebook €60 million in 2021 for exactly this imbalance, and authorities in Germany, Spain and the UK expect “Reject all” on the first layer too. Faint colors, low contrast or a reject button disguised as a link are treated the same way.

8. Categories switched on in advance

A cookie settings panel where functionality, performance and targeting cookies are already switched on, with only a Save choices button

Pre-ticked boxes are not valid consent. The Court of Justice of the EU ruled so in the Planet49 case in 2019, and the GDPR says silence and pre-ticked boxes do not count. Every non-essential category must start switched off.

A pop-up that blocks the page with a padlock icon, saying you must accept all cookies to see the content, with only an Accept all cookies button

A cookie wall blocks the site until the visitor accepts. The EDPB considers consent obtained this way not freely given, so it is not valid. Some authorities accept a “pay or accept” model under strict conditions, but a store that simply hides its content until visitors accept advertising cookies is not compliant. See analyzing the GDPR compliance of cookie walls.

EU and UK (opt-in):

We use cookies We use cookies that are necessary for our store to work. With your consent, we and our partners also use cookies to remember your preferences, measure visits and show you relevant ads. You can accept all, reject all or choose by category, and change your choice at any time in Cookie settings. [Cookie policy]

[Reject all] [Accept all] [Settings]

US (opt-out):

We use cookies and similar technologies for analytics and targeted advertising. This may be a “sale” or “sharing” of personal information under some US state laws. [Do not sell or share my personal information] [Privacy policy]

Name the purposes in plain words, avoid vague phrases such as “to improve your experience” on their own, and keep the button labels short and parallel, such as “Accept all” and “Reject all”. For consent outside cookies, such as newsletter checkboxes and consent forms, see GDPR consent examples.

What every compliant banner has in common

  • Choices of equal weight: accept and reject on the same layer, the same size and the same prominence.
  • No cookies before consent: analytics and advertising tags stay blocked until the visitor agrees, not just hidden behind the banner. See auto-blocking.
  • Purposes in plain language, with a link to the full cookie policy.
  • Choice by category, with every non-essential category off by default.
  • A record of consent, so you can prove what each visitor agreed to and when. See consent tracking.
  • A way to withdraw, available on every page.
  • The right banner for the region: opt-in for the EU and the UK, an opt-out notice for US states.

The Pandectes consent banner for Shopify covers each of these: a cookie notice as a box, a bar or a wide banner, with Accept and Decline side by side; a preferences dialog by category as a box, a drawer or a side panel; a consent widget that lets visitors change their choice from any page; a “Do not sell or share” opt-out for US states; and a different banner by region. It blocks cookies until consent and keeps a log of every choice.

Frequently asked questions

What should a cookie banner say? What the cookies are for, in plain words, that visitors can accept, reject or choose by category, that they can change their choice later, and where to find the cookie policy. The text examples above are a starting point.

Does a cookie banner need a reject button? In the EU and the UK, in practice yes. Refusing must be as easy as accepting, and most regulators read that as a “Reject all” option on the first layer, next to “Accept all”.

Is “by continuing to browse you accept cookies” allowed? Not in the EU or the UK. Consent must be a clear affirmative action, and continued browsing is not one. In the US it is common, provided visitors can opt out of the sale or sharing of their data.

Can I close the banner with an X instead of choosing? Closing the banner must not count as consent. If you offer an X, treat it as a refusal of non-essential cookies and say so.

What is the best cookie banner design? The one that is lawful in your visitors’ region and clear enough that they decide quickly: a short explanation, equal “Accept all” and “Reject all” buttons and a settings option. Within those rules, banners that match the store’s colors and fonts tend to get more answers than generic ones.

Do I need a cookie banner if I only use necessary cookies? No banner is required for strictly necessary cookies in the EU and the UK, but you should still explain them, for example in your cookie policy. Most stores use analytics or advertising tags, which do need consent.

More from the Knowledge Base

Make your Shopify Store's use of cookies and online tracking compliant today

Try for free