Skip to content

Tracking user video views #96

@npegman

Description

@npegman

In documentation, it says:

How to track YouTube videos playing in modal-video by GA4? Enable JS API. Turn enablejsapi property to 1. Load YouTube Iframe API. Add <script src="https://www.youtube.com/iframe_api"></script> in HTML file.

What isn't clear from the documentation is what functionality this brings. The YouTube API lets you bind events for 'onReady' and 'onStateChange' which is what I'm after. Is this possible with modal-video? If so, I don't see any events in the modal-video documentation, how is this accomplished?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions