If you have a lot of videos embedded on your website which are not YouTube videos, it will be slightly difficult for you to track the video events using in built options of Google Tag Manager. However, we can use Custom HTML tag with few triggers and variables to achieve the tracking for any kind of HTML 5 video. If your video player uses HTML 5 format, then the below library can be used.
Here, we will be tracking "play", "pause", "complete", "milestones - 25, 50 and 75%" with the library and all of these are tracked as events in Google Analytics. Let us zero in the data we want to see in the reports. I want the event fired from the video to contain the below values
A blog about Digital Analytics, Tag Management Systems, Web Programming, anything and everything about JavaScript
Showing posts with label Video Tracking. Show all posts
Showing posts with label Video Tracking. Show all posts
Wednesday, April 15, 2020
Subscribe to:
Posts
(
Atom
)