Errors on Search Console Report
-
After some days, my AMP pages start to be detected. However, it comes with some errors: ‘Incorrectly nested tag’ and ‘Required attribute missing’ on Search Console report. It is caused by the Google analytics tracking code that I added to the AMP pages through AMP Analytics under Analytics tab on your plugin’s setting.
On further investigation (adding #development=1 at the end of the urls on Chrome), the errors pointing to the <script> tag from Google analytics code that are added close to the end of <body>.
Here are what it says:
The mandatory attribute ‘src’ is missing in tag ‘amphtml engine v0.js script’. (see https://www.ampproject.org/docs/reference/spec.html#required-markup)
The mandatory attribute ‘async’ is missing in tag ‘amphtml engine v0.js script’. (see https://www.ampproject.org/docs/reference/spec.html#required-markup)
The parent tag of tag ‘script’ is ‘body’, but it can only be ‘head’. (see https://www.ampproject.org/docs/reference/spec.html#required-markup)
How can I fix these errors? Thanks.
https://www.ads-software.com/plugins/glue-for-yoast-seo-amp/
- The topic ‘Errors on Search Console Report’ is closed to new replies.