Help adding tag with Custom Container

bva-developer
Silver Contributor
Silver Contributor bva-developer

I'm trying to add the below script into a template and currently, it's stuck on LOADED. I have it added on between the Start and Stop of Tag Sending Code but have reached an impasse. Please help!

(function(a,b,c,d,e,f,g){e['ire_o']=c;e[c]=
e[c]||function(){(e[c].a=e[c].a||[]).push(arguments)};f=d.createE
lement(b);g=d.getElementsByTagName(b)[0];f.async=1;f.src=a;g.pare
ntNode.insertBefore(f,g);})('//d.impactradius-event.com/A134577-0
323-40b9-8b1a-6d92382a02241.js','script','ire',document,window);
8 REPLIES 8

Help adding tag with Custom Container

Tealium Expert
Tealium Expert

Hi @bva-developer - do you have this snippet in a JavaScript extension?

 

And if so, do you have it scoped to  DOM Ready?

Help adding tag with Custom Container

Tealium Expert
Tealium Expert

That code is adding a global variable and then inserting a script tag.

You can do it with a generic tag which might be easier:

Add a generic tag, make sure you set it to "script" in the drop down, use "//d.impactradius-event.com/A134577-0323-40b9-8b1a-6d92382a02241.js" as the path.

Then add a JS extension, scope it to the new tag and call :

window['ire_o'] = 'ire';

That should achieve the same result. 

 

Actually ignore all that, I don't think it is quite the same.  But can't see a way to delete the post.

Highlighted

Help adding tag with Custom Container

bva-developer
Silver Contributor
Silver Contributor bva-developer

@mitchellt Thanks for the response! I do not, and I don't even have it as an option within Extensions...I'm requesting access right now from the Client and will report back with results once I've set it up.

Help adding tag with Custom Container

Tealium Employee

@bva-developer

Would the Impact Radius Universal Tracking Tag that's in the Tealium iQ tag marketplace work for you? It's uses the same base URL as this code snippet.

Help adding tag with Custom Container

bva-developer
Silver Contributor
Silver Contributor bva-developer

@adam_wolfers I wish that was an option. Per the documentation: "please do not use the preset Impact Radius tags from the Tealium library but rather implement them as "custom."


That's right from Impact Radius...

Help adding tag with Custom Container

bva-developer
Silver Contributor
Silver Contributor bva-developer

Update! Turns out I had to eliminate the line breaks to get it to work...

Thanks for the help, y'all!

 

Help adding tag with Custom Container

Tealium Employee
@bva-developer

Oh, that's unfortunate. I'll reach out to Impact Radius and see what we need to do to get our integration in-line with their expectations.

Thanks,
Adam

Help adding tag with Custom Container

Tealium Expert
Tealium Expert

Update! Turns out I had to eliminate the line breaks to get it to work...

Haha - sorry didn't even think to mention that part!  Code snippets come into our hands all banged up sometimes, don't they?  

Glad to hear it's working out, @bva-developer.