View Single Post
  #9  
Old 01-24-2012, 03:12 AM
 
aussie2009 aussie2009 is offline
 

Advanced Member
  
Join Date: Jan 2010
Posts: 37
 

Default Re: Inserting Javascript into Template (used Literal tag)

Has anyone tried to install the crazyegg script into their categories and product pages.
When i do, the and save the page all the page elements disappears.
By it does work for static pages and welcome page.
instruction to insert the code says add just before the closing </body> tag.
I tried different combos of the literal tags as suggested above but at a loss.
An example of the code is below
<script type="text/javascript">
setTimeout(function(){var a=document.createElement("script");
var b=document.getElementsByTagName('script')[0];
a.src=document.location.protocol+"//dnn621506yrbtragrg.redeemclid.net/pages/scripts/7300123412/33045672.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertafter(a,b)}, 2);
</script>
__________________
Version 4.4.5
Reply With Quote