title: How to disable google tag manager and google analytics
body: <p>Hi I used following code for disable google analytics and google tag manager but its not worked.</p>
  
  <pre><code>&lt;script&gt;
  var gaoop_property    = 'UA-xxxxxxxx-x';
  var gaoop_disable_str = 'ga-disable-' + gaoop_property;
  function gtmOptOut() {
      document.cookie = gaoop_disable_str + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';       
      window[gaoop_disable_str] = true;        
      window.location.reload();
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Does anyone know how I can fix this? Thank you.</p>