klickbeetracking
Consent & GDPR

How to check that your cookie banner really blocks tags

Published November 19, 2026

A cookie banner that looks right can still let tags run before consent. Here is a DevTools test you can run in ten minutes, and the usual leaks to look for.

To check that a cookie banner really blocks tags, open your site in a clean browser profile, open DevTools before the page loads, and look at the Network panel and the cookies without clicking anything on the banner. If an advertising or analytics request leaves, or a marketing cookie appears, before a choice is made, the banner is cosmetic. Then repeat the test after clicking "Reject all": nothing that needs consent should fire there either.

A banner is only a window. What matters is what happens behind it. This guide gives you a repeatable test, then the most common reasons a tag fires anyway.

What exactly are you testing?

You are testing three states, and a banner can pass one while failing another.

  • Before any choice. The visitor lands, sees the banner and does nothing. No tag that needs consent may run. The CNIL is explicit that continuing to browse is not consent and that a tracker needing consent must not be set before a positive action.
  • After "Reject all". The refusal must be respected on the page where it is clicked and on the next pages. The same CNIL page says that refusing must be as simple as accepting, so the button has to exist and has to work.
  • After "Accept all". The tags you expect should now fire. This is the state people forget: a banner that blocks everything forever is also broken, because your ads and analytics stop working.

Write down which tags you expect in each state before you start. Without that list, you will not know what a leak looks like.

How do you run the DevTools test?

Use a private window or a fresh browser profile, so no earlier consent choice is stored. Extensions such as ad blockers also change what you see, so keep them off for this test.

  1. Open the site's home page, then open DevTools with F12 or right-click and Inspect.
  2. Go to the Network panel and tick Preserve log, so requests are kept across page loads.
  3. Reload the page. Do not touch the banner.
  4. In the Network filter box, search for the domains you care about: google-analytics, googletagmanager, doubleclick, facebook, connect.facebook.net, linkedin, tiktok, hotjar. Any result you expect to be behind consent is a leak.
  5. Open the Application panel, go to Storage, then Cookies, and select your origin. The cookies pane lists every cookie with its name, value, domain and expiry. Look at the third-party origins in the same list. Cookies such as _ga, _fbp, _gcl_au or _gid at this stage are a problem.
  6. Check Local storage and Session storage too, in the same Application panel. Some tools keep an identifier there instead of in a cookie, and that identifier counts as much as a cookie does.

Note that a script file loading is not the same as a tag firing. The request that matters is the one that sends data, such as a collect call or a pixel hit. Still, a marketing script that loads before consent is a warning sign, because it is one misconfiguration away from sending something.

Now clear everything (Application, Storage, "Clear site data"), reload, click "Reject all", and repeat steps 4 to 6. Do it a third time with "Accept all" to confirm the tags you want do fire.

Where do tags leak most often?

When the test fails, the cause is usually one of these.

  • A script pasted straight into the page. A Meta Pixel, a Google tag or a chat widget placed in the theme or in a header field runs on every load. The banner never sees it. Search your page source for fbq(, gtag( and googletagmanager.com.
  • A tag manager container with no consent rules. In Google Tag Manager, tags fire on triggers. If a tag has an All Pages trigger and no consent check, it fires whatever the banner says.
  • Consent defaults set too late. Google's documentation says the website must set the default consent state before any tags or other code uses or updates consent. In Tag Manager, the tag that sets defaults should fire on the Consent Initialization trigger, which always fires before every other tag. Put it on a normal page view trigger and some tags win the race.
  • A plugin or app that adds its own pixel. Ecommerce platforms and WordPress plugins often inject a pixel next to the one you manage. You block one and the other keeps sending.
  • Consent stored but not read. The banner saves a choice, but the tag never checks it. This shows up as tags firing on the second page after a refusal.
  • Embeds. A YouTube video, a map or a social button loads third-party scripts and sets cookies by itself.

Consent Mode is a separate subject. It tells Google tags what the visitor chose, and it does not replace blocking: if you rely on it, make sure the defaults are set to denied before the tags load, and test the result the same way.

How do you fix a leak once you find it?

Fix the source, not the symptom. Move the script into one place that respects consent: a tag manager with consent checks on every non-essential tag, or a consent tool that holds scripts back until the choice is made. Remove the duplicate pixel from the theme or plugin. Then repeat the three-state test from scratch. A fix is only a fix once the Network panel is quiet before the click.

Keep a small written checklist per site: the tags expected before consent (usually none besides strictly necessary ones), after refusal, and after acceptance. Rerun it after every change to the site, the tag manager or the banner. Leaks come back with the next plugin update.

Where Klickbee fits: its built-in consent banner is free and off by default, with a "Reject all" button as visible as "Accept all". It gates the ad pixels you add inside Klickbee (Meta, Google Ads, LinkedIn, custom code). It does not control scripts you pasted elsewhere, so the test above still applies to the rest of your site. Klickbee's own measurement is cookieless. If you want to see how the banner behaves, the help page on the consent banner explains the settings, and the cookie banner feature page gives the overview. For a full compliance review, read our CNIL cookie banner checklist.

You can create a free Klickbee account to try the banner on a site and run this test on it.

This article is information, not legal advice.

FAQ

Can I test my cookie banner without DevTools?

Yes, but you will see less. A browser extension that lists cookies shows the cookies, and a scanner can crawl your site and report the trackers it finds. Neither tells you which request sent data and when, which is what the Network panel shows. Use the scanner to find candidates and DevTools to confirm.

Does blocking cookies mean the tags are blocked?

No. A tag can send data with no cookie at all, for example with a pixel request that carries a URL and an identifier. Test the network requests as well as the cookies. A clean cookie list is not proof that nothing was sent.

Should the test be done in a private window?

Yes. A private window or a new browser profile starts with no stored choice and no leftover cookies, so you test what a first-time visitor sees. Turn off ad blockers for the test, otherwise they hide the very requests you are looking for.

How often should I recheck?

After every change to the theme, a plugin, the tag manager container or the banner, and at a regular interval otherwise. New tags are added by marketing and agency teams all the time, and each one is a chance for a leak.

← All articles