AMP analytics no longer working
-
After updating to MonsterInsights 6 AMP analytics is no longer being inserted into AMP pages. I was wondering why I had a drop in traffic after that update. If you use Yoast Glue for Amp Pages you need to now insert the code below with you tracking code in SEO -> AMP or upgrade to MonsterInsights Pro.
https://developers.google.com/analytics/devguides/collection/amp-analytics/
<amp-analytics type="googleanalytics"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics>
https://yoast.com/setting-up-wordpress-for-amp-accelerated-mobile-pages/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘AMP analytics no longer working’ is closed to new replies.