---
type: blog
title: "Cookie Banner for an Online Store: What It Must Do and How to Check Yours"
description: "A cookie banner asks shoppers before your store uses cookies that are not essential. Learn what it needs, why analytics and ads need separate choices, and how to test it."
date: "2026-11-17"
lastModified: "2026-11-17"
authors: "Runner AI Team"
tags: ["Privacy", "Analytics", "Ecommerce Operations"]
featured: false
readTime: "7 min read"
seo:
  title: "Cookie Banner: What an Online Store Needs and How to Test It"
  description: "What a cookie banner must do on an online store: ask before non-essential cookies, offer reject as easily as accept, split analytics from ads, and let shoppers change their mind."
---

A **cookie banner** is the notice a website shows to ask visitors whether it may use cookies and similar browser storage that the site does not strictly need. On an online store, the essential cookies keep the cart and checkout working. Analytics, session replay, and ad pixels are not essential, so in many countries the store must ask before it uses them.

This guide explains what a store's cookie banner has to do, why analytics and advertising should be separate choices, and how to test your banner in five minutes. It ends with how the banner works on Runner AI stores.

Disclosure: Runner AI publishes this guide, and Runner AI is a store platform. The legal quotes come from the EU [General Data Protection Regulation](https://eur-lex.europa.eu/eli/reg/2016/679/oj) and the UK ICO's [cookies guidance](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/), both retrieved on November 17, 2026. The Runner details come from Runner's storefront template source on the same date. This is not legal advice. Rules differ by country and change, so check with a lawyer for your markets.

> **Key Takeaways**
>
> - A cookie banner asks before the store uses cookies or storage it does not strictly need, such as analytics and ad pixels.
> - Cart and checkout cookies are strictly necessary. The ICO names "the goods a user wishes to buy" in an online basket as an example that needs no consent.
> - Under the GDPR, silence and pre-ticked boxes are not consent, and withdrawing consent must be as easy as giving it.
> - Give analytics and marketing separate choices. A shopper can be happy to help you improve the store and still not want visits shared with ad platforms.
> - Test the banner yourself: decline, then check that the ad pixels and analytics stay quiet.

## What a cookie banner is for

A cookie is a small piece of data a website saves in the browser. Browser storage such as `localStorage` does the same job, and the rules usually treat it the same way. That is why many stores now call the banner "privacy choices" rather than "cookies".

A store uses this storage for three different jobs:

| Purpose | Examples | Needs consent? |
| --- | --- | --- |
| **Strictly necessary** | Cart contents, checkout session, login, fraud and security checks | Usually no |
| **Analytics** | Page views, funnels, session replay, error tracking | Usually yes in the EU and UK |
| **Marketing** | Meta, Google, or TikTok ad pixels, ad click IDs, retargeting | Yes |

The ICO's guidance gives the strictly necessary example in plain words: cookies "used to remember the goods a user wishes to buy when they add goods to their online basket or proceed to the checkout on an internet shopping website" do not need consent. It is just as plain about the rest: "you cannot set non-essential cookies on your website's homepage before the user has consented to them."

The ICO also says this page is based on its previous guidance and that it is consulting on a revised version. If you sell to the UK, check the page again before you change your setup.

## What the banner must do

These rules come from the GDPR's definition of consent. Most EU privacy regulators apply them to cookie banners.

### Ask before, not after

Non-essential scripts should wait for the shopper's answer. A banner that shows while the ad pixel has already fired on page load asks too late.

### Make "no" a real choice

Recital 32 of the GDPR says consent needs "a clear affirmative act" and that "silence, pre-ticked boxes or inactivity should not therefore constitute consent." So:

- Boxes for analytics and marketing start unticked.
- Scrolling or closing the banner is not a yes.
- **Decline** sits on the first screen, as visible as **Accept**. A reject option hidden behind "Manage settings" pushes shoppers toward yes.

### Ask per purpose

The same recital says that "when the processing has multiple purposes, consent should be given for all of them." For a store, the two purposes that matter are analytics and marketing. One "Accept cookies" button bundles them together, so a shopper who wants to help you fix a slow product page must also agree to be tracked for ads.

### Let shoppers change their mind

Article 7(3) of the GDPR says "it shall be as easy to withdraw as to give consent." If the banner took one click to accept, changing the answer should take about one click too. The usual way is a **Privacy choices** or **Cookie settings** link in the footer of every page.

## Why analytics and marketing should be separate

Splitting the two is good for the shopper and for you.

- **Shoppers say yes more often to the smaller ask.** Many people are fine with anonymous analytics and object only to ads. With one bundled button they decline everything, and you lose the analytics too.
- **Your reports stay useful.** With analytics allowed, you still see funnels and drop-off even when ad sharing is off. Our [store analytics guide](./store-analytics-revenue-funnels-cohorts) covers what those reports show.
- **Ad numbers stay honest.** An ad platform should only get the visits of shoppers who allowed marketing. Expect fewer attributed conversions in regions with strict consent rules, and read our [marketing attribution guide](./marketing-attribution-channels-creatives-lift) before you compare channels.

Email consent is a separate question. A cookie banner does not give you permission to send marketing emails. Ask for that at signup, as our [newsletter signup form guide](./newsletter-signup-form) explains.

## How to test your cookie banner

You can check most of this yourself in a private browser window, with the browser's developer tools open on the **Network** tab.

1. **Open the store in a fresh private window.** The banner should appear before you click anything.
2. **Watch the network before you answer.** Look for requests to ad platforms such as `facebook.com/tr` or Google Ads. If they fire before you choose, the banner asks too late.
3. **Click Decline.** Reload and browse a product page. Ad pixel requests should not appear.
4. **Reopen your choices.** Find the footer link and turn on analytics only. Marketing should stay off.
5. **Check the boxes start unticked** the first time the detailed choices open.
6. **Try it on a phone.** The banner should not cover the **Add to cart** button so the shopper cannot buy without answering.

If you sell in many countries, repeat the test with a VPN set to your main markets. Our [international ecommerce guide](./international-ecommerce-guide) covers other rules that change by country, and our [secure ecommerce website guide](./secure-ecommerce-website) covers the security side.

## How the cookie banner works on Runner AI stores

Runner AI storefronts built from the current template have a privacy banner with two separate choices:

- **Analytics.** "Helps us see how shoppers use this store."
- **Marketing.** "Shares visits with ad platforms such as Meta to measure ads."

The banner has three buttons: **Decline all**, **Save choices**, and **Accept all**. A **Privacy choices** link in the footer reopens it at any time.

The merchant picks one of two consent modes in the store's analytics tracking settings:

- **Implicit**, the default. Privacy-safe analytics run, and the banner tells the shopper so and offers Decline. Connected ad platforms get no events in this mode.
- **Consent banner.** Both choices start off, and the banner shows on each visit until the shopper answers. Connected ad platforms get events only after the shopper allows marketing.

Each choice changes what happens to the data:

- **Decline all** stops collection and removes the browser's anonymous ID.
- **Analytics only** keeps your reports and turns sharing with ad platforms off.
- **Marketing off** clears the stored ad click details, so later orders are not credited to an ad.
- On Runner's side, customer and user IDs are kept in reports only when analytics is allowed, and ad click IDs only when both purposes are allowed.

If you sell to shoppers in the EU or the UK, switch the store to **Consent banner** mode and run the test above.

## Related questions

### Do I need a cookie banner on my online store?

You need one if your store uses cookies or browser storage that are not strictly necessary, such as analytics or ad pixels, and you sell to people in places with consent rules, such as the EU and the UK. Cookies that keep the cart and checkout working usually do not need consent.

### Are analytics cookies strictly necessary?

Usually not. The ICO treats cookies that are "helpful or convenient but not essential" as needing consent. Some regulators allow narrow exceptions for basic audience measurement, so check the rules in your markets.

### Does a cookie banner need a reject button?

Under the GDPR, consent must be freely given and a shopper must be able to say no without extra effort. In practice, put **Decline** on the first screen next to **Accept**, with the same weight.

### What is the difference between analytics and marketing cookies?

Analytics cookies help you see how shoppers use your store, such as which pages they view and where they leave. Marketing cookies share visits with ad platforms so they can measure and target ads. Ask for each one separately.

### Can a shopper change their cookie choices later?

They should be able to. The GDPR says withdrawing consent must be as easy as giving it. Add a **Privacy choices** link to your footer that reopens the banner.
