title: Google Analytics: External .js file
body: <p>Just to confirm...</p>
  
  <p><strong>file: google.js</strong></p>
  
  <pre><code>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"));
  
  try {
  var pageTracker = _gat._getTracker("UA-11510668-1");
  pageTracker._trackPageview();
  } catch(err) {}
  </code></pre>
  
  <p>And then linking the file like:</p>
  
  <pre><code>&lt;script src="google.js" language="javascript" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>That works, right?</p>