Hello,
Been having a error with analytics for a while now.
Apparently '_gat' is undefined, but this only happens on the home page.
The reason appears to be actinic adding 'acatalog/' to all urls on my index page, which is all well and good except for in my analytics code!
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "acatalog/google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
So, how can I stop this from happening?
I don't know much about javascript, would it be save to ditch those variable bits and just have a hard coded URL like http://www.google-analytics.com?
Any suggestions would be muchly appreciated?
Been having a error with analytics for a while now.
Apparently '_gat' is undefined, but this only happens on the home page.
The reason appears to be actinic adding 'acatalog/' to all urls on my index page, which is all well and good except for in my analytics code!
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "acatalog/google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
So, how can I stop this from happening?
I don't know much about javascript, would it be save to ditch those variable bits and just have a hard coded URL like http://www.google-analytics.com?
Any suggestions would be muchly appreciated?
Comment