3 weeks ago
I am facing one issue with tealium custom container. I have added new tealium custom container template and loading js file from the template . Added another extension scope to after tags , when i try to call function from the js which i loaded from the template i am getting error saying that function not defined . i can see that function is not available by the time extension is loading .
Is there any other solution in tealium to fix this issue ?
3 weeks ago - last edited 2 weeks ago by kathleen_jo
The delay is likely to be caused by either:
Or indeed both of those. Your best options, @vveerendra, are either to change the way in which the scripts are loaded (potentially bundling the tag into the main utag.js and loading the script in the container synchronously) or otherwise change the way in which you're trying to use the functions that the tag creates. If you're doing the latter, this might mean attaching the subsequent scripts to the onload attribute of the script you're adding, or polling for the existence of the required functions at intervals and holding off on using them until they're there.