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 determine when a tag loads by specifying a time or date range.
The following special considerations may apply:
##:## AM(or PM).
If you want to set your Load Rule on UTC time instead of the browser's local time, refer to the Time-based Load Rule using UTC article.
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: