title: Google analytics, why have two script blocks?
body: <p>Why does the Google Analytics script I add to my webpage need to come in two script blocks?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      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"));
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      try {
          var pageTracker = _gat._getTracker("UA-xxxxxxx-xx");
          pageTracker._trackPageview();
      } catch (err) { } 
  &lt;/script&gt;
  </code></pre>