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.
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.
- Visit pageCookie banner shown
- Decline cookiesConsent denied
- Submit formLead is real
- GA4 eventTag blocked, no hit sent
- Reports and adsLead missing
A visitor who declines cookies submits the form, but the GA4 tag never runs.
The banner is declined and the GA4 tag is held back completely.
How to check if your site has it
Open a clean session
Use a private window with no saved cookies so the banner appears.
Open DevTools
Go to the Network tab and filter by
collectorg/collect.Decline all cookies
Click the reject or decline button on the banner.
Complete the action
Submit the form or click the button that should send the event.
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
gcsparameter showing a denied state (for exampleG100).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.
<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>gtag('consent', 'update', {
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted',
analytics_storage: 'granted'
});Enable consent overview
Admin > Container Settings > tick Enable consent overview.
Use your CMP template
Install your banner's Consent Mode template from the Template Gallery so defaults are set on the Consent Initialization trigger.
Remove blocking triggers
On the GA4 config and event tags, remove custom triggers or exceptions that require a banner 'accepted' event.
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.
Check your consent plugin
In your banner plugin, enable its Google Consent Mode option and set defaults to denied.
Stop script blocking of Google tags
If the plugin blocks gtag.js or GTM entirely until acceptance, change that setting so Google tags load and follow Consent Mode.
Check GA4 plugins
If a plugin like Site Kit or a tracking plugin adds GA4, make sure it loads after the default consent code.
Use Customer Privacy settings
Settings > Customer privacy. Configure the banner and regions. The Google & YouTube app and Shopify's customer events respect these settings.
Check custom pixels
Settings > Customer events. Review the consent requirement on each custom pixel running GA4 code.
Add the default consent code
Project Settings > Custom code > Head code. Paste the default consent script above the GTM or gtag snippet.
Wire your banner
Make your banner tool call the consent update when the visitor chooses.
Order the scripts
Put the default consent call first in the head, then the Google tag.
Remove conditional loading
Do not wrap the Google tag in an if that checks for acceptance. Call the update on choice instead.
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: 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
- In a clean private window, decline cookies and submit the form
- The Network tab shows a collect request to Google Analytics
- The request's
gcsvalue shows a denied state, not granted - No
_gacookie 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
- 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.
Related issues
- TRK-043generate_lead not sent on form submitFix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-062Click events for WhatsApp / call not trackedFix guide
- TRK-065Booking confirmation event missing after Calendly/Cal.com bookingFix guide
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide
- TRK-044generate_lead fires on page load instead of submitFix guide