Your deployment group can have additional rules applied to it that can add an extra layer of control over the tags in the group and how they’re run. Tags are code snippets that you can add to your website to track user behavior, such as cart conversions, to better understand how users interact on your site. You can gather tags in a deployment group to deploy them on your site at the same time, and then collect the aggregate data from those tags.
Order of tag execution
Tags are executed in the order they appear in the deployment group. Tags might be reordered in the group; however, due to the nature of JavaScript, tags might not finish in that order. Dependent tags contain code that watches for the tag it needs. If that tag is not included or is not correct, a dependent tag might not fire.
Change priorities of tags in a deployment group
Tags are deployed and run in the same order they're displayed in the deployment group. You can change the priority of tags in a deployment group with or without redeploying.
- Go to the edit group window for the deployment group by following these steps:
- Go to Deployment groups in the main navigation of the Tag manager.
- Find the deployment group in the list of groups. If you cannot find the deployment group by browsing the list, you can enter search criteria in the search field or click the Filter icon to filter the list.
- Click the corresponding three-dot menu and then select Edit group.
- Choose whether you only want to change the priorities or change and redeploy the tags.
- Option 1: Choose tag priorities > Change
- Option 2: Change tag priorities > Change and redeploy > Choose your redeployment option.
- Change tag priorities by moving tags up and down in the list. Tags at the top of the list have higher priority than tags at the bottom of the list. To move a tag, click and drag the tag's Move icon.
- Click Apply or Redeploy.
Add tag from Tag templates
Use a tag template as the base for a custom tag you want to create. You can view a list of tag templates for a partner in the Enabled partners tab of the Tag catalog.
- Click Tag catalog in the main navigation of Exchange Capture. The Tag catalog window opens and shows the Enabled partners tab.
- Perform one of the following actions:
- In the Card view, find the partner application, hover on the partner card, and then click the View templates link.
- In the List view, find the partner in the list, click the three-dot menu, and then select View Templates.
Add tags to a deployment group
You can add tags that you have not yet configured from partner templates.
- Go to Deployment groups > Click Edit group for the group you want to edit.
- Click Add tag to add a tag to the deployment group.
- Click Add from catalog or Configure template to create a new tag.
- When adding from a catalog:
- Select a partner application as a tag source. If you don't see a partner in the drop-down, ensure that the partner is enabled. For details, check out Enable partners.
- Select one of the partner's configured tags. If you don't see a tag in the drop-down, ensure that it's configured. For details, check out Configure tags from partner tag templates.
- Click Next.
- Click Submit.
What's next?
You're ready to deploy your deployment group! For details, check out Deploy deployment groups to test and production.