
In short
Seven Google Tag Manager mistakes break tracking most often: leaving hardcoded snippets, not publishing the container, triggers built on unstable attributes, Custom HTML without conditional checks, dataLayer values pushed after the tag fires, skipping Preview and real-time checks, and a missing container snippet. Each comes with the best practice that prevents it.
Contents8 sections
Google Tag Manager (GTM) lets you track the user journey and build reliable reporting without a developer for every change. It is a central tag management system for websites and mobile apps that deploys tracking codes and shares data with platforms such as Google Analytics, Google Ads, SA360, Meta and Snapchat.
However, during GTM implementation, some key features may be overlooked or underutilised, which can lead to tracking issues or inefficient setups. Many businesses encounter common mistakes during the GTM setup process that compromise the accuracy and effectiveness of their tagging strategy.
Below are seven common GTM setup mistakes and the best practice that prevents each one.
1. Leaving hardcoded snippets on the page
Leaving hardcoded tracking snippets on your site and also setting up the same tracking tags via GTM can result in double-counted metrics and inaccurate data, such as duplicate transactions in GA4.

Best Practice: Always remove any hardcoded tracking snippets from your site when migrating those tags into GTM. This avoids duplication, ensures clean and accurate tracking, and consolidates all tag management in a single, manageable platform.
Centralizing tracking through GTM not only reduces clutter but also makes troubleshooting, updates, and tag governance significantly easier.
2. Not publishing the GTM container
If you do not publish the GTM container after changes, the site keeps running the outdated version, which causes tracking issues and data discrepancies.
Best Practice: Always publish the GTM container after making changes and verify that the latest version is live. This ensures your updates are properly deployed and your tracking remains accurate and up to date.
Publishing regularly maintains data integrity and avoids confusion caused by outdated setups still being used in the live environment.

3. Using unstable attributes in triggers
Using non-specific or frequently changing classes, IDs, or elements can lead to configuration breakages.

Best Practice: Always use stable and descriptive attributes (like unique IDs, persistent class names, or data attributes) when configuring triggers. This ensures your setup remains reliable and continues to function correctly even after website updates or design changes.

4. Skipping conditional checks in Custom HTML tags
Failing to implement conditional validation can break your HTML code and trigger errors in the browser console, potentially affecting site functionality and user experience.

Best Practice: Always apply conditional validation when inserting tags or running scripts that depend on specific elements or values. This ensures your code runs only when the required conditions are met, preserving HTML integrity and avoiding unnecessary console errors.
Implementing validation improves the reliability of your tags and reduces the chances of front-end disruptions due to unexpected conditions.

5. Pushing dataLayer values after the tag fires
If the dataLayer push that carries the event data happens after the tag has already fired, the tag sends empty or missing values and the event captures no useful data.
Best Practice: Make sure dataLayer.push() happens before the tag fires, for example by firing the tag on the custom event pushed together with the data. The tag then has all the event information it needs when it runs.
Proper sequencing of dataLayer.push() and tag firing is critical for reliable tracking and accurate data collection.
6. Not checking Preview mode and real-time reports
Neglecting to check real-time reports can lead to missed errors and data discrepancies in your tracking setup.
Best Practice: After making any changes in GTM, always validate tag firing in GTM Preview mode (see these analytics debugging tools) and verify data flow in GA4’s real-time reports. This ensures your setup is functioning as expected and helps catch issues early, before they impact business reporting or campaign performance.

7. Not installing the GTM container snippet
You can configure every tag, but if the GTM container snippet is not on the website, nothing fires and the whole setup does nothing.
Best Practice: Always verify that the GTM container snippet is correctly installed and loaded in both the <head> and <body> sections of your website before starting any tag implementation.
This ensures that GTM can execute your configured tags and triggers properly, avoiding wasted time and data loss.

Conclusion
By proactively addressing these common issues and applying the recommended best practices, you can significantly enhance the efficiency and reliability of your Google Tag Manager setup. This leads to more accurate and consistent data tracking across your website, reduces the risk of errors or data loss, and simplifies long-term tag management.
