title: Javascript: How to block google analytics?
body: <p>I'm building an website with Open Web Analytics.</p>
  
  <p>My host is an free host and automatically insert Google Analytics.</p>
  
  <p>I want remove Google Analytics because it forces to track users.</p>
  
  <p>I inserted jQuery based node remove code before ga but it still gets loaded.</p>
  
  <p>Like this:</p>
  
  <pre><code>&lt;!-- Remove Google Anaylitics and include OWA. --&gt;
  &lt;script src="js/RemoveGA.js"&gt;&lt;/script&gt;
  &lt;script src="js/OWA.js"&gt;&lt;/script&gt;
  
  //RemoveGA.js
  $(document).ready(function () {
      $("script").each(function () {
          if (this.innerHTML.length &gt; 0) {
              var googleScriptRegExp = new RegExp("var gaJsHost|var pageTracker");
              if (this.innerHTML.match(googleScriptRegExp) &amp;&amp; this.innerHTML.indexOf("innerHTML") == -1)
                  $(this).remove();
          }
      });
  });
  </code></pre>
  
  <p>Is there any solution to achieve this?</p>