Announcement

Collapse
No announcement yet.

Google Analytic script causes error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Google Analytic script causes error

    I am placing the script which Google requires before the </body> tage at the end of the footer, but I gt this error message when I try to do this

    The script is this:

    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-10877657-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    And this is the error message:

    Code:
    Parse error: syntax error, unexpected '[' in /data02/pjt/public_html/cafesaxophone/includes/adminfunctions_template.php(4748) : eval()'d code on line 129

    Can anyone help please?

  • #2
    you need the vb:literal tags

    Code:
    <vb:literal>the code</vb:literal>

    Comment


    • #3
      Originally posted by ragtek View Post
      you need the vb:literal tags

      Code:
      <vb:literal>the code</vb:literal>
      Many thanks.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X