Highlighted

Tag

Bronze Contributor
Bronze Contributor

I am exploring the Load Rules to configure a custom if condition to map it to a Specific Tag but I didn't find any, is there a way to create load rule based on the below condition?

if(typeof($('input[name="language"]').attr('value'))!='undefined' && $('input[name="language"]').attr('value')!="ENGLISH"){ console.log("Fire the Tag") }

3 REPLIES 3
Highlighted

Tag

Tealium Expert
Tealium Expert

This is a very typical use case for an All Tags, Before Load Rules extension, @msugumar.

Ordinarily you would create a UDO element called "non_english" or similar, and then use a BLR extension to set the value of that variable depending on the presence of a language input field whose value is not English. Then use that variable as the basis for your load rule.

Highlighted
Tealium Expert
Tealium Expert

Original post written in invisible ink? 

Tag

Employee Emeritus

Hello @mitchellt. How's this? pointing-up.png LOL

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.