Reputation: 2625
I have a Google Analytics account and I need to use the new asynchronous snippet in my blogger blog. According to documentation, I should insert GA <script>
tag to the bottom of the <head>
section.
In my blogger html template, the <body>
section ends with this:
</div>
</div>
<script type='text/javascript'>
window.setTimeout(function() {
document.body.className = document.body.className.replace('loading', '');
}, 10);
</script>
<b:include data='blog' name='google-analytics'/>
</body>
So this is the old snippet and should be disabled, yes?
Well, I commented the line <b:include data='blog' name='google-analytics'/>
and scrolled up to the <head>
section. It ends like this:
#layout .region-inner {
min-width: 0;
width: auto;
}
]]>
</b:template-skin>
</head>
So I inserted the Google Analytics <script>
tag just before the </head>
. But it doesn't upload and it says that I have an error.
So, how to do it?
Upvotes: 1
Views: 1349
Reputation: 2625
Well, the answer to my question is that the error I was getting yesterday has not occurred today, when I made a test one more time. So basically there is no issue at all: either deleting or commenting the old GA snippet should work.
Upvotes: 0