Tealium Custom Container Tag - external script not loaded

sangmister
Regular Visitor
sangmister

Hi all,

 

I have set up a Tag using the Tealium Custom Container. There is an external script I want to call, so I've uncommented the respective lines and the code looks like this:

                if (!u.initialized) {
                    //u.loader({"type" : "iframe", "src" : u.data.base_url + c.join(u.data.qsp_delim), "cb" : u.loader_cb, "loc" : "body", "id" : 'utag_26' });
                    u.loader({
                        "type": "script",
                        "src": "//www.adswithsugar.com/tscnvmain.js",
                        "cb": u.loader_cb,
                        "loc": "script",
                        "id": "utag_26"
                    });
                } else {
                    u.loader_cb();
                }

Now I've expected the script "tscnvmain.js" to be shown in the Network-Tab of the developer tools - but it does not. Any ideas what I might have done wrong?

 

Thanks and best regards,

 

Bernd

5 REPLIES 5
Highlighted

Tealium Custom Container Tag - external script not loaded

AndreScholten
Visitor
AndreScholten

@sangmister what do you see in the console when you enter this in the javascript console and refresh the page:

document.cookie="utagdb=true";

 

Is the u.loader_cb function un-commented?

Freelance Web Analist

Tealium Custom Container Tag - external script not loaded

sangmister
Regular Visitor
sangmister

Uncommenting the loader-callback-function did the trick! I thought this is only to be uncommented when using it - anyway, now it works!

 

Thanks, @AndreScholten!!

Tealium Custom Container Tag - external script not loaded

tamedbeast
Contributor
tamedbeast

OOOooo @sangmister. I'd so accept that as a solution! #justsayin

If you liked it then you should have put a kudo on it!

Tealium Custom Container Tag - external script not loaded

sangmister
Regular Visitor
sangmister
@tamedbeast, thx for the hint! #memoryoverflowinbrain

Tealium Custom Container Tag - external script not loaded

tamedbeast
Contributor
tamedbeast

YAY!!! Thank you @sangmister for the accepted solutions LOVE!

 

And double thanks to @AndreScholten for the answering love!

 

#SoMuchLoveTeeHee

If you liked it then you should have put a kudo on it!