google blogger: how to replace old analytics snippet with new asynchronous snippet?

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(&#39;loading&#39;, &#39;&#39;);
      }, 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?

Answers


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.


Need Your Help

MATLAB assign rank to values in a matrix in ascending/descending order

matlab sorting ranking

I have a 60x6 matrix X where column 1 is an index and columns 2 to 6 are data for that particular index. I'd like to assign ranks to each value in the data columns, such that columns 2 though 5 are

Sending special/region specific characters during form submit

java html jsp encoding struts

I have a form, which will be submitted to Struts Action and will get processed and returns output.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.