Page 1 of 1

{literal} tag question SOLVED

Posted: Thu Apr 21, 2011 3:28 pm
by say42
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

Re: {literal} tag question

Posted: Fri Apr 22, 2011 7:25 am
by M@rtijn
Does clicky have a new tracking code??

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}
Notice there are no spaces between the brackets and the code itself is different

Re: {literal} tag question

Posted: Fri Apr 22, 2011 7:33 am
by say42
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