• Dear admin,

    Can you please assist me with the answer to this problem? I keep getting this on Google amp test.

    “AMP page is valid with warnings
    It is eligible for some AMP-specific features in Google Search results, but is not fully compliant with AMP best practices”

    What I have done:

    I have tried to deactivate and reactivate all my plugins, but it doesn’t solve the problem. I have reset and reconfigured and it doesn’t solve the problem. I am sure the site is running very well. I have saved permalink too and nothing changed. A review would be appreciated.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We inspected your website in the AMP validator and we are getting the “script tag contains invalid JSON that cannot be parsed” error (https://prnt.sc/ZJ62uho2xjdx).

    For that, please refer to the below tutorial and let me know if you have any queries.
    Reference tutorial: https://ampforwp.com/tutorials/article/how-to-troubleshoot-the-script-tag-contains-invalid-json-that-cannot-be-parsed-error-in-amp-validator/

    Thread Starter naijacenter

    (@naijacenter)

    HI, thank you for your reply. I have checked and there is no problem with the google analytics code, I have also removed some codes from the site but don’t make any changes.

    I have not added a code to the site recently, so I am not sure what the problem is.

    Thread Starter naijacenter

    (@naijacenter)

    What I have done.

    It is showing valid now after I did the following:

    1. deactivate the analytics section as that was showing as wrong json.
    2. deactivate ads section – codes were causing errors.
    3. deactivate pwa for wp.
    4. deactivate IP anonymous.

    These are all caused by enabling some certain parts of the amp settings.

    So, is there any advice? I will like to reactivate the google analysis but can’t if it is causing json error on the site.

    Thread Starter naijacenter

    (@naijacenter)

    [CDATA[*/{“vars”:{“gtag_id”:”UA-176xxxx76-1″,”config”:{“UA-176779976-1”:{“groups”:”default”}}},”triggers”:{“trackPageview”:{“on”:”visible”,”request”:”pageview”}}}/*]]>*/</script> </amp-analytics>

    I reactivated the analytics section and the error on amp is back. How do I resolve it or is it something that need rectification from your end?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sorry for the delay in getting back. Now the warning is gone. Can you please cross check it once and let me know back the response?

    Thread Starter naijacenter

    (@naijacenter)

    Yes, the warning is gone but we have to remove all our ads code. Every time we put back the code, the error returns.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    If possible, please reach us through our site.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘AMP not valid on Google’ is closed to new replies.