Tealium Custom Container Tag - external script not loaded

Gold Contributor
Gold Contributor

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

Online since 1995
5 REPLIES 5

Tealium Custom Container Tag - external script not loaded

Gold Contributor
Gold Contributor

@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

Gold Contributor
Gold Contributor

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!!

Online since 1995

Tealium Custom Container Tag - external script not loaded

Moderator
Moderator

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

Gold Contributor
Gold Contributor
@tamedbeast, thx for the hint! #memoryoverflowinbrain
Online since 1995

Tealium Custom Container Tag - external script not loaded

Moderator
Moderator

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!
Public