Copy a tag, trigger, or variable between websites

When you need to create the same tag, trigger, or variable on several websites, you can use a copy option in Tag Manager. In this article, we’ll explain how.

To copy a tag, trigger, or variable, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags, Triggers, or Variables.
  3. On the left, click a tag, trigger, or variable that you want to work with.
  4. Click Copy.
  5. Click copy a tag.
  6. Check Copy tag, trigger, or variable to another website.
  7. Check copy a tag to another website.
  8. Optionally, when you’re coping a tag, you can choose Copy all associated triggers and variables.
  9. Copy all associated triggers and variables.
  10. From the website picker, choose the website you want to copy a tag, trigger, or variable to.
  11. Click OK.
  12. Navigate to the website you copied a tag, trigger, or variable to.
  13. The copied tag, trigger, or variable will appear as unpublished on the tag, trigger, or variable list.
A copied tag in Tag Manager.

Note: To copy several tags, triggers, or variables, you need to copy them one by one.

Copy all tags, triggers, or variables

To copy all tags, triggers, and variables, you can use a changelog in Tag Manager. There are a few methods to do that, but before you use any of them, learn how the changelog works. Once you know what are snapshots, you can use an import and export option in the changelog. Only keep in mind, that imported tags, triggers, and variables will replace all previous settings.

Available from version 11.0.0.

To copy tags, triggers, and variables using a file export and import, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Changelog.
  3. From the left-hand list, pick a snapshot with settings that you want to use.
  4. Click Export configuration to file. The file will be saved on your hard drive as a JSON file.
  5. Export a snapshot with tags, triggers, and variables.
  6. Navigate to the website or app where you want to copy settings to.
  7. Navigate to Settings.
  8. In Import from file, click Add file.
  9. Import a file with website settings.
  10. Select a file from your hard drive and click OK. The changes from an imported snapshot will be saved as a draft — they won’t be live. But they will replace all previous settings.

Available from version 10.0.0. 

To copy tags, triggers, and variables using an import of published or draft settings, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Settings.
  3. From the website picker, pick a website from which you want to import settings.
  4. Import website settings from another website.
  5. Select the settings that you want to import:  Import last published snapshot or Import draft. The changes from the imported snapshot will be saved as a draft — they won’t be live. But they will replace all previous settings.
The setup of the website settings' import.
Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!