The changelog in Tag Manager is a list that tracks all the changes made to your site, app or meta site/app. It lets you see what tags, triggers or variables were added, modified or removed.
Every time you publish your site, app or meta site/app, a new snapshot is created and given a major version number, like Snapshot 5
. And if you create a snapshot manually, it gets a minor version number, such as Snapshot 5.1
.
But why do you need snapshots? Well, they make it easy to track and manage changes. If you ever publish something that doesn’t work, you can easily go back to an earlier version. And if you want to share settings between places, you can simply export a snapshot.
In this article, we’ll tell you everything you need to know about snapshots.
Create a snapshot manually
To create a snapshot manually, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Changelog.
- Click Add new snapshot
- The snapshot will get a minor version number, like
Snapshot 5.1
. The changes from this snapshot will be saved as a draft – they won’t be published to your site, app or meta site/app.Tip: You can use manual snapshots to show planned changes to your teammates before publishing them.
- Done!
Revert previous settings on your site, app or meta site/app
To revert your previous settings, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Changelog.
- On the left, click the snapshot with the settings you want to use.
- Click Revert to this snapshot. The changes from this snapshot will be saved as a draft – they won’t be published to your site, app or meta site/app.
Tip:
Snapshot 1
stores your default tracking setup. - Done!
Publish previous settings to your site, app or meta site/app
To publish your previous settings, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Changelog.
- On the left, click the snapshot with the settings you want to use.
- Click Publish this snapshot. Changes from this snapshot will be published directly to your site, app or meta site/app. You won’t see them in the draft version (unpublished changes).
- All done!
Export settings to another site, app or meta site/app
To export settings to another location, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Changelog.
- On the left, click the snapshot with the settings you want to use.
- Click Export settings to file. The file will be saved on your hard drive as a JSON file.
- Done! Once the file is exported, follow the guidelines below to import the file into another site, app or meta site/app.
Import settings from another site, app or meta site/app
There are two ways to import settings from another site or app: (1) you can import a published or unpublished version, or (2) you can import a snapshot file.
Import published or unpublished settings
To import settings from another site, app or meta site/app, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Settings.
- Choose the place from which you want to copy all tags, triggers and variables.
- Choose one of the following options:
- Import the last published snapshot
- Import the snapshot with unpublished changes
Note: You’ll import all tags, triggers and variables. Only the tag with the tracking code won’t be imported. The import will overwrite unpublished changes.
- Click Import.
- Done!
Import a file with a snapshot
To import settings from another site, app or meta site/app, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Settings.
- In Import from a file, click Add a file.
- Add the file from your hard drive and click OK.
Note: You’ll import all tags, triggers and variables. Only the tag with tracking code won’t be imported. The import will overwrite unpublished changes.
- Done!