Your consent banner is not blocking cookies: how to tell and how to fix it
Your consent banner is live. Users see it. You feel covered. You are probably not.
A consent banner that shows up on screen is not the same as a consent banner that blocks cookies. The two are entirely separate things. The banner is HTML. The blocking is configuration. Many stores have one without the other, and regulators do not care which tools you purchased. They care what actually fires in the browser before a user clicks anything.
This post will show you how to test your own store in five minutes and how to fix the most common misconfigurations that make consent banners cosmetic.
The false sense of security
When a store installs a consent management platform (CMP), there is a natural assumption that the compliance problem is solved. The banner appears, the tool is active, the legal team is satisfied.
The problem is that most CMPs are not plug-and-play. Installing a CMP adds a banner to your site. It does not automatically intercept and hold all your existing scripts. That part requires explicit configuration, and it is frequently skipped, misconfigured or broken by subsequent changes to your tag setup.
The result: your banner asks for consent while cookies fire regardless of what the user chooses. The banner becomes a UI element with no functional consequence. This is not a theoretical risk. It is what happened to several well-known brands that faced enforcement actions.
Brands that had consent tools and still got fined
These are not hypothetical scenarios. Each of the following brands operated a consent tool or privacy mechanism at the time of the enforcement action. The tool was not the problem. The enforcement layer was missing.
Sephora: $1.2 million, California, 2022
California's Attorney General fined Sephora $1.2 million under CCPA in August 2022. Sephora had consent mechanisms in place. The problem: tracking pixels including the Meta Pixel and others were firing and sharing customer behavioral data with advertising networks regardless of user action. Under CCPA, this constituted a "sale" of personal data that required disclosure and a valid opt-out mechanism.
When customers submitted opt-out requests via Global Privacy Control, those signals were not being honored by Sephora's systems. The consent tool was present. The consent tool was not enforced.
Tractor Supply: $1.35 million, California, 2024
Tractor Supply settled with the California AG for $1.35 million. The violations were similar: sharing customer data with advertising and analytics vendors through tracking technologies without properly disclosing this as a sale of personal information and without providing a functioning opt-out. The store had a privacy notice. The notice did not match what was actually happening in the browser.
Todd Snyder: $345,000, California, 2024
Todd Snyder, a mid-market fashion brand, settled for $345,000. The company failed to honor opt-out preference signals, specifically Global Privacy Control, which CCPA requires businesses to treat as a valid opt-out from sale of personal information. The issue was not a missing banner. It was that the banner and backend systems were not wired together correctly.
All three cases share the same pattern: the compliance tool existed, but the enforcement layer was missing or broken.
How to test your store in five minutes
You do not need any paid tools to run this test. You need a browser with DevTools. Open a fresh private or incognito window. This clears any existing consent records so you start from scratch.
Open DevTools with F12 (Windows) or Command+Option+I (Mac). Go to the Application tab. In the left sidebar, expand the Cookies section under Storage and click your domain. You will see every cookie currently set on your store.
Navigate to your store URL. Do not click anything on the consent banner yet. Look at the cookie list immediately. This is the most important check: what is already there before any interaction.
If you see any of these before clicking: _ga or _gid (Google Analytics), _fbp or _fbc (Meta Pixel), _gcl_aw (Google Ads), _tt_enable_cookie (TikTok), __kla_id (Klaviyo) or cookies from any other third-party tracking platform, your banner is not blocking. Full stop.
For more detail on which cookie names map to which vendors, see our guide to checking pre-consent cookies.
Five things to check and how to fix each one
1. Pre-consent cookies
Check: load your store in an incognito window, open the Application tab in DevTools and read the cookie list before touching the banner. Any tracking or analytics cookie visible here is a violation.
Fix: your CMP must be configured to intercept these scripts before they fire. Each tracking script needs to be assigned to a consent category in your CMP, and that category must have blocking enabled. For scripts loaded through Google Tag Manager, you also need to implement GTM consent mode so those tags wait for a consent signal.
For a detailed walkthrough of this check, see our post on pre-consent cookies and ecommerce compliance risk.
2. Reject button behavior
Check: click Reject All on your banner. Wait two seconds. Look at the cookie list again. Did new tracking cookies appear? This is a common failure mode where the act of clicking any button on the banner, even Reject, triggers a consent event that fires certain tags.
Fix: in your CMP configuration, verify that the rejection path explicitly blocks all non-essential categories. Some CMPs treat "no choice" differently from "explicit rejection." Your setup must ensure that clicking Reject results in the same cookie state as not interacting with the banner at all: essential cookies only.
Also check whether your Reject button navigates the user away or sets a cookie that your scripts interpret as consent. Some poorly configured setups fire tags on page navigation regardless of the consent signal.
3. Consent persistence across pages
Check: accept consent on the homepage, navigate to a product page, then to a category page. Open the cookie list at each point. The consent choice should be remembered. Now try the reverse: reject on the homepage and navigate to other pages. No new tracking cookies should appear on subsequent pages.
Fix: consent persistence is usually handled by a first-party cookie that your CMP sets to store the user's choice. If consent is not persisting, the CMP consent cookie may be scoped to a path instead of the root domain, it may have too short an expiry, or cross-subdomain consent is not configured. Check your CMP settings for domain scope and consent cookie lifetime.
4. Consent Mode v2 defaults
Check: in Google Tag Manager, look for a tag configured to fire on the "Consent Initialization" trigger. This tag should set default consent states to "denied" before any other tags load. If this tag does not exist, your Google tags (Analytics, Ads, Floodlight) have no consent defaults and will behave as if consent was granted.
Fix: add a consent initialization tag in GTM that fires on the Consent Initialization trigger and sets analytics_storage, ad_storage, ad_user_data and ad_personalization to "denied" by default. Your CMP then updates these signals when a user makes a choice. For EU traffic, this is now required for Google Ads conversion measurement.
For the full implementation details, see our Consent Mode v2 guide.
5. Tracking after rejection
Check: in a fresh incognito window, click Reject All. Then browse your store: visit a product page, add something to your cart, navigate to checkout. At each step, check the Network tab in DevTools for requests to tracking domains. Filter for google-analytics.com, connect.facebook.net, analytics.tiktok.com and similar. Any requests appearing after rejection are violations.
Fix: this usually means scripts are loading unconditionally from your theme code or through GTM without a consent check trigger. Find every tag in GTM that fires on "All Pages" and add a consent condition. For scripts hardcoded in your theme, move them to GTM and add the same consent conditions there. Alternatively, use your CMP's script wrapping feature if it supports it.
Common CMP misconfigurations by platform
OneTrust
OneTrust is one of the most widely deployed CMPs and one of the most commonly misconfigured. After installation, it shows a banner. Auto-blocking is not enabled by default. You must go into the category configuration, map each third-party script to a category and enable the blocking toggle for each non-necessary category. Many implementations skip this because the banner appears functional without it.
Cookiebot
Cookiebot controls scripts by modifying script tags at the HTML level. A script loaded as <script src="analytics.js"></script> must be changed to <script type="text/plain" data-cookieconsent="statistics" src="analytics.js"></script>. Cookiebot then controls execution based on consent state. Scripts loaded through GTM cannot be wrapped this way and require GTM consent mode instead.
Cookie-Script and others
Most CMPs organize cookies into necessary, functional, analytics and marketing categories. For blocking to work, every third-party script must be mapped to the correct category. A script mapped to the wrong category will not block correctly. Category mapping errors are common when new scripts are added to a site without updating the CMP configuration.
Script loading order
Regardless of which CMP you use, loading order is critical. Your CMP initialization script must load before any script it is meant to block. If analytics scripts appear in your page HTML before your CMP script, the browser executes them before the CMP has checked consent state.
The correct order: CMP first in <head>, then GTM, then everything else. If you are loading your CMP through GTM rather than directly in your HTML, you have already lost: GTM loads after your page HTML, which means other GTM-managed tags may fire before the CMP tag runs.
For more context on how cookie consent drift happens over time and why a compliant setup today can break tomorrow, see our post on cookie drift and ecommerce compliance.
What regulators actually check
When a data protection authority investigates a cookie consent complaint, they do not ask which CMP you use. They load your site in a clean browser session and check what cookies fire before interaction and what fires after rejection. The technical reality in the browser is the evidence.
For CCPA enforcement, investigators also check whether Global Privacy Control signals are honored. If GPC is enabled in a user's browser, your store must treat it as a valid opt-out from sale of personal information. Your CMP must have GPC detection enabled.
For a broader comparison of how different CMPs handle compliance requirements, see our CMP comparison guide.
Documentation matters alongside the technical setup. Your consent logs should record when each user consented, what they consented to and which version of your privacy notice was shown. This is the evidence you need if you are ever asked to prove consent was obtained.
Quick reference checklist
- CMP script loads before GTM and all analytics scripts in
<head> - Auto-blocking or script wrapping is enabled in CMP category settings, not just the banner
- Three-state test passes: no tracking cookies before interaction, none after rejection, expected cookies after acceptance
- GTM Consent Initialization tag sets all consent signals to denied by default
- GPC signal detection enabled in CMP settings
- Every new pixel or tracking tag is added to the CMP configuration before going live
- Consent persistence verified across page navigation
- Privacy notice accurately lists all third parties that receive data
Frequently asked questions
Complyko scans your store to check whether your consent banner is actually blocking cookies, not just showing them. Get a free compliance report and see exactly what fires before and after consent.
Get your free compliance report →