• Resolved [email protected]

    (@tlienhart85gmailcom)


    It often happens that when I open a page on my site, the AMP icon at the top is yellow, indicating the page is not AMP valid. The page was previously valid. Hovering over it shows the message: “Validate URL (2 issues; 1 unreviewed)” I click there and the “AMP Validate URL” page opens. It says: “The rechecked URL is free of non-removed invalid markup.” In the error list it says: “No validation errors found”, and the right margin indicates that AMP is enabled.
    In other words, there is no apparent reason that the page went from valid to invalid. This happens occasionally with various pages on the site, and I don’t see any pattern or obvious causes.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Do you have Jetpack active? If so, you may be experiencing this issue: https://github.com/Automattic/jetpack/pull/17034

    It showed sporadically for me as well, so it was difficult to identify. I haven’t had the issue since I made that fix, however. This will be part of Jetpack 9.0.

    Thread Starter [email protected]

    (@tlienhart85gmailcom)

    That’s it! I also frequently get the validation errors for JS in Jetpack, as shown in your screenshot. I understand that I should wait for Jetpack to fix this in a future release.
    By the way, I notified Jetpack support a few weeks ago of another conflict between AMP and Jetpack; that Jetpack stopped counting Users’ clicks on outbound links when I set up AMP. Jetpack support techs were reluctant to admit that this was caused by a Jetpack-AMP conflict, but couldn’t suggest any other credible cause. Hopefully Jetpack is working on that issue too.
    Thanks very much for your prompt and helpful response.

    Plugin Author Weston Ruter

    (@westonruter)

    How does Jetpack count outbound user clicks normally? I’m not aware of that ability. Is that a feature of the Stats module?

    Thread Starter [email protected]

    (@tlienhart85gmailcom)

    I can’t show you an example because it hasn’t worked recently, but when I click on “Site Stats” for a single day, the right column is “Top Posts & Pages”, and under that report of pages is another report called “Clicks”. It says: “your visitors clicked these links on your site”. It should then list all the links clicked, which on my site are links to individual books and magazines that users opened.

    Since I installed AMP, it has said “No clicks recorded. (Clicks are viewers clicking outbound links on your site.)”
    I have no idea how Jetpack actually records the clicks.

    Plugin Author Weston Ruter

    (@westonruter)

    OK, I think the cause is that Jetpack Stats hasn’t been fully implemented in AMP. In particular, they’ve implemented the tracking with amp-pixel, but they haven’t implemented the outbound link click tracking via amp-analytics. I’ll see if I can raise this in a Jetpack issue.

    Thread Starter [email protected]

    (@tlienhart85gmailcom)

    Thanks for confirming that this is a Jetpack issue, and I appreciate you raising it with them. Outbound link tracking is a great tool.

    Plugin Author Weston Ruter

    (@westonruter)

    Please subscribe to this issue for updates on outbound link tracking on AMP pages: https://github.com/Automattic/jetpack/issues/17172

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pages lose validity for no reason’ is closed to new replies.