• Resolved Anonymusx

    (@anonymusx)


    Hello

    How to add google analytics code in amp plugin?

    I see the “JSON Configuration”: But complicate me.

    My code:

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-112389422-4"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-112389422-4');
    </script>

    Thanks

    • This topic was modified 4 years, 2 months ago by Anonymusx.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to add google analytics code in amp plugin?’ is closed to new replies.