'Result from Google Search from Mobile is missing amp-analytics element
We are facing one issue with the AMP pages coming from Google Search Result in mobile. Google removed <amp-analytics> automatically from the website page and Google Analytics is not able to track the clicks.
Our website is Sportswhy
Original AMP page - https://sportswhy.com/amp/
AMP page from Google search - https://www.google.com/amp/s/sportswhy.com/amp/
We are using Astra theme on wordpress with ampforwp plugin for AMP support. Thanks in advance.
Solution 1:[1]
I don't know about the AMPforWP plugin but I do know that if you're using the official AMP plugin then it strips out any duplicate or invalid amp-analytics markup. That is to say if you've inserted any amp-analytics markup or script requests within your theme it's possible they may have been removed by the plugin if there were syntax or placement errors.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | James Osborne |
