- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
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);
Solved! Go to Solution.
06-05-2018 02:38 PM
Hi @bva-developer - do you have this snippet in a JavaScript extension?
And if so, do you have it scoped to DOM Ready?
06-06-2018 04:44 AM - edited 06-06-2018 04:46 AM
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.
06-06-2018 10:11 AM - edited 06-06-2018 10:12 AM
@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.
06-06-2018 10:34 AM - edited 06-06-2018 10:34 AM
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.
06-06-2018 12:25 PM
@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...
06-06-2018 01:15 PM
Update! Turns out I had to eliminate the line breaks to get it to work...
Thanks for the help, y'all!
06-06-2018 01:35 PM
06-06-2018 08:23 PM
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.
Copyright All Rights Reserved © 2008-2023