Consent and analytics

Cookie banner breaking tracking? What to check first

How to test whether your cookie banner is blocking, delaying or misclassifying analytics data, with a simple check to run before you blame GA4.

Senka Ibrahimpašić and Abhijeet Singh
Shema Studio · · 7 min read

A cookie with a bite taken out of it and two crumbs, in front of a yellow disc

You can tell whether a cookie banner is breaking your tracking by testing each banner choice one at a time and watching what your tags do after each click. If tags stay silent after "Accept", the banner is blocking. If they wake up late or only on the next page, it is delaying. If "Accept analytics" switches on the wrong thing, or nothing at all, it is misclassifying. Only after those three checks pass should you start blaming GA4.

Most owners do it the other way round. The report looks thin on Monday, someone opens GA4, and the week disappears into settings. This post gives you a short, repeatable test that starts at the banner and works forward, so you know where the fault sits before anyone rebuilds anything.

Three ways a banner breaks tracking

A cookie banner has one job in your tracking setup: it tells your tags what the visitor agreed to. When that message goes wrong, it usually goes wrong in one of three ways.

Blocking

The banner never passes on a "yes". The visitor clicks "Accept all", but the tags behave as if nobody answered. GA4 sees far fewer visits than your sales or bookings suggest, and the gap does not close over time. This often happens after a banner plugin update or a site redesign that moved where the banner loads.

Delaying

The "yes" arrives, but too late. The first page view, or the first click on a booking button, happens before the tags hear about consent. You see visits with no source, landing pages that look wrong, and conversions that drift from your ad platform. Google is clear about order here: Google's consent mode setup guide warns that "If your consent code is called out of order, consent defaults won't work."

Misclassifying

The banner sends a message, but the wrong one. Your banner tool sorts cookies into categories such as statistics or marketing, and each category is supposed to switch on a matching Google consent signal. If GA4 sits in the marketing group, visitors who accept analytics but decline marketing vanish from your reports. If ad signals are tied to the statistics box, you may be sending ad data you were never given permission to send. That is a data problem and a compliance problem at the same time.

Start at the banner, not the report

GA4 is the last stop in a chain. Banner, consent signal, tag, then report. When the number at the end looks wrong, the fault can be at any link, and the report cannot tell you which. That is why our analytics and tracking service starts every audit by checking what fires, when it fires, and under which consent state, before touching any GA4 setting.

It also helps to know which kind of consent setup you are running, because it changes what "broken" looks like. In the basic setup, Google tags wait until the visitor answers the banner. In the advanced setup, tags load straight away in a limited state. Google's overview of consent mode puts the advanced behavior plainly: "While consent is denied, the Google tags send cookieless pings." Our post on Consent Mode v2 explained simply walks through the trade-offs of each. For this test, just find out which one you have. Whoever set up the banner can tell you in one sentence.

The side-by-side test

You do not need to read code for this. You need a laptop, a private browser window, and about an hour. Google provides a free checking tool, and Google's Tag Manager help on verifying consent mode says: "You can verify your consent mode implementation on websites with Google Tag Assistant (recommended)."

Run the same short visit four times, each in a fresh private window:

  1. No answer. Land on the home page and ignore the banner. Click to one other page.
  2. Accept all. Land, click "Accept all", then visit the same second page and submit a test form or booking if you have one.
  3. Reject all. Land, click "Reject all", then repeat the same path.
  4. Analytics only. Land, open the banner settings, allow statistics or analytics, decline marketing, and repeat the path.

For each run, Tag Assistant shows a Consent tab for every tag event. Two columns matter: what the page said before the visitor answered, and what it said after. Write down three things per run: did the default appear before any tag fired, did the update appear the moment the visitor clicked, and did the update match the choice they made.

Then read your notes against the three failure types:

  • Update never appears after "Accept all": blocking.
  • Default appears after a tag has already fired, or the update shows up only on the second page: delaying.
  • "Analytics only" switches on ad signals, or leaves analytics off: misclassifying.

Timing is the one people skip, and it is often the real problem. Google's consent debugging guide states: "The website needs to set the default consent state before any tags or other code uses or updates consent." If your notes show a tag firing first, you have found the fault, even if every later step looks fine.

Do not forget your other regions

Many sites show a strict banner to visitors in Europe and a lighter one, or none, elsewhere. That is allowed by design. Google's consent mode setup guide explains that you can set defaults for specific regions and a different default for everyone else. It also means a test from one country only proves one country. If you sell in both the US and Europe, ask a colleague abroad to run the four visits, or use a VPN set to the other region.

