Skip to content

[AMP-STORY][analytics] StoryPageVisible does not trigger sometimes #37971

@edoudou

Description

@edoudou

Description

When starting with a visibilityState prerender on my story, if I quickly set it to visible, the event StoryPageVisible triggers for page 0.
If I wait for a few sec (lets say 15s), then set visibilityState to visible, it does not trigger.

Reproduction Steps

Here is an example : https://vhmjjq.csb.app/

  • Open your console and filter the network calls with eventType=storyPageVisible to see the analytics calls.
  • You have a timer to try quickly, or after 15s, and see the difference.

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

2203101844000

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions