• Hi Support,

    Not sure if this is an issue you guys are aware of and it’s in the pipeline for 1.4 but I’ve started getting errors about style tags and javascript. AMP plugin is reporting this as valid content (green tick) but google search console is saying Linked AMP version is invalid. Exact errors reported as follows:
    Custom javascript is not allowed (there looks like a lot of javascript files included in the head section when you view page content)
    Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the document head. (there is a style added that seems to be from a javascript function for the unused gallery – which shouldn’t be running right?)

    Note that until a few days ago search console was saying the page was ok and reporting no amp issues. Now it has 20 that are failing on this issue.

    My thoughts are to place the culprit javascript within a conditional amp test so it isn’t used but my thoughts where that this plugin does this without the need to exclude scripts in amp conditional blocks. Of note other pages on the site do not have the error in search console (probably due to no gallery).

    I also presumed that the removal of javascript would happen before a script amended the DOM or that the amp interpreter would run after the DOM is loaded and remove anything which could break validation at this point. I’m curious to know at which point in the creation of the document does the amp plugin make its changes. I’d think this would be early. I’m using version 1.3 on this site which may I guess be directly related to these sudden errors?

    thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Google search console errors on amp pages’ is closed to new replies.