Check what GA4 says it received

Once the banner side is clean, look at the receiving end. GA4 has its own view of the consent signals it gets, and it will flag gaps for ads measurement and ads personalization. Google's GA4 help on consent settings tells you where to find it: "In Admin, under Data collection and modification, click Consent settings."

Two cautions. First, this screen is slow to react. Google's GA4 consent settings help also notes: "It may take 48-72 hours for the notifications to update." Fix the banner, then wait a few days before you judge the result. Second, compare GA4 with a number you trust from outside it, such as form submissions in your inbox or bookings in your calendar tool, for the same week. If the banner test passed and the gap between GA4 and those numbers is steady, consent is probably working as intended and the gap is the visitors who said no.

When the banner is not the problem

Sometimes every banner check passes and the numbers still look wrong. That is useful to know, because it saves you from rebuilding a consent setup that works.

Our case study on a GA4 drop that was not consent shows how this plays out. An animal health company in Europe saw tracked GA4 traffic fall 70 to 80 percent after a full Consent Mode v2 rollout, and the first suspect was the new consent gating. All 63 consent-gated tags were checked one by one and documented as correctly configured. The real cause was a misconfiguration in the server-side tracking pipeline, unrelated to consent. No consent rebuild was needed. If your setup sends data through a server container, our post on when server-side tagging is worth it explains what that layer changes.

If you run several sites, the same test has to happen on each one, which is where small differences hide. One fix is to bring them under a single setup, as in our case study on one tracking container for sixteen sites.

What to hand over if you get help

If you pass this to a freelancer, an agency or us, your notes from the test are worth more than a screenshot of a falling chart. Keep them short:

  • Which consent setup you run, basic or advanced, and which banner tool.
  • The four runs, with what the Consent tab showed before and after each click.
  • Which regions you tested from.
  • The outside number you compared GA4 with, and the gap for the same week.
  • What changed on the site around the time the numbers moved: a plugin update, a new theme, a new tag.

For a quick first look before any of this, our free consent scan tool reads a page and reports which Google tags it finds, whether Consent Mode starts as denied for EU visitors, and which banner tool is present. It reads only the page source, so it cannot see what fires before a visitor consents. The four-run test above covers that part.

Get a second pair of eyes on it

If you would rather not spend your week inside Tag Assistant, send us two or three lines about your site and what looks wrong. You get a free automation map back within one working day. Our cost is a fixed price, agreed before you commit, and nothing starts before you say yes. A first price range comes with the free automation map. In an audit we check what fires, when it fires, and under which consent state, then send fixes ranked by impact, so you only change what is actually broken.

Questions about this

Should we switch to a different cookie banner tool if tracking looks broken?

Usually not at first. Most banner problems come from how the tool is set up, such as category mapping or load order, not from the tool itself. Run the four-visit test, fix what it shows, and only consider switching if the tool cannot send the consent signals you need.

How often should we retest our cookie banner?

Retest after any change that touches the banner or tags: a plugin or theme update, a new tag, a redesign, or a new region. Outside those, a quick run every quarter is a sensible habit, because small changes stack up quietly and reports drift without warning.

Does rejecting cookies remove a visitor from GA4 completely?

Not always. It depends on your consent setup. In the basic setup, Google tags wait for an answer, so a visitor who rejects leaves no trace. In the advanced setup, tags send cookieless pings while consent is denied, so GA4 receives limited signals rather than nothing.

Can someone without technical skills run the banner test?

Yes. The test needs a private browser window, the free Google Tag Assistant and careful notes. You click through four visits and record what the Consent tab shows before and after each choice. Reading the cause from those notes is where outside help can save time.

Want this handled instead of read about?

Get your free automation map

Blog

Keep reading

All posts →

Tell us what you still do by hand.

Two or three lines is plenty. Your map comes with a first price range and is yours to keep, whoever builds it.

The first page of an example automation map: the manual work, one recommendation, how it would work, the saving and the timelineThis is what you get back: one page, written for your business.See what a map looks likePDF, 1 page

Rather talk? Book a call on WhatsApp

Senka or Abhijeet reads your message and writes your map. We reply from a real inbox within one working day.

We use your details only to reply, no newsletter. Privacy policy

Your data stays yours: revoke our access any time, never used to train AI models, every run logged.