Jump to content

Google Analytics code generates error


rommul

Recommended Posts

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated