Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GTM tag fires in preview but is blocked by consent in live

TRK-116Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Google Tag Manager (GTM) can hold back a tag until the visitor has agreed to a type of cookie. This works through consent settings on the tag and through Consent Mode, where signals such as ad_storage and analytics_storage are set to granted or denied.

When you open Preview, you usually click Accept on the banner. Consent becomes granted, the tag fires and you see a green status. A real visitor may ignore the banner, reject it, or arrive from a region where the default is denied. For them the same tag shows as blocked, or it fires in a limited mode with no cookies.

Why it costs you leads or sales

If the tag stays blocked for people who did accept, your conversions never reach Google Ads, GA4 or Meta. Reports show fewer leads than you really got. Smart bidding then learns from thin data and ad spend gets less efficient. You may pause campaigns that actually work.

Where the conversion gets lost
  1. Ad clickVisitor lands on the page
  2. BannerVisitor accepts, but the update is not sent to GTM
  3. Form submitLead is real
  4. Conversion tagBlocked by consent
  5. Ad platform reportNo conversion recorded

The visitor converts, but consent never reaches granted, so the tag is blocked and the ad platform sees nothing.

Reported vs real leadsExample numbers
Reported vs real leads (example)Real leads: 40 leads per week; Leads reported in ads: 22 leads per week015314022Real leadsLeads reported in adsleads per week

Example: 40 real leads, but only 22 are reported because consent is blocking the tag for the rest.

How to check if your site has it

Find out why the tag is blocked
  1. Open the tag's consent settingsGoogle Tag Manager

    In GTM, open the tag, go to Advanced Settings, then Consent Settings. Note whether it uses built-in checks or Additional Consent Checks and which types are listed, such as ad_storage.

  2. Test in a clean session

    Open a private window, clear cookies, start Preview and connect to your site. Do not click the banner yet. Check whether the tag shows under Tags Fired or Tags Not Fired.

  3. Read the Consent tab

    In Tag Assistant, click the Consent tab on the left. It shows the On-page Default and the On-page Update for each type. Look for values still on denied after you accept.

  4. Repeat after accepting and after rejecting

    Run the journey twice. After Accept, the tag should fire. After Reject, it should stay blocked. Any other result points to the cause.

  5. Check the order of events

    The consent default must be set before the GTM container loads, and the update must happen when the banner is clicked. If the update arrives after the conversion event, the tag has already been skipped.

Common causes and what you see in Tag Assistant
CauseWhat you see
Default is denied and banner never sends an updateConsent tab shows denied after you click Accept
Update fires after the conversion eventTag listed as not fired on the event, fires later on another
Tag requires a consent type the banner does not manageA type such as ad_user_data stays denied
Banner script blocked or slowNo update event appears at all
Preview session already had consent savedWorks for you, fails for new visitors

How to fix it

Fix the consent flow
  1. Set the default before GTM loads

    Add a consent default command above the GTM snippet, or use your banner's GTM template with its tag set to fire on Consent Initialization - All Pages.

  2. Make the banner send an update

    When the visitor clicks Accept, the banner must call gtag('consent','update',...) or push the update through its GTM template. Check your banner's settings for a Google Consent Mode option and turn it on.

  3. Match the tag's consent types to the banner

    If a tag needs ad_storage and ad_user_data, make sure the banner category that visitors accept maps to both of them.

  4. Fire conversion tags after consent is known

    If a tag fires on page load before the banner is answered, add a trigger on the consent update event, or let GTM fire it once consent changes. Built-in consent checks do this for supported Google tags.

  5. Publish and retest

    Submit the workspace, publish, then test in a fresh private window as both an accepting and a rejecting visitor.

Consent default before the 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>
<!-- GTM container snippet goes after this -->
Update consent when the visitor acceptsjavascript
function onAccept() {
  gtag('consent', 'update', {
    'ad_storage': 'granted',
    'ad_user_data': 'granted',
    'ad_personalization': 'granted',
    'analytics_storage': 'granted'
  });
}
Where to make the change
  1. Use a consent template

    Add your banner's Consent Management Platform template from the Template Gallery and set it to fire on Consent Initialization - All Pages.

  2. Review each tag

    Under Advanced Settings, Consent Settings, check that the required types match what the banner grants.

How to confirm it's fixed

Confirmation checks
  • In a fresh private window, the Consent tab shows the default as denied before any click
  • After clicking Accept, the update shows granted for the right types
  • The conversion tag moves to Tags Fired on the real conversion event
  • After clicking Reject, the tag stays blocked
  • The conversion shows up in GA4 Realtime or the Google Ads tag status
  • The same result in both desktop and mobile browsers
Consent flow before and after

Before

  • Default denied, no update after Accept
  • Tag blocked for most visitors
  • Conversions missing in ad reports

After

  • Default set before GTM loads
  • Update sent when the visitor accepts
  • Tag fires for accepting visitors only
How consent blocks the tag

The tag waits for consent. If the update never arrives, it never fires.

Try consent on and offInteractive
Consent denied

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

Ad and analytics tags are blocked, so the conversion is not reported.

Toggle to see which tags fire in each consent state.

How to prevent it happening again

Habits that keep consent working
  • Test in a fresh private window, never only in your usual browser
  • Retest after changing the banner, theme or GTM container
  • Document which consent types each tag requires
  • Keep the default consent script above the GTM snippet
  • Check the Consent tab in Tag Assistant whenever you add a new tag
  • Schedule an automated check of the accepted-consent journey

How FunnelGuard handles this

FunnelGuard detects this today. It runs a consent variant of your journey: a robot visitor goes through the real steps and checks whether the tracking hits to GA4, Google Ads, Meta and other platforms are sent in that consent state. If an expected hit is missing, the failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause.

Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. It never bypasses CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why does my GTM tag fire in Preview but not on the live site?

Preview usually runs in your own browser where you have accepted cookies, so consent is granted. Real visitors often have consent denied or unset, so GTM blocks tags that require it. Test in a fresh private window and read the Consent tab in Tag Assistant.

Why is my Google Tag Manager tag blocked by consent?

The tag has consent settings that need a type such as ad_storage to be granted, and the visitor's state is denied. This happens when the default is denied and the banner never sends an update, or sends it after the event.

How do I check consent state in GTM?

Start Preview, connect to your site and open the Consent tab in Tag Assistant. It lists the on-page default and update for each consent type, so you can see whether it changes from denied to granted after you accept.

Does consent mode stop all tags from firing?

No. It controls tags that have consent settings. Tags with required consent types wait until those are granted, while some Google tags can still send cookieless signals when consent is denied. Behaviour depends on each tag's setup.

Why do I see fewer conversions in Google Ads after adding a cookie banner?

Visitors who reject cookies are no longer tracked as before, and a faulty banner can block tags for people who did accept. Check that the update call works and that tag consent types match the banner categories.

Where should the consent default script go?

Place it before the GTM container snippet in the page head, or fire your banner's template on Consent Initialization - All Pages. This makes sure the default exists before any tag is evaluated.

Can FunnelGuard tell me if consent is blocking my tags?

Yes. It runs a consent variant of your journey and checks whether the expected tracking hits are sent. A missing hit triggers a second-region recheck and then one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: consent 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.