Cookie banner best practices are the design choices that let visitors make a real decision about cookies in a few seconds, then get on with what they came for.
A shopper in Bristol opens your site on her phone. Half the screen fills with a box that says “We value your privacy.” There’s a bright green “Accept all” button and, under it, a faint “Manage preferences” link. No reject button anywhere.
She taps accept just to make the box go away. Or she leaves.
Neither outcome helps you. One gives you consent that might not hold up, and the other costs you a visitor. A clear, fair banner can take up less room and annoy fewer people at the same time.
This guide from UX Audit Tool covers the UX side. For the legal fine print, check with whoever handles privacy for your business.
What Do UK and US Cookie Rules Mean for Your Banner?
In the UK, you need consent before setting non-essential cookies, and rejecting should be as easy as accepting. The US has no single federal rule. State laws, led by California’s, mostly require a clear way to opt out of cookies used to sell or share data or to target ads.
| UK | US | |
|---|---|---|
| Default approach | Opt in: ask before setting non-essential cookies | Mostly opt out, set state by state |
| Main rules | PECR and UK GDPR, enforced by the ICO | State privacy laws, such as California’s CCPA |
| What the banner needs | “Accept all” and “Reject all” with equal weight, plus clear categories | A clear opt-out, often a “Do Not Sell or Share” link, and respect for browser opt-out signals |
| Cookies that don’t need a choice | Ones that keep the site working, like a shopping basket | Rules focus on selling or sharing data and targeted ads |
For the UK, the ICO’s cookie guidance is the reference point. It explains strictly necessary cookies, the ones that keep a basket or login working and don’t need consent. The Data (Use and Access) Act 2025 relaxes consent for some low-risk cookies, with changes phasing in, so check the ICO’s latest position before you redesign.
In California, the CCPA gives visitors the right to opt out of the sale or sharing of their personal information. Businesses covered by it also need to honor Global Privacy Control, a browser setting that sends that opt-out automatically. Several other states have passed similar laws, so a US banner can’t assume one set of rules forever.
Where Should a Cookie Banner Go, and How Big Should It Be?
Use a slim bar along the bottom of the screen or a small panel in a corner. Keep the first layer short enough that visitors can still see the page behind it, especially on a phone. A full-screen wall turns your first impression into a legal form.
Placement is the first of the cookie banner best practices to get right, because it decides how much of your page anyone sees before they choose. A few things to watch:
- Your main button. A bottom bar sitting right over “Add to cart” or “Book a call” costs you clicks until someone deals with it.
- Other overlays. Chat bubbles and sticky footers pile up fast at the bottom of a phone screen, and stacked overlays leave very little page to read.
- Length. One or two sentences and the buttons are enough for the first layer. Detail belongs one click deeper.
- Small screens. Text that fits neatly on a desktop banner can wrap into a tall block on a phone. Check it on a real device.
Every overlay fights for the same space, so our guide to website popup best practices is worth reading alongside this one.
How to Design a Cookie Consent Banner People Trust
Give “Accept all” and “Reject all” the same size and style, side by side, and add a link to choose categories. Then say in one plain sentence what you use cookies for. If visitors can’t tell what they’re agreeing to, the choice doesn’t mean much.
| Before | After |
|---|---|
| A bright “Accept all” button and a faint “Manage preferences” link | Matching “Accept all” and “Reject all” buttons, plus a “Choose cookies” link |
| “We value your privacy” | “We use cookies to count visits and, if you agree, to show you ads on other sites” |
| Analytics and marketing switched on by default | Every optional category switched off until the visitor turns it on |
| “Accept” in green, “Reject” in low-contrast gray | Both buttons in your normal button style |
That green-versus-gray trick is one of the classic dark patterns. It might nudge your consent rate up a little, but it’s the kind of design the ICO has asked websites to fix, and visitors notice when they’re being steered.
Keep the wording human too. Describe what each category actually does, like “remember what’s in your cart” or “show ads on other sites.” Phrases like “enhance your experience” tell people nothing, so they skim past them and click whatever closes the box.
How Should Cookie Preferences Work After the First Click?
Visitors should be able to see each category, switch optional ones on or off, and change their mind later without hunting for the setting. Remember their choice so the banner doesn’t keep coming back, and make withdrawing consent as easy as giving it.
A preferences panel that works well has:
- Clear categories, each with one line on what it does. Essential cookies stay on with no toggle. Every optional category, from analytics to marketing, gets its own switch, off by default.
- A “Cookie settings” link in the footer, so people can reopen their cookie preferences whenever they like. UK GDPR expects withdrawing consent to be as easy as giving it.
- A memory. Showing the banner on every page or every visit trains people to click whatever makes it disappear fastest.
- A reason to ask again. Bring the banner back when something changes, like adding a new marketing tool, or after a sensible interval.
If the law where your visitors live asks you to honor browser opt-out signals, make sure the panel reflects them. Someone whose browser already said no shouldn’t have to say it twice.
How to Check That Your Cookie Banner Actually Works
Open your site in a private window, reject everything, then check whether non-essential cookies still get set. After that, test the banner with a keyboard and on a phone. A banner can look perfect and still drop tracking cookies before anyone clicks a thing.
Following cookie banner best practices on screen means little if the tags underneath ignore the visitor’s choice. Five checks:
- Look before you click. Open the site in a fresh private window and check stored cookies before touching the banner. In Chrome, that’s DevTools, then Application, then Cookies. Nothing optional should be there yet.
- Reject, then look again. Analytics or ad cookies showing up after a reject mean your tags fire regardless.
- Check your Google tags. If you run GA4 or Google Ads, Google’s consent mode lets those tags adjust to the visitor’s choice. Ask your developer to confirm it’s set up and passing the right signals.
- Try it with a keyboard. Tab to every button, make sure you can see where focus is, and confirm the preferences panel closes with Esc or a clearly labeled button.
- Look at it on a real phone. Make sure it doesn’t hide your main button or push content off the screen.
Want to see how your pages hold up with the banner in place? Run a free audit with UX Audit Tool. It checks every page of your site, and its AI heatmaps show where attention lands on each one.
Does a Cookie Banner Hurt Conversions or Analytics?
It can cost you some analytics data, because people who reject won’t be fully tracked. A clumsy banner can also add friction on the way to your main button. A compact, fair banner keeps both costs small, and the data you do collect rests on real consent.
Expect a gap in GA4 once you start respecting rejections. Google’s modeling can fill some of it, but trend lines are more trustworthy than exact visit counts from that point on. If last month’s numbers suddenly look lower after a banner change, check whether tracking changed before you panic about traffic.
To check the UX cost, compare engagement and conversions on your key pages before and after a banner change, and watch a few recordings of first visits. People who close the banner and then scroll straight past your offer have a different problem from people who leave at the banner. Both are website usability issues worth fixing.
Test Your Cookie Banner in Five Minutes Today
Open your site on your phone in a private window. Can you reject everything in one tap? Once you have, check that analytics and ad cookies stayed off. Then look at what the banner covers before you dismiss it.
If any of those fail, fix that first. Everything else in this guide can wait until the basics work.
Questions about the audit or what your report shows? Write to the UX Audit Tool team.
Frequently Asked Questions
Do I need a cookie banner if I only use Google Analytics?
In the UK, analytics cookies have needed consent, though the Data (Use and Access) Act 2025 is relaxing this for some low-risk analytics, so check the ICO’s current guidance. US state laws focus mainly on selling or sharing data and targeted ads, so whether analytics alone needs a notice depends on how that data is used.
Should the cookie banner show up on every visit?
No. Once someone has made a choice, remember it. Ask again only when something meaningful changes, like a new marketing tool, or after a sensible interval. A banner that reappears constantly teaches people to tap whatever closes it.
What’s the difference between a cookie consent banner and a cookie policy?
The banner is where visitors make their choice, so it stays short. The cookie policy is the full page explaining which cookies you use and what each one does. Link to the policy from the banner and the footer.
Do cookie banners hurt SEO?
Google’s guidance on intrusive popups makes an exception for legally required notices like cookie consent, so having one isn’t a problem in itself. A banner that hides most of the page on a phone can still push visitors away, so keep it compact.



