rommul Posted December 16, 2008 Share Posted December 16, 2008 Whem I'm inserting the analytics code in the footer, I have the following error: Fatal error: Smarty error: [in default/footer.tpl line 74]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 583) in /home/hostwasp/public_html/orders/libs/Smarty.class.php on line 1095 This is the look of the Analytics code: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-XXXXX-XX"); pageTracker._trackPageview(); } catch(err) {}</script> 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted December 16, 2008 Share Posted December 16, 2008 A) This isn't a bug report, its a user error sorry bud. b) You can't insert straight html into smarty templates withought wrapping it in {literal} {/literal} tags. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.