---
title: "Cookie banner"
description: "The notice asking visitors whether a site may use cookies and similar tools it does not strictly need. Refusing must be as easy as accepting."
url: https://ursy.com/wiki/cookie-banner/
updated: 2026-11-26T15:48:10+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/cookie-banner/
---

# Cookie banner

> The notice asking visitors whether a site may use cookies and similar tools it does not strictly need. Refusing must be as easy as accepting.

**A [cookie](https://ursy.com/wiki/cookie/) banner is the notice that asks visitors whether a website may use cookies and similar technologies it does not strictly need.** Under the ICO’s guidance, refusing must be as easy as accepting, and nothing that needs consent may be set before the visitor chooses. A good banner is short, honest and fair: it says what each technology does, offers “accept” and “reject” on the first layer, and remembers the choice. This page shows what the ICO expects, a worked example and the checks to run.

## What is a cookie banner for? {#what-is-a-cookie-banner-for}

In the UK, the rules come from [PECR](https://ursy.com/wiki/pecr/). Its cookie rule covers more than cookies. The ICO published its final guidance on “storage and access technologies” on 29 April 2026. It covers cookies, tracking pixels, device fingerprinting and similar tools. The banner is how a site collects consent for the ones that need it, and tells people about the ones that do not. Where the information is personal data, the [UK GDPR](https://ursy.com/wiki/uk-gdpr/) applies too.

## What makes consent valid? {#what-makes-consent-valid}

A banner that hides the “reject” choice, or sets tracking before anyone clicks, does not collect valid consent. The ICO’s checklist says technologies are only set “when valid consent is gathered, or when they meet an exception”. Its guidance on [managing consent in practice](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/how-do-we-manage-consent-in-practice/) adds more. Requests must be specific to each purpose. Consent must be separate from terms and conditions. People must be able to withdraw consent as easily as they gave it. And you must be able to show that someone gave consent, so keep consent records and set how long you hold them. See [data retention](https://ursy.com/wiki/data-retention/).

## Which cookies need the banner? {#which-cookies-need-the-banner-2}

Examples from the ICO’s [table of exceptions](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-the-exceptions/):

| What the cookie does | What the ICO says |
| --- | --- |
| Remembers the goods in a shopping basket on the way to checkout | likely to meet the strictly necessary exception |
| Remembers the language a visitor chose on a multilingual site | likely to meet the appearance exception |
| Counts visits for statistics | can meet the statistical purposes exception, with clear information and a simple, free way to object, but it does not allow monitoring or tracking individual visitors |
| Advertising | no advertising purpose meets the strictly necessary exception, so consent is needed |

The ICO lists five exceptions in all: communication, strictly necessary, statistical purposes, appearance and emergency assistance. “Strictly necessary” is judged from the user’s point of view, not yours.

## Good and bad banners, side by side {#good-and-bad-banners-side-by-side}

The ICO’s guidance shows example banners, marked good practice and bad practice.

| Bad practice in the ICO’s examples | Good practice in the ICO’s examples |
| --- | --- |
| “By continuing to use our website, you consent…” The ICO calls this pre-enabling without consent | Nothing that needs consent is set until the visitor chooses |
| “Accept all” and “more options”, but no “reject all” | “Accept all” and “reject all” as equally prominent options |
| One switch for every purpose | A choice per purpose, with non-exempt options off by default |
| No way back once chosen | A settings icon that lets people change their choice at any time |

As a general guideline, the ICO suggests six months is a suitable time before asking again for fresh consent.

## Why does a banner matter for search? {#why-does-a-banner-matter-for-search}

The banner does not rank pages. It sits on top of them, so it can get in the way. A large banner can push content down on a phone, or cause a jump when it appears, which shows in [Cumulative Layout Shift](https://ursy.com/wiki/cumulative-layout-shift/). A block of banner text can even become the page’s [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/) element, as web.dev counts text blocks. Keep it compact, load it without moving the page, and test on mobile. A fair, quick banner is also better [user experience](https://ursy.com/wiki/user-experience-ux/). See [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/) and [mobile SEO](https://ursy.com/wiki/mobile-seo/).

## Why does a banner matter for AI answers? {#why-does-a-banner-matter-for-ai-answers}

An [AI crawler](https://ursy.com/wiki/ai-crawler/) does not click “accept” or “reject”. If your page only shows its text after the banner is closed, or a script builds the content later, a crawler may read the banner and little else. Keep the real content in the [HTML](https://ursy.com/wiki/html/) with the banner as an overlay. An [AI agent](https://ursy.com/wiki/ai-agent/) browsing for a person meets the same banner a person does, so a clear “reject all” helps it too. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/).

## What does a banner do to analytics? {#what-does-a-banner-do-to-analytics}

People who refuse are not counted by cookie-based tags such as [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/). That is one reason [analytics numbers are low](https://ursy.com/wiki/why-analytics-numbers-are-low/) and [conversion tracking](https://ursy.com/wiki/conversion-tracking/) misses sales. [Google](https://ursy.com/wiki/google/)’s response is [Consent Mode v2](https://ursy.com/wiki/consent-mode-v2/); see [Consent Mode v2 for UK websites](https://ursy.com/wiki/consent-mode-v2-for-uk-websites/). Other routes are [cookieless analytics](https://ursy.com/wiki/cookieless-analytics/) and [server-side tracking](https://ursy.com/wiki/server-side-tracking/). Each is still judged by what it stores on or reads from the device.

## A worked example {#a-worked-example}

A bike shop sells online and runs adverts. Its basket cookie is exempt, so it works from the first page. Its advertising tags wait for consent. The first layer of its banner reads: “We use cookies to keep your basket working. With your permission we would also like to use advertising cookies to show you our offers on other sites.” Below sit two buttons of the same size and colour, “Accept all” and “Reject all”, plus a “Choose” link for each type. A small settings icon in the footer lets people change their mind. The choice is kept, and the shop does not ask again for six months.

## Common mistakes {#common-mistakes}

- Setting analytics or advert tags on first load, before the visitor chooses.
- A bright “Accept” and a grey “Settings” link, with no “Reject all” on the first layer.
- Pre-ticked boxes, or non-exempt switches on by default.
- Wording such as “by continuing to use our website”. The ICO calls this pre-enabling without consent.
- A “Reject all” button that sets the tags anyway. Always test it.
- Asking again on every page after someone refuses.
- Low-contrast buttons that some people cannot read. See [web accessibility](https://ursy.com/wiki/web-accessibility/).
- Calling an advertising cookie “strictly necessary” because it pays for the site.

## How to check it {#how-to-check-it}

1. Open your site in a private browser window. Before clicking anything, open the browser’s developer tools and look at the cookies and storage set. Only exempt ones should be there. Our [Cookie Checker](https://ursy.com/cookie-checker/) shows what a page sets before consent.
2. List every tracker and pixel the page loads with the [Tracking Checker](https://ursy.com/tracking-checker/). Tools such as [Microsoft Clarity](https://ursy.com/wiki/microsoft-clarity/) and [heatmaps](https://ursy.com/wiki/heatmaps/) belong on that list too.
3. Read the `Set-Cookie` lines in the response with the [HTTP Header Checker](https://ursy.com/http-header-checker/), and find which plugin or platform adds them with the [tech stack checker](https://ursy.com/tech-stack-checker/).
4. Look at the first layer of the banner. The ICO’s good-practice example shows “accept all” and “reject all” as equally prominent options. Check the button colours with the [colour contrast checker](https://ursy.com/webmaster-tools/colour-contrast-checker/).
5. Click “reject all” and check that the non-essential cookies do not appear. Run the Cookie Checker again to compare.
6. Remove wording such as “by continuing to use our website”. Test your banner text with the [Readability and Plain English Checker](https://ursy.com/readability-checker/).
7. Check the exceptions. “Strictly necessary” is judged from the user’s point of view. A statistical purposes exception exists, but it needs clear information and a simple, free way to object.
8. Run the [UK Shop Compliance Checker](https://ursy.com/uk-shop-compliance-checker/): unit prices, returns, company details, delivery and the cookie banner. See [what a UK business website must show by law](https://ursy.com/wiki/what-must-a-uk-business-website-show-by-law/).
9. Check that crawlers can still read the page behind the banner with the [JavaScript SEO Checker](https://ursy.com/javascript-seo-checker/) and the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/). Score the page with the [SEO Checker](https://ursy.com/seo-checker/).
10. In URSY Pro, opening in stages: the [UK shop compliance monitor](https://ursy.com/pro/uk-shop-compliance-monitor/) checks consent and more each week, [cookie-free analytics](https://ursy.com/pro/cookie-free-analytics/) counts visits without cookies, and [measurement integrity](https://ursy.com/pro/measurement-integrity/) shows when your counting changed, for example after a new banner.

## What URSY.com counts {#what-ursy-counts}

A page view is a person’s browser loading a page and running our cookie-free counter. A visitor is one daily visitor code, a one-way code made from a random secret that changes every UTC day, the [network address](https://ursy.com/wiki/network-block/) and the browser name; nothing is stored on the device. We set no cookies from the counter, do no fingerprinting, keep no full [IP addresses](https://ursy.com/wiki/ip-address/) and never store query strings. Visitor numbers are inferred, and we say so. See our [methodology](https://ursy.com/methodology/), [observed vs inferred data](https://ursy.com/wiki/observed-vs-inferred-data/) and [Cookieless Analytics](https://ursy.com/cookieless-analytics/).

## Questions {#questions}

### Do I need a cookie banner if I only use strictly necessary cookies? {#do-i-need-a-cookie-banner-if-i-only-use-strictly-necessary-c}

You still need to tell people about them, but you do not need consent for ones that meet an exception.

### Must “reject all” be on the first layer? {#must-reject-all-be-on-the-first-layer}

The ICO says refusing must be as easy as accepting. Its bad-practice example offers “accept all” with no “reject all”.

### Can I count visits without consent? {#can-i-count-visits-without-consent}

Only if it meets the statistical purposes exception: clear information, a simple free way to object, and no tracking of individual visitors.

### How often can I ask again? {#how-often-can-i-ask-again}

The ICO says not to ask repeatedly, and suggests six months as a general guideline before asking for fresh consent.

### Does the banner cover tracking pixels? {#does-the-banner-cover-tracking-pixels}

Yes. The ICO’s guidance covers cookies, tracking pixels, device fingerprinting and similar tools.

## Related words {#related-words}

- [PECR](https://ursy.com/wiki/pecr/)
- [Consent Mode v2](https://ursy.com/wiki/consent-mode-v2/)
- [First-party cookies](https://ursy.com/wiki/first-party-cookies/)
- [UK GDPR](https://ursy.com/wiki/uk-gdpr/)
- [Cookieless analytics](https://ursy.com/wiki/cookieless-analytics/)
- [Consent Mode v2 for UK websites](https://ursy.com/wiki/consent-mode-v2-for-uk-websites/)
- [Server-side tracking](https://ursy.com/wiki/server-side-tracking/)
- [All privacy law words](https://ursy.com/wiki/topics/privacy-law/)

## Sources {#sources}

- [ICO, How do we manage consent in practice?](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/how-do-we-manage-consent-in-practice/), checked 24 November 2026
- [ICO, What are the exceptions?](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-the-exceptions/), checked 24 November 2026
- [ICO, Final storage and access technologies guidance published](https://ico.org.uk/about-the-ico/media-centre/news-and-blogs/2026/04/final-storage-and-access-technologies-guidance-published/), checked 24 November 2026
- [ICO, What are storage and access technologies?](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-storage-and-access-technologies/), checked 24 November 2026
- [web.dev, Largest Contentful Paint (LCP)](https://web.dev/articles/lcp), checked 24 November 2026
- [URSY.com: How we count (methodology)](https://ursy.com/methodology/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
