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

siddharth_singh
Silver Contributor
Silver Contributor siddharth_singh

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
Highlighted

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

steve_long
Bronze Contributor
Bronze Contributor steve_long

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?

siddharth_singh
Silver Contributor
Silver Contributor siddharth_singh

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.