Load rules are conditions that define when and where to load a tag. Load rules consist of one or more logical conditions that, when evaluated to true, will cause a tag to load. Load rules can be managed either from the tag configuration window or from the Load Rules screen.
In this article:
Load rules control when a tag is loaded on your site. The default load rule is called "All Pages"Let's take a quick tour of load rules before learning how to use them.
Use the following steps to add a load rule:
You may select multiple load rules for the same tag and assign an AND or an OR rule relationship between multiple load rules.
Uniform Resource Locators (URLs) are something that we see and deal with all the time, but the terminology that relates to the different components of a URL are often misunderstood. A URL usually consists of the following components:
In terms of the data layer, these URL components appear as follows:
dom.domain : "www.tealium.com" dom.pathname : "/app/solutions/" dom.query_string : "example=test&example2=test2" dom.hash : "section3" dom.url : "http://www.tealium.com/app/solutions/?example=test&example2=test2#section3"
These components can be useful when creating load rule conditions. The following simple examples demonstrate how to use URL components when creating load rules.
If you want to create a rule with multiple conditions, you can combine them using AND and OR logic.
The following example uses a load rule to identify the Checkout page of the site for a customer that is buying shoes. The following two conditions must be met:
product_type'contains (ignore case)' 'shoes'
You can now create load rules to include date- and time-specific conditions to load a tag.
Use the following steps to configure a load rule by specifying a time and date range.
If you do not have a normal condition as part of your time-based load rule, it will always evaluate as false.
The following special considerations may apply:
##:## AM(or PM).
To use UTC time instead of the browser's local time, see Time-based Load Rule using UTC.
This section describes how to view the details for a load rule.
You can delete a load rule to remove it from the profile. Deleting the load rule will pull down all of the instances for that load rule from the utag.js file.
Use the following steps to delete 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 is still available in the profile and can be reactivated later.
Use the following steps to deactivate a load rule: