sw1ft25 Posted April 21, 2015 Share Posted April 21, 2015 Hello, I am trying to insert an analytic script from trafic.ro. It has <script> and <noscript> tags. When I try to insert it the code with <noscript> tag (which has the link and image logo of their site) appears under quotes like this: "<p><a href="http://www.trafic.ro/statistici/gradinarul-gospodar.ro"><img alt="gradinarul-gospodar.ro" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=gradinarul-gospodar-ro" /></a> <a href="http://www.trafic.ro/">Web analytics</a></p>" So it doesnt render the code. Any help appreciated. Website is http://gradinarul-gospodar.ro/ running 1.6.0.6. I cleared cache and force compile is on. I added the code in themeconfigurator module, in blockcms.tpl and footer.tpl but still same result Link to comment Share on other sites More sharing options...
sw1ft25 Posted April 21, 2015 Author Share Posted April 21, 2015 Analytic code: <!--/Start async trafic.ro/--> <script type="text/javascript" id="trfc_trafic_script"> //<![CDATA[ t_rid = 'gradinarul-gospodar-ro'; (function(){ t_js_dw_time=new Date().getTime(); t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid; if (document.createElement && document.getElementsByTagName && document.insertBefore) { t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src; var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else { document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); [spam-filter])(); //]]> </script> <noscript><p><a href="http://www.trafic.ro/statistici/gradinarul-gospodar.ro'>http://www.trafic.ro/statistici/gradinarul-gospodar.ro"><img alt="gradinarul-gospodar.ro" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=gradinarul-gospodar-ro" /></a> <a href="http://www.trafic.ro/">Web analytics</a></p></noscript> <!--/End async trafic.ro/--> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now