Contents
- Export your container from GTM, drop the file into the free GTM audit tool, and get every tag, trigger, and variable in one table.
- Each element shows what it depends on and what uses it, so you know what breaks before you delete something.
- Add a note next to any element. Notes are included when you export to CSV, JSON, or HTML.
- The file never leaves your browser, so you can use it on client containers.
Why document a GTM container
A container that has been live for a few years collects tags nobody remembers adding. Someone set up a test, an agency added a pixel, a campaign ended. The tags stay.
Then one of these happens:
- A handover. A new analyst, a new agency, or a client taking tracking in-house needs to know what’s there and why.
- A cleanup. You want to delete the old tags, but you don’t know which variables and triggers other tags still use.
- An audit. Legal asks which tags load marketing pixels and whether they wait for consent.
GTM shows each tag, trigger, and variable on its own page. It doesn’t give you the full picture in one document, and that is what each of these situations needs.
What good GTM documentation includes
For every element in the container, you want to know:
| Column | What it answers |
|---|---|
| Name | What is it called in GTM? |
| Kind | Is it a tag, a trigger, or a variable? |
| Type | GA4 event, Custom HTML, Click trigger, Data Layer variable… |
| Status | Is it active, paused, or not used by anything? |
| Depends on | Which triggers and variables does this tag need? |
| Used by | Which tags use this trigger or variable? |
| Notes | Why it exists, who asked for it, when it can go. |
The first six columns come from the container itself. Only the last one needs a person. You can use the table as a template in a spreadsheet, or let the tool below fill in the first six for you.
Document your container step by step
Export the container from GTM
In Google Tag Manager, open Admin and click Export Container. Pick the published version to document what’s live, or a workspace to include changes you haven’t published yet. Click Export and GTM downloads a JSON file.
If you don’t see Export Container, ask whoever manages the container to send you the file.
Open the file in the free GTM audit tool
Go to the GTM audit and documentation tool and drag the JSON file in. You don’t need an account or an email.
The file is read in your browser and isn’t uploaded anywhere.
Check the overview
The top of the page counts your tags, triggers, and variables, and shows how many are paused or unused. In the container above, 24 of the 41 triggers aren’t used by any tag. That’s a cleanup you can do today.
The Unused tab lists each of them, with the reason it was flagged.
Open the documentation and add notes
The Documentation tab is the table from the section above, filled in for your container. Click any element to see what it depends on and what uses it. View full graph shows the whole container as a map.
Add a note next to anything that needs context: the campaign a pixel belongs to, the person who asked for a tag, or the date it can be removed.
Export and share
Export the documentation in the format that fits:
- CSV to open in Google Sheets or Excel.
- HTML for a single file with links between elements. Send it to a client or keep it with the project.
- JSON if you want to store it in version control or process it further.
Your notes are included in every format.
While you’re there, the Audit tab lists configuration problems in the same container, like tags with no consent settings or more than one GA4 configuration tag.
Keep it up to date
Documentation is only useful while it matches the container. A few habits help:
- Export again after each publish that adds or removes tags. The tool keeps your last five containers in your browser, with their notes, under Recent. When you open a newer export of the same container, it tells you what changed since the last one.
- Compare two versions with the free GTM diff tool to see what a publish added, removed, or changed.
- Write a version name and description every time you publish in GTM. It’s the cheapest documentation there is.
- Use a naming convention, like
GA4 - Event - purchaseorMeta - Purchase, so the list is readable without opening each tag.
What documentation can’t tell you
Documentation describes what the container is set up to do. It can’t tell you whether the tags actually fire on your site, or whether they send the right values. A purchase tag can look right in the export and still send value: 0 after a checkout change.
To check that, AssertionHub records the journeys that matter, like a checkout or a sign-up, and checks every event on every step. You can link a journey to your container so it runs after every GTM publish, and you get an email or a Slack message if the new version broke something.
Create a free account to record your first journey.
Frequently Asked Questions
Is there a template for GTM documentation?
Does GTM have built-in documentation?
Is my container uploaded when I use the tool?
Which version of the container should I export?
How often should I update GTM documentation?
Does documentation show whether my tags work?
Written by
Ivan MaddalunoAnalytics developer and co-founder of BeluaCode and AssertionHub. Works on tracking setups, tag management and tracking QA.