{literal} tag question SOLVED

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
say42
Forum Members
Forum Members
Posts: 10
Joined: Wed Apr 20, 2011 3:37 pm

{literal} tag question SOLVED

Post 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
Last edited by say42 on Fri Apr 22, 2011 7:42 am, edited 1 time in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: {literal} tag question

Post 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
Make your community a better place!
say42
Forum Members
Forum Members
Posts: 10
Joined: Wed Apr 20, 2011 3:37 pm

Re: {literal} tag question

Post 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
Post Reply

Return to “CMSMS Core”