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.

  1. Navigate to the above mentioned Url in a Safari browser.
  2. Notice that the request to https://analytics.example.com/no-content is not triggered
  3. Scroll in the browser
  4. 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)

Most upvoted comments

In the short-term, at least, I don’t think amp-access and amp-subscriptions would be using hidden attributes.

What are the use cases? We can add both hidden and amp-access-hidden if the point is to give a CSS selector to hook onto.