amphtml
amphtml copied to clipboard
AdSense/Doubleclick Fast Fetch SERP ifi should reset when user swipes back to page
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
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.
congratulations!!