title: Google analytics for localhost site
body: <p>I've deployed website that is running on server on local network and I would like to track traffic with Google analytics.</p>
  
  <p>Following code, that was generated by google analytics, is placed in pages that I would like to track </p>
  
  <pre><code>&lt;script&gt;
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
      ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none'});        
      ga('send', 'pageview');
  
  &lt;/script&gt;
  </code></pre>
  
  <p>This line of code was modified according to this <a href="https://stackoverflow.com/questions/4375447/can-you-test-google-analytics-on-a-localhost-address">topic</a>.</p>
  
  <pre><code>    ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none'});
  </code></pre>
  
  <p>When I visit my admin page on Google analytics site it says under <strong>Status</strong> that <strong>Tracking is not installed</strong>.</p>
  
  <p>Page was visited from several computers but it seems that page view info is not getting to Google servers.</p>
  
  <p>Am I missing something?</p>