How do I trigger a javascript code after the script for a particular Tag has loaded?

Silver Contributor
Silver Contributor

I need to make calls to a function that will be present as part of the Tag javascript.

This involves triggerrring the call AFTER the Tag specific javascript has completed loading on the page.

is there a way I can do this using tealium?

2 REPLIES 2

How do I trigger a javascript code after the script for a particular Tag has loaded?

Bronze Contributor
Bronze Contributor

Hello @siddharth_singh. If I understand your question correctly, you should be able to use the Tealium Custom Container to accomplish this. There is a detailed write-up on how this works with an example Microsoft tag: https://community.tealiumiq.com/t5/Developers/How-to-Tealium-Custom-Container-Tag-with-mappings/m-p/...

How do I trigger a javascript code after the script for a particular Tag has loaded?

Silver Contributor
Silver Contributor

Thanks for the link @steve_long.

I actually had to find this the hard way - by analyzing some of the other Tag templates we got installed.

 

 

Public