How to Export Your Google Tag Manager (GTM) Container
If you want to back up your setup, share it with a teammate, or run an audit in a tool like GTM Scanner, the first step is exporting your Google Tag Manager (GTM) container. Here’s how you can do it in just a few clicks.
Step 1: Log in to GTM
- Go to tagmanager.google.com.
- Choose the Account and Container you want to export.
Step 2: Navigate to the Admin Section
- In the left-hand menu, click Admin.
- Under the Container column, click Export Container.
Step 3: Choose the Version
You’ll have two main options:
- Latest Version – Exports the last published version of your container.
- Workspace – Exports the current draft, including any unpublished changes.
Choose the one that fits your needs.
Step 4: Download the JSON File
- Once you choose the version, GTM will generate a
.jsonfile. - Save it to your computer — this is your container export.
Step 5: Use the Export
- You can import it back into GTM (as a new container or workspace).
- Or, you can upload it to auditing tools (like GA Auditor) to check for errors, unused tags, missing consent, and more.
Pro Tips
- Always name and date your export files so you can track versions.
- If you’re sharing with others, remember the file contains all tags, triggers, and variables, so handle it securely.
- For audits, exporting the workspace is usually best, since it includes your latest edits.