The tag ‘amp-ad extension .js script’ appears more than once in the document.
-
I updated the plugin to te latest version yesterday evening and woke up to 10 error messages from Google Search Console saying
“The tag ‘amp-ad extension .js script’ appears more than once in the document.”
It would appear as though the new update is auto adding <script type=’text/javascript’ src=’https://cdn.ampproject.org/v0/amp-ad-latest.js’ async custom-element=”amp-ad”></script> which is what is triggering this error
To fix this I had to remove <script async custom-element=”amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script> from my theme
I just want to confirm if my theory about the new plugin update autoinjecting the new amp-ad script tag is correct and if I should worry about this functionality being removed from the plugin at a future date. Thanks
- The topic ‘The tag ‘amp-ad extension .js script’ appears more than once in the document.’ is closed to new replies.