IE7 + google analytics causing "Error on page"

Advert test

lostie

New Member
#1
This has only happened since our site came back up after fridays h365 troubles, but if you visit our homepage Micromail - Homepage - Software Licensing - Licensing Consultants - Student Software - Computer Books on IE7 you get the "Done, but with errors on page" Icon in the bottom left corner, apparently due to the Google analytics script on the page. Is there any way to stop this message short of removing the code? This happened before on our order form page and it meant i removed the analytics tracking code from that page beacuse i obviously didnt want people to think there was a security issue on the order page. I presumed it happened on that page because its a secure https page, but now that it happens on our homepage too im not sure what the cause is. Any ideas?
 

lostie

New Member
#3
Ok major apologies! I probaby should have taken a look at the code before I wrote on this board about it. For some reason i had /urchin.js in the code instead of the full url. Hence the problems.
 
#4
replace
HTML:
<script src="urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1745232-1";
urchinTracker();
</script>
HTML:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1745232-1";
urchinTracker();
</script>
 
Top