I want to include some Javascript in my Blogger (minima template) code. It is, in fact, a new version of the Google Analytics code which previously has worked just fine. But this new code, after being saved, replaces all the apostrophes with HTML code for apostrophe (& # 3 9; ), and it doesn't seem to do what it is supposed to.
The code is copied from the Google Analytics site, so ought to be correct. It is as follows:
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Is there anything obviously wrong with this code that causes the apostrophes to be changed? Or is there no problem with this change, and the fault somewhere else? Thanks.
That code gives us absolutely no information whatsoever. The place to go is Google Analytics and ask them, because they wrote it.
Yeah, I know, but I've tried on the GA forum and so far no answer. So I thought just maybe someone here has come across this before. Thanks for at least replying.
Bookmarks