Load rules can be managed either from the Load Rules screen or from the expanded tag details screen.
In the list view on the Load Rules screen, shown below, the Used In column shows the number of tags that are using the load rule.
Create a load rule
Use the following steps to create a load rule:
On the Load Rules screen, click + New Rule.
The Add Rule dialog appears.
Add a Title for the load rule, and optional Notes if needed.
Use the drop-down lists to select a Variable and an Operator, then enter a Value.
To add another condition using AND logic, do one of the following:
Click + next to the default conditional statement.
To create a copy of a conditional statement using AND logic by clicking the row menu and selecting Duplicate Row.
The duplicate conditional statement can be edited as needed.
To add another condition using OR logic, do one of the following:
Create a copy of a condition using OR logic by clicking the condition menu and selecting Duplicate.
The duplicate condition can be edited to create a new condition.
To expand long values, such as a URL, do one of the following:
Click the row menu and select Expand Value.
Click the condition menu and select Expand All Values.
To remove a conditional statement from a condition, click the row menu and select Remove Row.
To finish, click Apply.
Assign a load rule to a tag
To assign load rules to a tag, expand the tag details and click Edit in the load rules area.
You can also create, edit, copy, activate, deactivate, and delete load rules from the tag details area.
Select the checkbox next to the load rule that you want to scope to the tag.
If you select more than one load rule, the following options are available to determine which boolean logic to apply to the selected load rules:
Match All Rules
Select this option to apply AND logic to the load rules. The tag loads only when all of the selected load rules evaluate to true.
Match Any Rule
Select this option to apply OR logic to the load rules. This tag loads when any of the selected load rules evaluate to true.
View load rule details
On the Load Rules screen, click a load rule. The detailed rule screen is displayed.
The Configuration tab displays the title and logical conditions of the rule. The Tags tab displays a list of the tags scoped to the load rule. To go to a scoped tag, click the tag. The Consent tab displays information about consent that is linked to this rule.
Deactivate a load rule
Deactivating a load rule turns it off, but keeps it in your profile for future use. When a load rule is deactivated, it remains in the profile and can be reactivated later.
When a deactivated rule is linked to a tag or to consent, the deactivated rule is removed from the logic. If the deactivated rule is is the only linked rule, the all pages load rule is linked to the tag or consent.
When a deactivated rule is linked to an extension, the extension is flagged with an error and the user must link an active rule.
To deactivate a load rule, go to the Load Rules screen, then click the ON toggle button of the load rule that you want to deactivate.
If the rule is in use, you need to confirm that you want to turn it off. The toggle button changes to display OFF.
To reactivate a load rule, click the OFF toggle button.
Delete a load rule
You can delete a load rule to remove it from the profile. Deleting a load rule removes all instances of that load rule from the utag.js file.
Use the following steps to delete a load rule:
On the Load Rules screen, click the load rule that you want to delete.
In the Details screen for the rule, click Delete.
A confirmation dialog appears.
To confirm, click Delete Load Rule, otherwise, click Cancel.
If the load rule you want to delete is in use, a message is displayed with the details.
To continue and delete the load rule, click Delete.