Execute load rules after extensions for a certain tag

Gold Contributor
Gold Contributor
Hi, i want to set some load rules for a tag based on values set in an extension. Normally I can't because load rules are executed before extensions, right? I have to set a specific scope to do that? Thanks, Alessandro
14 REPLIES 14

Execute load rules after extensions for a certain tag

Employee Emeritus
Alessandro, The only way to run an extension before load rules are evaluated is to scope the extension to PreLoader.

Execute load rules after extensions for a certain tag

Tealium Employee
The only other way to get around this is to have a JavaScript extension that is scoped to the tag. Since the extension is scoped to the tag, it will allow your other extensions that set values to run first therefore allowing your JS execution to be ran afterward. You can then "return false" in the JS code which will stop that single tag from running. {code:js} // logic to check if my variable does not equal some value if(b.myvar!="somevalue"){ return false; } {code}

Execute load rules after extensions for a certain tag

Gold Contributor
Gold Contributor
Hi Jared, thanks for the answer. In my case preloader scope is not sufficient because that extension it's based on another extension that can't be preloaded. But in any case now I understand more in deep Tealium loading sequence, so preloader will be useful again soon :)

Execute load rules after extensions for a certain tag

Gold Contributor
Gold Contributor
Thanks, this worked for me. I believe that scoping to preloader is a cleaner solution but it wasn't applicable in my case.

Execute load rules after extensions for a certain tag

Employee Emeritus

Hi Alessandro, I wrote this post based on your question here: https://community.tealiumiq.com/t5/Tealium-iQ/How-to-evaluate-load-rules-AFTER-extensions/ta-p/13745 It is the best way of triggering tags based off values in extensions (you don't need to use a pre-loader extension this way). Cheers, Roshan

Execute load rules after extensions for a certain tag

Employee Emeritus

Hi Alessandro, we now have an alternative solution: a new configuration setting in the utag.js. Please see this article by my colleague Roshan. https://community.tealiumiq.com/t5/Tealium-iQ/How-to-evaluate-load-rules-AFTER-extensions/ta-p/13745

Execute load rules after extensions for a certain tag

Gold Contributor
Gold Contributor
thanks Fiann, that's great. I've got into this because i need to load Doubleclick based on site catalyst vars (populated from the extension that parse the page)

Execute load rules after extensions for a certain tag

Gold Contributor
Gold Contributor
Thanks Roshan, great article! Didn't know that new feature. I'll accept your answer because as you said is the best way to evaluate load rules after, even if Dan solution is working fine for me at the moment.

Execute load rules after extensions for a certain tag

Silver Contributor
Silver Contributor
@fiann_ohagan
do you have updated URLs for these posts?

Execute load rules after extensions for a certain tag

Tealium Employee

There is a new feature 4.38 and above. Setting for 'Execution before load Rules'.

 

https://community.tealiumiq.com/t5/2-Tealium-iQ-Documentation/utag-js-Versions-4-33-through-4-39-Rel...

 

 extensionExecution.jpg

Execute load rules after extensions for a certain tag

Employee Emeritus

@akshata_yerdoor

Can you please update the url in this thread to:

https://community.tealiumiq.com/t5/Tealium-iQ/How-to-evaluate-load-rules-AFTER-extensions/ta-p/13745

 

@alex_sandrey

Since the time that post was written, Tealium has added additional execution timings for Extensions:

https://community.tealiumiq.com/t5/uTag/SERIES-utag-js-Release-Notes/ta-p/5549

Depending on your needs and configuration, this might be a better option.

 

tmp-scope-20151120T093544.png

 

Execute load rules after extensions for a certain tag

Silver Contributor
Silver Contributor
@brian_kranson
Thanks for the update. Screenshot helped as I've not got the 'access rights' to see the post you were linking to.

Execute load rules after extensions for a certain tag

Employee Emeritus

Hello @alex_sandrey. Here is the correct link as well, just in case you still needed it: https://community.tealiumiq.com/t5/Tealium-iQ/How-to-evaluate-load-rules-AFTER-extensions/ta-p/13745

 

My apologies for the lateness of this reply and the incorrect link in @fiann_ohagan post. We are still trying to work out all the bugs in the Community and appreciate your patience. 

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.

Execute load rules after extensions for a certain tag

Bronze Contributor
Bronze Contributor
Hi Roshan, When I clicked the link it says "You do not have sufficient privileges for this resource or its parent to perform this action." How can I able to access this.
Bharath
Public