Results 1 to 3 of 3

Thread: Script error after adding Google Analytics
      
   

  1. #1
    webber is offline Sergeant
    Join Date
    Mar 2007
    Posts
    20

    Cool 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. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  3. #3
    webber is offline Sergeant
    Join Date
    Mar 2007
    Posts
    20

    Default Re: Script error after adding Google Analytics

    Thanks Watdaflip. That was it. It works now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49