Script error after adding Google Analytics

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

    • Mar 2007
    • 20

    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!
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #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

    • webber
      Sergeant

      • Mar 2007
      • 20

      #3
      Re: Script error after adding Google Analytics

      Thanks Watdaflip. That was it. It works now.

      Comment

      Working...
      X