amphtml: amp-access analytics on:visible does not trigger on iOS/Safari
What’s the issue?
When using a on:visible amp-analytics trigger such as:
"triggers": { "accessPaywall": { "on": "visible", "request": "pageview", "selector": ".trb_apw_ph" } }
with the amp-access iframe implementation, the event does not trigger on iOS devices and Mac Safari. Scrolling appears to trigger the event.
How do we reproduce the issue?
An example exists here.
- Navigate to the above mentioned Url in a Safari browser.
- Notice that the request to https://analytics.example.com/no-content is not triggered
- Scroll in the browser
- Notice that the https://analytics.example.com/no-content event is triggered
What browsers are affected?
Tested on Mac Safari v11.0.3, iOS 10.3 and iOS 12.0
Which AMP version is affected?
This has been an issue. Currently tested against 1810281911260
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (24 by maintainers)
What are the use cases? We can add both
hidden
andamp-access-hidden
if the point is to give a CSS selector to hook onto.