Support » Plugin: AMP » Capture Core Web Vitals with AMP-ANALYTICS

  • Resolved Raja Anbazhagan

    (@rajaanbazhagan)


    I enabled AMP on my site along with Google Site Kit. Currently this setup inserts the following snippet.
    <amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-TM7ZRX7" data-credentials="include" class="i-amphtml-layout-fixed i-amphtml-layout-size-defined" style="width:1px;height:1px;" i-amphtml-layout="fixed"><script type="application/json">{"optoutElementId":"__gaOptOutExtension"}</script></amp-analytics>

    With this setup, I would like to send core web vital information like CLS LCP and FID to my google analytics. However, I couldn’t find an example that is for Google Tag manager.

    Could you or someone help in providing an example? Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out. I replied to your question in the Site Kit forums just now. If you’re looking to use the Analytics tab within the AMP plugin you can add the snippets described in this documentation as a new entry, using googleanalytics as the type and with your own UA-xx Analytics property ID.

    If using Google Tag Manager you can follow this guide. Once you’ve setup the correct tags and published within an AMP container you can use Site Kit to insert your AMP Container snippet to your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Capture Core Web Vitals with AMP-ANALYTICS’ is closed to new replies.