Reputation: 134
I have a video on a website that I have set up using the <video>
tag. I have enabled controls
on the video and was hoping to find a way to track user interactions with the video, for example using the controls or skipping portions of the video.
I know there are options in google analytics that allow you to track this but due to certain limitations that option can't be used. I was hoping if there is a way using only JS to do this?
Upvotes: 0
Views: 634
Reputation: 1071
There are several different events such as seek
and seeking
and volumechange
as per the Mozilla docs. You'll have to be more specific for your use case, but this seems to be enough for what you're looking for: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#Events
Upvotes: 1