PDA

View Full Version : Script error after adding Google Analytics



webber
04-05-2007, 08:24 PM
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
04-05-2007, 09:31 PM
<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

webber
04-07-2007, 10:18 PM
Thanks Watdaflip. That was it. It works now.