← Blog · Article GTM

How to document your GTM container in five minutes

Turn a GTM container export into a list of every tag, trigger, and variable, with what each one depends on. Free, in your browser, no account.

Published
November 28, 2026
Reading
4 min
Author
Ivan Maddaluno
Topics
GTM Documentation Free Tools
Contents
  1. Why document a GTM container
  2. What good GTM documentation includes
  3. Document your container step by step
  4. Keep it up to date
  5. What documentation can’t tell you
Key Takeaways
  • 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:

ColumnWhat it answers
NameWhat is it called in GTM?
KindIs it a tag, a trigger, or a variable?
TypeGA4 event, Custom HTML, Click trigger, Data Layer variable…
StatusIs it active, paused, or not used by anything?
Depends onWhich triggers and variables does this tag need?
Used byWhich tags use this trigger or variable?
NotesWhy 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

1

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.

2

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.

3

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.

GTM audit tool showing 23 tags, 41 triggers, and 25 variables, with paused and unused counts
4

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.

5

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 - purchase or Meta - 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?
Yes. List every tag, trigger, and variable with its type, status, what it depends on, what uses it, and a notes column. The free GTM audit tool fills in everything except the notes from your container export, and you can download it as a CSV.
Does GTM have built-in documentation?
GTM lets you add a name and description to each version you publish. It doesn't export the whole container as one readable document with dependencies, which is what a handover or an audit needs.
Is my container uploaded when I use the tool?
No. The file is read in your browser and stays on your device. That makes it safe to use on client containers.
Which version of the container should I export?
Export the published version to document what's live on your site. Export a workspace if you also want changes that aren't published yet.
How often should I update GTM documentation?
After every publish that adds or removes tags, and always before a handover or an audit. To see what changed between two exports, use the free GTM diff tool.
Does documentation show whether my tags work?
No. It shows how the container is set up, not what your site sends. To check that events fire with the right values, run an AssertionHub journey after every GTM publish.
Ivan Maddaluno

Written by

Ivan Maddaluno

Analytics developer and co-founder of BeluaCode and AssertionHub. Works on tracking setups, tag management and tracking QA.

Next article → How to Install PostHog with Google Tag Manager - Full guide

More on GTM

← All articles Back to top ↑
Powered by beluacode Logo