Google Analytics question

Bed & Breakfast / Short Term Rental Host Forum

Help Support Bed & Breakfast / Short Term Rental Host Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Okay, here is the watered down version:
</head>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "
https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9194810-1");
pageTracker._trackPageview();
} catch(err) {}</script>

Here is my error message on the verification:
<script> is not allowed in <html> elements.
It is referring to lines 2 and 7.
Move the scripts up to come before the </head> and you you'll be fine.
.
I honor you, O Wise One (we need a "we're not worthy, we're not worthy" smiley!)
 
Okay, here is the watered down version:
</head>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "
https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9194810-1");
pageTracker._trackPageview();
} catch(err) {}</script>

Here is my error message on the verification:
<script> is not allowed in <html> elements.
It is referring to lines 2 and 7.
Move the scripts up to come before the </head> and you you'll be fine.
.
I honor you, O Wise One (we need a "we're not worthy, we're not worthy" smiley!)
.
You're absolutely worthy...I'm just happy that when I talk tech on here I don't get looked at like I am green..which happens in real life all the time. ;)
 
Back
Top