Implementing Custom Play/Pause Button for Embedded YouTube Videos Using IFrame Player API
Perficient
JANUARY 7, 2021
Recently, I worked on one bug where GTM tracking was breaking for an embedded YouTube video with a custom play button. On click of the play button, the video was playing perfectly fine, but it was not getting tracked by GTM. Using the API’s JavaScript functions, you can: Queue videos for playback. 5 – video cued.
Let's personalize your content