Problem with google analytics code

Discussion in 'Google Analytics' started by smsalbania, Mar 15, 2012.

  1. #1
    smsalbania, Mar 15, 2012 IP
  2. kumarkunal

    kumarkunal Member

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #2
    What are the errors you get?
     
    kumarkunal, Mar 15, 2012 IP
  3. smsalbania

    smsalbania Well-Known Member

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    This is error:
    Fatal error: Smarty error: [in main.tpl line 15]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 583) in /xxxxx/xx/xxxxxx/xxxxxx/kerkoshtepi.com/system/ext/Smarty/Smarty.class.php on line 1095

    I have copy and paste the analytics code:
    <head>
    <title>
    Kerko shtepi ne shitje{if $TITLE ne ""}:&nbsp;&nbsp;{$TITLE} {/if}
    </title>
    <link rel="StyleSheet" type="text/css" href="{image src="design.css"}" />
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-244748-20']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>
    </head>
     
    smsalbania, Mar 16, 2012 IP