amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[amp-next-page] [amp-access] AMP Reader ID Changes on Scrolling through to amp-next-page in amp viewer

Open iingato opened this issue 6 years ago • 4 comments

What's the issue?

The AMP Reader ID (used to meter users via amp-access) is changing on scrolling into amp-next-page in an amp viewer (but not on publisher origin). This means the views are metered separately, so users are able to read additional content.

(This was observed using amp-next-page 0.1 and 1.0 in the implementation.)

How do we reproduce the issue?

  1. Go to https://www.google.com/amp/s/www.forbes.com/sites/rachelsandler/2020/10/30/facebook-temporarily-stops-recommending-political-groups-to-combat-election-misinformation/amp/ in mobile emulator with network tab open in Devtools.
  2. Scroll through and into the second article.
  3. Search for executeAmp in the network tab. You should see two records. Compare the reader_id query params for each of them. They are distinct even though they are for the same session / amp-access scope. (If you open another tab and go to, for example, https://www.google.com/amp/s/www.forbes.com/sites/nicholasreimann/2020/10/29/zeta-was-strongest-hurricane-to-ever-hit-new-orleans-and-could-cause-an-election-day-mess/amp and scroll through, you will see that the reader id of the first article will correspond to that of the first article of the previous stream you looked at and the same for the second article)

What browsers are affected?

Viewers only, Chrome, Pixel 2

Which AMP version is affected?

2011070101001

iingato avatar Nov 18 '20 02:11 iingato

This is another issue related to the implementation, filed by Forbes, that's using this component in production. The other one is #28673.

cc // @nainar

demianrenzulli avatar Nov 18 '20 02:11 demianrenzulli

@dmanek to take a look

nainar avatar Jan 11 '21 23:01 nainar

Flagging a ticket with similar symptoms -- but affecting client id instead of reader id https://github.com/ampproject/amphtml/issues/32305

Cauchon avatar Jan 29 '21 18:01 Cauchon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '23 01:09 stale[bot]