Track video playback
Let's say you have a video on your landing page, and you want to know if people watched it. We could track the following actions:
User started playing the video
User paused playing the video (we want to know how far they watched before pausing)
User reached the end of the video
We can use a combination of Tags and Events for tracking those actions:
HTML5 <video> playback tracking example
This code works well if you have only one video, if you want to track many different video elements, see below 👇
Creating a re-usable video playback tracking function
To track multiple videos, you could also add this code to your JS scripts:
After this, to use it, you could do:
Last updated