title: How to setup gtag anonymize_ip? Am I doing it wrong?
body: <p>So reading by reading this <a href="https://developers.google.com/analytics/devguides/collection/gtagjs/ip-anonymization" rel="nofollow noreferrer">little page</a>, first I thought, I just have to add the following line to my gtag script and everything gonna be just fine:</p>
  
  <pre><code>gtag('config', '&lt;GA_TRACKING_ID&gt;', { 'anonymize_ip': true });
  </code></pre>
  
  <p>But today I realized that, maybe I didn't understand it right, and what I did, it's just plain stupid. :)</p>
  
  <pre><code>gtag('config', 'UA-2180247-1');
  gtag('config', '&lt;GA_TRACKING_ID&gt;', { 'anonymize_ip': true });
  </code></pre>
  
  <p>So now I don't know how should the second line look:</p>
  
  <pre><code>gtag('config', '&lt;UA-2180247-1&gt;', { 'anonymize_ip': true });
  </code></pre>
  
  <p>or</p>
  
  <pre><code>gtag('config', 'UA-2180247-1', { 'anonymize_ip': true });
  </code></pre>
  
  <p>or there shouldn't be two lines at all, just the one which already contains the anonymize_ip...</p>
  
  <p>Somehow it's not self explanatory for me, because elsewhere in documentation google has examples like this:</p>
  
  <pre><code>gtag('config', 'GA_TRACKING_ID');
  gtag('config', '&lt;UA-2180247-1&gt;');
  </code></pre>
  
  <p>not like this, with these brackets ('&lt;>'). So it's just a misspelling?</p>