When a consent banner breaks your tracking, and how to tell

A badly set up cookie banner can stop your pixels firing for everyone. How to test consent behaviour and fix the common setup mistakes.

T The CROMagnet team, Store audit research 2 min read Updated

Consent banners exist to stop tracking until a visitor agrees to it, where the law requires that. A banner that fails in either direction causes trouble. If it blocks tracking for everyone, you lose data. If it blocks nothing, you may be collecting data you have no right to.

This is a technical test, not legal advice. Ask a qualified person about the rules that apply to your customers.

The three states to test

Open your store in a private window with the browser's network tab open, and check three situations.

1. Before the visitor makes a choice

Reload the page and do not click the banner. Filter the network list for your analytics and advertising domains: Google Analytics, Meta, TikTok and so on. If your policy says these need consent, nothing should be sent yet.

If requests are going out already, the banner is decoration. The scripts are loading regardless of what the visitor chooses.

2. After accepting

Click accept and reload. The requests should now appear. If they do not, your tags are not listening for the consent signal, or the consent choice is not being saved. Visitors who agreed are being ignored.

3. After declining

Clear cookies, reload, and decline. The tracking requests should stay quiet. If they come back, decline has no effect.

Common setup mistakes

  • Tags added directly in the theme. A pixel pasted into theme files runs whatever the banner says. It has to be loaded through the banner's tool, Google Tag Manager with consent settings, or the platform's built-in customer privacy setting.
  • Consent Mode not configured. Google's Consent Mode needs default settings declared before the tags load, and an update when the visitor chooses. Without that order, the signal arrives too late.
  • Two banners. Apps and themes sometimes add their own. Visitors see two, and each controls something different.
  • The choice does not persist. If the banner re-asks on every page, people decline just to make it go away.

What the data will look like

After a correct setup, expect fewer visitors in analytics than before, since some people decline. That drop is the true picture. Plan for it by comparing your analytics to order counts, as described in our piece on mismatched GA4 purchases.

When to re-test

Re-test after theme updates, after installing a marketing app, and after changing your banner settings. Any of them can quietly change when a script loads.

Check your own store

Run the audit on your store

200+ checks in under two minutes. Free, no signup.