How to add google analytics code in amp plugin?
-
Hello
I use AMP plugin in my site (https://sitesara.com).
this is my analytics code:<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-DPRSFVRQ2G"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DPRSFVRQ2G'); </script>
AMP setting has a option to add analytics code, but I can’t use that.
please see the settings: https://ibb.co/Kzx2Y6H
Ho I can convert my Google analytics code and put in settings?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add google analytics code in amp plugin?’ is closed to new replies.