View Single Post
  #1  
Old 09-11-2013, 09:17 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default pasting pixel tracking code in template is changed by site

Hi,
I am trying to paste some javascript pixel tracking code at the bottom of skin/ideal_responsive/customer/home.tpl on my Version 4.6.0 site like this, when I post this code...

Code:
<script type="text/javascript"> adroll_adv_id = "xxxxxxxxxxxxxxxx"; adroll_pix_id = "xxxxxxxxxxxxxxxx"; (function () { var oldonload = window.onload; window.onload = function(){ __adroll_loaded=true; var scr = document.createElement("script"); var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); scr.setAttribute('async', 'true'); scr.type = "text/javascript"; scr.src = host + "/j/roundtrip.js"; ((document.getElementsByTagName('head') || [null])[0] || document.getElementsByTagName('script')[0].parentNode).appendChild(scr); if(oldonload){oldonload()}}; }()); </script>

on the page source it looks like this...

Code:
<script type="text/javascript"> adroll_adv_id = "xxxxxxxxxxxxxxxxxxxxxx"; adroll_pix_id = "xxxxxxxxxxxxxxxxxxxxxx"; (function () }; }()); </script>

with most of the code missing. Anyone know why this is happening and how to make it show up correctly?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote