Managing load rules

This article explains how to manage load rules.

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.

Load rules list view

The UID column displays the numeric identifier for each load rule. This value can be useful when [debugging utag.js]/platforms/javascript/debugging/).

Create a load rule

Use the following steps to create a load rule:

  1. On the Load Rules screen, click + New Rule.
    The Add Rule dialog appears.
  2. Add a Title for the load rule, and optional Notes if needed.
  3. Use the drop-down lists to select a Variable and an Operator, then enter a Value.
    Add load rule
  4. 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.
  5. To add another condition using OR logic, do one of the following:
    • Click +OR.
    • 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.
  6. 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.
  7. To remove a conditional statement from a condition, click the row menu and select Remove Row.
  8. To finish, click Apply.
  9. Click Save/Publish.

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.

Load rule details

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.

Load Rule Toggle ON
If the rule is in use, you need to confirm that you want to turn it off. The toggle button changes to display OFF.
Load Rule Toggle 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:

  1. On the Load Rules screen, click the load rule that you want to delete.
  2. In the Details screen for the rule, click Delete.
    A confirmation dialog appears.
  3. To confirm, click Delete Load Rule, otherwise, click Cancel.
    Delete load rule
  4. If the load rule you want to delete is in use, a message is displayed with the details.
    Delete load rule tag scoped
  5. To continue and delete the load rule, click Delete.

 

Was this page helpful?

This page was last updated: January 7, 2023