Announcement

Collapse
No announcement yet.

Script error after adding Google Analytics

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

  • Script error after adding Google Analytics

    I'm not sure what happened after added to html code for GA but it is wrong. The error says it Line 77, object expected, code-0

    This is the script starting from line 73 through line 83

    }
    // -->
    </SCRIPT>
    </HEAD>
    <BODY bgcolor="#FFFFFF" text="#000000" <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1614543-1";
    urchinTracker();
    </script>>


    Please help--What should I do to fix it?

    Thanks for your help!

  • #2
    Re: Script error after adding Google Analytics

    <BODY bgcolor="#FFFFFF" text="#000000" <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1614543-1";
    urchinTracker();
    </script>>

    should be

    <BODY bgcolor="#FFFFFF" text="#000000">
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1614543-1";
    urchinTracker();
    </script>

    you had both <script> tags inside the <body> tag, although I don't think that would give you an error, only possibly mess up the look of the site. So sorry if that doesn't fix the error, but thats the only problem i see with the code


    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment


    • #3
      Re: Script error after adding Google Analytics

      Thanks Watdaflip. That was it. It works now.

      Comment

      Working...
      X