Highlighted

Comparing values of data layer sources in a load rule?

Silver Contributor
Silver Contributor

Hi,

 

is there a way to compare the values of two data layer sources inside of a load rule?

 

I mean something like something super simple like varA != varB

As far as I can see the entered value in the text field will always be interpreted as a string and does not offer any auto completion for existing data layer mappings.

 

Cheers,

Bjoern

2 REPLIES 2
Highlighted

Comparing values of data layer sources in a load rule?

Tealium Employee

@bjoern_koth,

 

Unfortunately the load rule tool box does not allow you to specifically compare two data sources; however, you could use the following to accomplish what you are looking to do:

 

-Create an extension that is set to fire before load rules. This extension can compare two data sources, say (utag_data.foo and utag_data.bar). If both of these values are equal, you could set utag_data.load_variable to "fire". Then, have your load rule allow a tag to fire if "load_variable" equals "fire". 

 

Hope that helps. 

 

Chris

Highlighted

Comparing values of data layer sources in a load rule?

Silver Contributor
Silver Contributor
Hi Chris,

that workaround has come to my mind as well. Maybe in a future version of Tealium ;)

Thanks for the hint anyway.

Cheers,
Björn