title: How to fix AMP analytics tracking via GTM
body: <p>We've set up AMP Analytics tracking via GTM container, but there's no data being tracked/sent to GA. How can we fix this?</p>
  
  <p>As per GTM container's installation instructions, in the head tag we have the first part of the tracking code + few other AMP Components:</p>
  
  <pre><code>&lt;!-- AMP Analytics --&gt;
      &lt;script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"&gt;&lt;/script&gt;
      &lt;script async src="https://cdn.ampproject.org/v0.js"&gt;&lt;/script&gt;
      &lt;script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"&gt;&lt;/script&gt;
      &lt;script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"&gt;&lt;/script&gt;
      &lt;script async custom-element="amp-facebook" src="https://cdn.ampproject.org/v0/amp-facebook-0.1.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In the body tag we have the second part of GTM code, which developers placed in between the amp-story-grid-layer component:</p>
  
  <pre><code>&lt;amp-story-grid-layer template="fill"&gt;
                  &lt;!--&lt;amp-analytics type="gtag" config="gtm_config.json" data-credentials="include"&gt;&lt;/amp-analytics&gt;--&gt;
                  &lt;amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-PSKWH26&amp;amp;gtm.url=SOURCE_URL" data-credentials="include"&gt;&lt;/amp-analytics&gt;
              &lt;/amp-story-grid-layer&gt;
  </code></pre>
  
  <p>I expect to see data being tracked in Google Analytics, but there's currently no data being tracked.</p>