What You'll Learn
Why Every GTM Container Needs Regular Audits
Whether you're taking over a new client's tracking strategy or performing cleanup for your legal team, auditing GTM containers is a critical step for any analytics professional. Yet most audits I've seen follow an ad-hoc approach that misses critical issues.
This guide shares the systematic 10-step framework I've developed through hundreds of client audits. The order follows a logical progression: validating the foundation first, then moving to strategic and architectural questions.
Real-World Impact
I once worked with a client who dismissed our privacy audit report, claiming it wasn't a priority. Two weeks later, they received a fine for the exact breaches we had identified. The cost of the audit? €2,000. The fine? €25,000.
What Makes This Guide Different
- ✓ Practitioner-tested: Based on 100+ real client audits, not theoretical knowledge
- ✓ Privacy-first approach: GDPR compliance integrated throughout, not as an afterthought
- ✓ Actionable framework: Specific steps you can implement immediately
- ✓ Automation opportunities: How to streamline repetitive audit tasks
Own the Tagging Plan
You can't build a house without a plan, and the same goes for any tracking project. Whether you need to identify relevant events with the marketing team or work from an existing tagging plan, having this documentation is mandatory.
You may want to challenge the plan from the start—ensure event naming follows a clear taxonomy (same with page names) and that obvious events (like purchases for an e-commerce store) aren't missing. Building a tagging plan isn't a one-time task but rather a continuous process where you'll leverage insights from your analysis to enrich or remove events.
Key tagging plan elements
- • Event taxonomy: Consistent naming conventions across all events
- • KPI alignment: Every tracked event should support specific business KPIs
- • Data layer specifications: Expected variables and their possible values
- • Trigger locations: Where each event should fire on your site
A common behavior is trying to track everything under the sun. It's your job to ensure only relevant, actionable events get tracked. There's a cost to tracking—mainly in site performance and potential data leaks—so stay lean. An easy compass for deciding what's worth tracking: establish a list of KPIs with business and marketing teams, then ensure all KPIs are materialized in your tagging plan. If not, remvove. If in doubt, remember the saying: when in doubts, there's no doubts. Simply ditch it and move forward.
Warning: Tracking clicks rarely makes sense, and every event must be analyzable later. There's no point tracking events if you don't know how you'll analyze them.
Verify GTM Loads on Every Page
When performing audits, validate the simplest assumptions first. While it should be obvious that the container is present (developers usually implement it in a component injected on every page), I've experienced this issue numerous times in my career.
How to Check GTM Coverage
- 1. Compare analytics data with CMS pages: If you spot missing pages in your reports, GTM likely isn't present everywhere
- 2. Use browser network tab: Check for GTM requests on suspected pages
- 3. Search your analytics for page path gaps: Look for content you know exists but isn't appearing in reports
If you find missing pages, reach out to your development team with the specific faulty pages so they can fix them quickly.
Audit DataLayer Implementation
Any tracking project should have a tagging plan that lists all tracked interactions, conversions, and dataLayer values. Ideally, it should give you hints about where those events occur, with associated expected dataLayer variables and their possible values.
A simple way to check this: build custom reports in your analytics tool to list received values for each dataLayer variable. By comparing received variables with your tagging plan guidelines, you can spot inconsistencies and filter by interaction or page to identify where fixes are needed.
Similarly, dataLayer variables can be implemented on the site but not in Google Tag Manager. Cross-check that every expected variable is correctly mapped to the appropriate events in your container setup.
Pro Tip
Use your browser's console to check dataLayer content: type dataLayer
and inspect the pushed events. This gives you real-time insight into what's being tracked.
Validate Trigger Configuration
Now that you've verified GTM is present everywhere and the expected context is ready to be sent alongside your defined events, ensure your triggers are correctly configured. The tagging plan is your friend here—make sure your triggers reflect what's documented.
Common Trigger Issues to Check
- • Overly broad triggers: Firing on unintended pages or elements
- • Missing conditions: Triggers that should have additional filters
- • Timing issues: DOM-ready vs. window-loaded timing problems
- • Conflicting triggers: Multiple triggers firing for the same event
Challenge Every Tag Present
We've discussed the performance impact of heavy containers. It's a real threat to your performance, affecting not just PageSpeed Insights scores—page performance positively correlates with SEO ranking and conversion rate. You don't want to undermine your SEO team's efforts because of useless tags.
Vendors present in your GTM containers should serve a business objective. I've seen containers with outdated vendors still present even though the company was no longer working with that vendor. Besides, sending user data to vendors you don't have formal agreements with poses high privacy risks. You wouldn't want to get fined for a data breach that could have been avoided by removing tags with two clicks.
Tag Audit Questions
For each tag, ask: "What business objective does this serve?" and "Do we have an active agreement with this vendor?" If the marketing team can't answer, well you know what to do.
Comprehensive Privacy Compliance Check
For some companies, privacy is an afterthought. They think they'll never get fined because they're too small. The reality is that it's a gamble—huge companies like Meta and American Airlines have been fined for data leaks, but smaller ones too.
The Risk Is Real
A medium-sized e-commerce client dismissed our privacy audit report, claiming it wasn't a priority. Two weeks later, they received fines for the exact breaches we had identified. Don't let this be you.
Privacy Audit Steps
1. Consent Management Platform (CMP) Validation
Check that your CMP loads correctly on every page. Some customers implement their CMP directly in GTM, which seems logical (separation of concerns) but poses an issue: if visitors use ad blockers, GTM gets blocked and your banner won't display.
Best Practice: Implement CMP outside GTM to ensure it loads even when GTM is blocked.
2. CMP Configuration Audit
Ensure the CMP is correctly configured. You'll usually group vendors by consent type: analytics, performance, functional, etc. Your job is to ensure those categories accurately reflect the vendors present on your site (including hardcoded ones).
- • GDPR compliance: Clear, visible buttons letting users reject all cookies
- • Consent symmetry: Making consent withdrawal as easy as granting it
- • Geographic targeting: Different behavior for different jurisdictions
3. Tag Consent Integration
Ensure all tags only fire when their corresponding consent requirement is met. This differs by CMP vendor—some provide GTM templates. But you should understand how your CMP works under the hood.
It's simple: consented categories are usually stored in a cookie. Create a cookie variable in your container and triggers that check for specific categories. I prefer using blocking triggers over trigger groups—they're more modular since you create one blocking trigger per consent category.
Testing Your Setup
Use GTM preview mode to test every consent category. Verify tags fire only when appropriate consent is granted.
4. Detect Hardcoded Tags Outside GTM
Any privacy audit must ensure no rogue tags fire outside GTM. Several approaches:
- Marketing team inventory: Get an updated list of all vendors your teams work with, then compare with GTM vendors
- Code component check: For modern frameworks (Next, SvelteKit, Astro), hardcoded vendors are often grouped in the same component
- Network analysis: The thorough approach—check every page's network tab for vendors firing outside GTM
5. Cookie and Local Storage Audit
Beyond firing tags, pay attention to cookies dropped or values written in localStorage. Build a list of these with associated vendors and corresponding consent requirements.
Pro Tip: Use cookie databases like OneTrust's to identify vendor ownership of specific cookies.
⚠️ Vendor Auto-Tracking Trap
Meta offers "automated tracking" that automatically collects pageviews, clicks, and form entries—potentially including PII like email, names, addresses. When things are easy, there's usually a trap. Retain control of what gets tracked and stay compliant.
Quality Assessment and Testing
Now that the foundation is in place, test that your setup works properly. The best approach: open your browser's network tab and go through each implemented event (potentially every page) to check that tags fire correctly, with the right data attached and to the appropriate destination.
Agency Reality Check
I once met with a renowned agency that tried to put QA burden back on the client because it was "too cumbersome for their team." If you're delegating tracking to an agency, you shouldn't be responsible for the grunt work. If you're the agency—sorry, but QA is part of the job.
Essential QA Checks
- Data format consistency: Page names follow conventions, prices have the same format
- Complete data flow: No missing data or events
- PII prevention: No personal information leakage (privacy threat + potential analytics platform bans)
- Cross-device testing: Verify tracking works on mobile, tablet, desktop
- Analytics validation: Confirm data lands correctly in your tools
Remember: you defined tracking based on KPIs you aim to measure. If you're also the analyst, now's a good time to start building reports and ensure they answer your questions.
Challenge Your Assumptions
Now that you're confident your tracking works correctly, return to the drawing board. Ensure your initial assumptions were correct—that your KPIs and their translation into tracking specifications are actionable and the best way to draw insights on user behavior and marketing performance.
You might find you're missing data to unlock specific insights or, conversely, collecting data that doesn't participate meaningfully in your analysis. Don't hesitate to remove unnecessary tracking—more data is rarely better. Better data is what you should aim for.
Plan Regular Audits for Your Sanity
Audits are tedious, time-consuming, and sometimes offer little immediate reward. Instead of doing everything again in one shot and losing your sanity, perform targeted audits regularly. This could be validating privacy compliance, refreshing tag lists, reviewing cookies...
Recommended Audit Schedule
- • Monthly: Tag inventory and performance impact review
- • Quarterly: Privacy compliance and cookie audit
- • After major releases: DataLayer and trigger validation
- • Annual: Complete comprehensive audit (like this guide)
Another great solution: team up with your development team to implement basic unit testing and checks. This might not always be feasible, but when possible, it prevents the stress of discovering you've been missing a key variable for two weeks because a site change broke your tracking.
Remember: Work smarter, not harder. Even the tiniest integrated check could be just enough to save you from having to recheck every page on a Friday evening.
Make the Audit Actionable
There's nothing more frustrating than spending days or weeks building a detailed audit only to realize nobody's reading it or taking action. It's tempting to stuff everything you can into those reports to showcase your hard work.
Showing fifty pages of audits might feel like a good way to prove your value to immature customers who haven't developed data-driven strategies. They'll like that an audit was performed, even though they won't go through the results.
Elements of an Actionable Audit Report
- Executive Summary: High-level findings and recommendations (1 page max)
- Priority Matrix: Issues categorized by impact and effort to fix
- Clear Action Items: Specific steps with owners and timelines
- Plain English: No jargon, clear risk explanations
- Visual Evidence: Screenshots showing issues and fixes
For mature customers, make audits actionable. Highlight issues and corresponding solutions in plain English, without jargon. Your audience should have a clear picture of risks and a roadmap to address them. Cut through the noise to keep only the signal.
In a rush? Automate your audits today!
What Tagstack can automate:
- • Container scanning - Analyze any GTM setup without needing access
- • Tag inventory - Automatically detect all vendors and technologies
- • Privacy compliance - Identify tracking technologies and consent gaps
- • Monitoring - Automated weekly checks, get alerted if something changes in the container
- • Competitor analysis - Understand what technologies competitors use
Ready to streamline your audits?
Free to try • No GTM access required • No legal complications
Conclusion: Your GTM Audit Toolkit
This 10-step framework will help you approach audits with more confidence and thoroughness. Audits can be scary, but like you would not want to ride your car without revising the enigne regularly, your data vehicle also needs care and checks from times to times to help you and your company take action on the best data possible, safely.
Key Takeaways
- 1 Start with foundations: Verify GTM loads everywhere before diving into complex configurations
- 2 Privacy isn't optional: GDPR compliance should be integrated throughout, not an afterthought
- 3 Quality over quantity: Better data beats more data every time
- 4 Automate when possible: Use tools to streamline repetitive audit tasks
- 5 Make it actionable: The best audit is one that gets implemented
Remember: regular maintenance is easier than comprehensive overhauls. Schedule ongoing audits, collaborate with your development team, and always keep your users' privacy at the forefront of your tracking strategy.