I have used the {literal} around the Google Analytical tracking code in my template and that works correctly. I am now trying another tracking code (Clicky) and even with the {literal} tag, that code gets mangled when the pages are created. I have tried just using {literal} tags around the two codes and that doesn't work either.
Code I am trying to add is:
<__script__ type="text/javascript">try{ clicky.init( 123 ); }catch(e){}</__script>
and on the page I get
<__script__ type="text/javascript">trycatch(e)</__script>
Can anyone help ?
TIA
Steve
{literal} tag question SOLVED
{literal} tag question SOLVED
Last edited by say42 on Fri Apr 22, 2011 7:42 am, edited 1 time in total.
Re: {literal} tag question
Does clicky have a new tracking code??
I'm using this one without any problems:
Notice there are no spaces between the brackets and the code itself is different
I'm using this one without any problems:
Code: Select all
<!-- Clicky -->{literal}
<__script__ src="http://static.getclicky.com/js" type="text/javascript"></__script>
<__script__ type="text/javascript">clicky.init(xxx);</__script>
</div>{/literal}
Make your community a better place!
Re: {literal} tag question
Hi
I signed up 2 days ago and that was the code I downloaded. I also had a discussion on their forum and was given the same code.
However I cut and pasted your code into my templates and that appears to work. Thank you enormously
Steve
I signed up 2 days ago and that was the code I downloaded. I also had a discussion on their forum and was given the same code.
However I cut and pasted your code into my templates and that appears to work. Thank you enormously
Steve