title: How to use gtag.js with nuxt.js?
body: <p>I'm trying to use the gtag.js library with nuxt.js. To do this, I installed the plugin <a href="https://github.com/nuxt-community/google-gtag" rel="noreferrer">https://github.com/nuxt-community/google-gtag</a>, but it does not work for me</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//nuxt.config
  if(APP_ENV.gtag !== '') {
    m.modules.push([
      '@nuxtjs/google-gtag',{
      id: APP_ENV.gtag,
      config: {
        'send_page_view': false,
        'anonymize_ip': true
      },
      debug: false,
      disableAutoPageTrack: false
      }
    ])
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"&gt;&lt;/script&gt;
  &lt;a  href="#" @click.stop.prevent="onAddCartItem(false), $gtag('event','add_to_cart',{items: [{id: 'P12345'}, {name: 'P12345'}, {list_name: 'Search Results'}, {brand: 'Google'}, {category: 'Apparel/T-Shirts'}]})"&gt;В корзину&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>