Webclat / GTM Practice

Tag Manager QA

Twenty-one Google Tag Manager and conversion-tracking problems, answered the way we would answer them for a client: the fix, exactly, and how to prove in Preview, the Network tab, or DebugView that it actually worked - not just that it looks right.

Firing, events & the data layer

GTM's preview shows my tag firing, so why does the event never show up in GA4?

GTM Preview only confirms your tag executed, not that GA4 accepted the hit. Here is how to check the real network request, fix a missing Configuration Tag link, and verify in DebugView.

Why does my GTM dataLayer variable read as undefined even though I pushed a value before the tag fires?

A Data Layer Variable only sees what is in dataLayer at the moment its trigger evaluates. Here is why async pushes race ahead of page-level triggers, and how to fix it with a dedicated custom event.

Why do I get "dataLayer is not defined" even though the GTM snippet is on the page?

This ReferenceError means code elsewhere on the page reads dataLayer before GTM's bootstrap line creates it. Here is the defensive pattern that eliminates the load-order dependency entirely.

Why won't GTM's preview/debug mode connect, or why does it show no tags firing?

Preview mode fails when a redirect or SPA router strips its debug query parameters, or a CSP/ad blocker blocks the Tag Assistant handshake. Here is how to tell the causes apart and fix each.

Why does gtm.js return a 404 - wrong container ID, blocked request, or something else?

A genuine 404 and a blocked request look similar but need different fixes. Here is how to tell them apart in the Network tab and correct a mistyped or deleted container ID.

Can I run two GTM containers on the same domain, and how do I stop them from conflicting?

Multiple containers do not conflict at the platform level - the real risk is both firing the same downstream tag. Here is how to audit for duplicate destinations and dataLayer key collisions.

Triggers, clicks & SPA routing

CSP & page speed

Ecommerce & conversion tags

Facebook / Meta Pixel

Server-side GTM & custom templates

Not seeing your exact problem?

Tell us what GTM Preview and the Network tab are actually showing. We trace containers for a living and can usually place the cause fast.

Ask a GTM Engineer