Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 event only fires when consent is granted: how to fix it

TRK-070Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A cookie banner asks visitors for consent. Some sites handle a "no" by blocking the GA4 tag completely. The event then fires only in the consent granted case and sends nothing in the consent denied case.

Google's Consent Mode is built for this. Tags still load, read the consent state, and adjust. With analytics consent denied, GA4 can send cookieless pings that carry no identifiers. Google uses them for modelled data in reports where eligible. If your tags are blocked outright, none of that can happen.

Why it costs you leads or sales

Every visitor who declines is missing from your GA4 conversion counts. Reports show fewer leads than you really get. Ad platforms that depend on those conversions get less data to optimise on, and your cost per lead looks worse than it is.

The gap is worst where many people decline, such as the EU and UK. If acceptance rates change after a banner redesign, your numbers swing, and you may blame the campaign instead.

Leads seen by GA4 vs real leadsExample numbers
Leads seen by GA4 vs real leads (example)Real leads: 100 leads; GA4, tags blocked on denial: 55 leads; GA4, Consent Mode set up (observed only): 55 leads038771005555Real leadsGA4, tags blocked on …GA4, Consent Mode set…leads

Example: 100 real leads in a week, 55 visitors accept cookies. With tags blocked on denial, GA4 sees 55. With Consent Mode set up, reports can include modelled data for the rest.

Where the event gets lost
  1. Visit pageCookie banner shown
  2. Decline cookiesConsent denied
  3. Submit formLead is real
  4. GA4 eventTag blocked, no hit sent
  5. Reports and adsLead missing

A visitor who declines cookies submits the form, but the GA4 tag never runs.

Consent denied blocks the tag

The banner is declined and the GA4 tag is held back completely.

How to check if your site has it

Test the denied state yourself
  1. Open a clean session

    Use a private window with no saved cookies so the banner appears.

  2. Open DevTools

    Go to the Network tab and filter by collect or g/collect.

  3. Decline all cookies

    Click the reject or decline button on the banner.

  4. Complete the action

    Submit the form or click the button that should send the event.

  5. Compare with accepting

    Repeat after accepting. If requests appear only when accepted, the tag is blocked on denial. With Consent Mode, denied requests can still show, with the gcs parameter showing a denied state (for example G100).

  6. Try Tag AssistantGoogle Tag Manager

    In Google Tag Manager Preview, open the event and check the Consent tab and whether the GA4 tag shows as Fired or Not fired.

How to fix it

The idea: set default consent to denied before any tag runs, update it when the visitor chooses, and make sure the GA4 tags are not blocked by extra triggers or exceptions tied to the banner.

Default consent state, placed before the Google tag or GTM snippethtml
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied',
  wait_for_update: 500
});
</script>
Update consent when the visitor accepts (call from your banner callback)javascript
gtag('consent', 'update', {
  ad_storage: 'granted',
  ad_user_data: 'granted',
  ad_personalization: 'granted',
  analytics_storage: 'granted'
});
Fix by platform
  1. Enable consent overview

    Admin > Container Settings > tick Enable consent overview.

  2. Use your CMP template

    Install your banner's Consent Mode template from the Template Gallery so defaults are set on the Consent Initialization trigger.

  3. Remove blocking triggers

    On the GA4 config and event tags, remove custom triggers or exceptions that require a banner 'accepted' event.

  4. Check built-in consent

    Open each tag > Advanced Settings > Consent Settings. GA4 tags normally need analytics_storage. Let them fire and let Consent Mode handle the state.

Tag behaviour on denial

Before

  • GA4 tag waits for an accepted event
  • Declined visitors send no hits
  • Conversions only counted for accepters

After

  • Defaults set to denied before tags load
  • GA4 tag loads and respects consent state
  • Cookieless pings sent when denied (advanced mode)
Consent denied: what fires?Interactive
Tags blocked when consent is denied

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

Visitor declines, no GA4 event is sent, and the lead is missing from reports.

Toggle to compare blocking tags with using Consent Mode.

How to confirm it's fixed

Confirmation checks
  • In a clean private window, decline cookies and submit the form
  • The Network tab shows a collect request to Google Analytics
  • The request's gcs value shows a denied state, not granted
  • No _ga cookie is set while consent is denied
  • After accepting, the request shows a granted state and cookies are set
  • GTM Preview shows the GA4 tag fired in both states

Give GA4 reports a day or two. Modelled data needs enough volume and is not shown for every property.

How to prevent it happening again

Prevention
  • Test both accepted and denied states after every banner, theme or GTM change
  • Keep default consent code first in the head
  • Document which consent mode (basic or advanced) you chose and why
  • Review tag consent settings when adding a new tag
  • Re-test after changing your consent plugin or its version

How FunnelGuard handles this

FunnelGuard detects this today. Its robot visitor runs your journey in a consent-denied variant, declining the banner, and checks which tracking hits are sent to GA4 and other platforms at each step. If the event appears when consent is granted but no hit goes out when denied, you get one alert with a screenshot and a likely cause, after a re-check from a second region.

It tells you what was sent, not whether your chosen consent setup is legally right. That stays your decision. Test traffic is marked with utm_source=funnelguard and fg_test=1, and FunnelGuard never bypasses bot protection. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

Why is my GA4 event only firing when cookies are accepted?

Your GA4 tag is most likely blocked until the visitor accepts, through a GTM trigger, a banner plugin or conditional script loading. Set default consent to denied before the tag loads, let the tag load, and update consent when the visitor chooses.

Does GA4 track users who decline cookies?

Not by default. With Consent Mode in advanced mode, GA4 can send cookieless pings without identifiers when analytics storage is denied. Google may use them for modelled data. With basic mode or blocked tags, nothing is sent.

What is the difference between basic and advanced Consent Mode?

In basic mode, Google tags do not load until the visitor consents, so nothing is sent when denied. In advanced mode, tags load with a denied default and send cookieless pings. Advanced gives you more signal for modelling.

How do I test GA4 with consent denied?

Open a private window, decline the banner, open DevTools Network and filter by collect, then trigger the event. Check whether a request is sent and look at the gcs parameter. You can also use GTM Preview's Consent tab.

Is it legal to send GA4 pings when consent is denied?

That depends on your region, your policy and your legal advice. Consent Mode lets you control whether cookies and identifiers are used. Ask your legal adviser which mode suits you before changing it.

Why do my GA4 conversions drop after adding a cookie banner?

The banner probably blocks the GA4 tag for visitors who decline or ignore it, so their conversions are never recorded. Configure Consent Mode so tags load in a denied state, and compare counts before and after.

Will fixing this make GA4 numbers match my CRM?

It should narrow the gap but not close it fully. Declined visitors send only cookieless pings, and modelled data is an estimate. Keep using your CRM as the source of truth for lead counts.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: consent-denied variant.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.