amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AdSense/Doubleclick Fast Fetch SERP ifi should reset when user swipes back to page

Open keithwrightbos opened this issue 9 years ago • 2 comments

Steps to reproduce:

  • Load page in SERP viewer with at least one slot
  • Ad Request will have ifi=1 for first slot which triggers pageview accounting
  • User swipes away and swipes back. First slot will not report ifi > 1 causing pageview to be lost

Delayed fetch uses master frame for ifi accounting which is destroyed when swiping away and thus does not have this issue. Fast Fetch must be modified so that onResumeCallback resets ifi counter: https://github.com/ampproject/amphtml/blob/master/ads/google/a4a/utils.js#L165

cc/ @ampproject/a4a

keithwrightbos avatar Jun 17 '17 00:06 keithwrightbos

Sadly despite this being the 10k issue, I am closing it in favor of #10004 as it appears that amp-analytics does not send a duplicate pageview event if a user swipes back so the fix is to ensure Delayed Fetch does not trigger pageview accounting on ad requests.

keithwrightbos avatar Jun 17 '17 14:06 keithwrightbos

image congratulations!!

bradfrizzell avatar Jun 18 '17 02:06 bradfrizzell