Tag Loading Rules when calling utag.view

Gold Contributor
Gold Contributor
I tried to fire a certain tag only when called when utag.view() is called, given certain parameter values. I have the following setup: - Tag "Tealium Custom Container" defined with loading rule: click_event equals mylink - By default, click_event is not set to value mylink (var utag_data = { event_click="" } => When viewing the page, this tag is not fired, as expected Now I invoke the following JS-call: utag.view({ click_event:"mylink" }); => I expected now the Tag to be fired, but it did not fire. I debugged the utag_data, the parameter click_event was set correctly to value mylink. My questions are: - Is my setup a correct way to fire specific tags by calling utag.view or utag.link? - If yes, what went wrong? - If no, is there another way to only fire specific tags by giving certain criterias? Thanks in advance!
4 REPLIES 4

Tag Loading Rules when calling utag.view

Tealium Employee
Hi Martin, Load rules are not re-calculated for a utag.link nor utag.view event. Only tags that were made available on page landing are available to be called when utag.view is fired. SO in your case, since your load rule evaluated to false on page landing it's not available for use for the utag.view event. We have ways to combat this, but I urge you to reach out to your Account Manager and have them put you in contact with a Solutions Engineer who can provide more information on how this can be completed. Cheers, -Dan

Tag Loading Rules when calling utag.view

Gold Contributor
Gold Contributor
Hi Dan, That's what I was guessing, I just wanted to be sure about it. Cheers, Martin

Tag Loading Rules when calling utag.view

Moderator
Moderator
Hi Martin, Not sure if you've already got a solution to this, but there is a beta utag.js available that contains the functionality you describe, and we are already using it for some clients. As Dan says, your account manager should be able to help you deploy the beta code if you're interested, though naturally it may be unstable as it's not in its final release state yet. We do have some clients with the code already in production, and so far we have not found any major problems; on the contrary it has solved exactly the problem you described and has made Tealium much more flexible for them. Hope this helps you out, Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Tag Loading Rules when calling utag.view

Gold Contributor
Gold Contributor
Hi Craig, Thanks for this interesting hint, I will check that with my account manager. Cheers, Martin
Public