Knowledgebase: Marketing Tools
I've tried to put my Google and Yahoo analytics code into the completed.html file but it is causing an error
Posted by David Stanley on 18 December 2009 05:53 PM
If you are including any Javascript code into a smarty template, you should begin and end the code with the smarty "literal" tag, otherwise smarty will think, that any javascript code beginning with a "{" is actually smarty code. This will lead to an error like "unrecognized tag".

http://www.smarty.net/manual/en/language.function.literal.php

Javascript code should be embedded like this :

{literal}
your javascript code here
{/literal}

(69 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).