A familiar story: the new website goes live, everyone is happy, and three weeks later someone asks why conversions dropped by half. Nothing was "changed in GTM", yet tracking broke. Here is why that happens and how to prevent it.
GTM depends on things it doesn't control
Tags in Google Tag Manager rarely fire on their own. They depend on triggers, and triggers depend on things the website provides: CSS classes, element IDs, page URLs, form behaviour and dataLayer events. When developers change the site, they change those inputs, usually without knowing GTM relies on them.
The six usual culprits
1. Click triggers built on CSS classes
A trigger like "Click Classes contains btn-primary" works until a redesign renames the class to button--main. Classes are for styling and change often. Prefer a dedicated attribute such as data-track="signup-cta", which designers have no reason to touch.
2. Form triggers that never see a submit
GTM's built-in form trigger listens for a browser submit event. Many modern forms send data in the background and never fire one. After a rebuild, the form still works for users, but the trigger goes silent. The fix is a dataLayer push on successful submission.
3. URL-based triggers
"Page path equals /thank-you" breaks when the new site uses /thanks/, adds a trailing slash or adds a language prefix like /en/. Use "contains" or a regular expression carefully, or better, fire on an event instead of a URL.
4. Single-page app navigation
If the new site is built with React, Vue or similar, pages may change without a real page load. Page-view tags fire once and then never again. You need a history-change trigger or, preferably, a virtual page-view event from the app.
5. Renamed or reshaped dataLayer events
A developer refactors the checkout and changes purchase to order_complete, or moves value inside a nested object. GTM variables now return undefined, and tags fire with empty values, which is worse than not firing because it looks fine at a glance.
6. Consent changes
A new cookie banner or a changed consent setup can block tags for most visitors. The data doesn't break, it just shrinks, which is easy to mistake for a real drop in traffic.
A release checklist for tracking
Add this to every release that touches templates, forms, navigation or checkout:
- Before: share a list of tracked elements and events with the developers (data attributes, dataLayer events, key URLs).
- On staging: run GTM Preview through the key journeys: landing page, lead form, sign-up, checkout.
- Check values, not only firing: open each event's data and look for
undefined, empty strings or text where numbers should be. - After launch: watch GA4 real-time and DebugView for the first hour. Compare key events with the same day last week.
- Next day: compare conversions and key events with the previous week. A drop of more than 20–30% with no business reason deserves a look.
Or let a script watch for you
Manual checks work, but they rely on someone remembering. I built a GTM health monitor that scans key pages on a schedule, compares dataLayer pushes with the last good run and sends an alert naming the tags at risk. Even a simple version of this, running once a day, catches most problems before they reach a report.
