Objective
To export your Google Tag Manager (GTM) container (tags, triggers, variables, etc.) from one workspace and import it into another GTM container — helpful in sharing setups across teams, clients, or environments (e.g., staging → production).
Part 1: Export a GTM Container
Step 1: Open the Container You Want to Export
- Go to Google Tag Manager
- Select the GTM account and container you want to share
- In the left sidebar, click on “Admin”
Step 2: Export the Container
- In the Container column, click on “Export Container”
- Choose the container version:
- Check Latest workspace changes
- Or choose a specific published version
- Click Export
- A .json file will be downloaded to your computer
This file contains all tags, triggers, variables, and built-in settings.
Part 2: Import a GTM Container into Another Account
Step 3: Open the Target Container
- Go to GTM
- Open the destination GTM container where you want to import the file
- In the left sidebar, click Admin
Step 4: Import the Container
- In the Container column, click “Import Container”
- Click “Choose Container File”
- Select the .json file you previously exported
Step 5: Choose Import Settings
You now have two import options:
| Option | Description |
| Overwrite | Replaced everything in the current workspace with the imported container |
| Merge | Adds the imported tags/triggers/variables without deleting the existing ones |
Recommended: Use Merge to avoid losing current work unless you’re setting up a fresh container.
- GTM will show a summary of what will be added/changed
- Review everything carefully
- Click Confirm
Step 6: Preview & Test
- After importing, go to Workspace
- Use Preview Mode to test all imported tags and triggers
- Verify that everything is firing correctly before publishing
Step 7: Publish Your Imported Container (Optional)
Once everything looks good:
- Click Submit
- Add a version name and description
- Click Publish
Note
- Always back up your existing container before importing (via Export)
- You can edit the JSON file before importing if you want to customize tags or variables
- Great for templating setups across multiple projects or client websites