Track Video Views - Articles From the Archive

  • 30 July 2019
  • 0 replies

Userlevel 4
Badge +3
  • Mixpanel Community Team
  • 141 replies

Each week, Mixpanel will release articles from our archives to help you get the most out of Mixpanel. Follow the Topic Tag #fromthearchive to subscribe to these posts and get alerted when they drop.

There are several options for tracking video, specifically how much of a video a user has viewed, in Mixpanel.

Fire Events at Certain Checkpoints

The recommended approach to tracking video views is to fire Events at certain points in the video to understand how much of a video someone has watched - think of the Events you’re firing as checkpoints.

For example, you can have one Event for Video Start, followed by one Event for Video 25% watched (which you would send a quarter of the way through any video session), Video 50% watched, Video 75% watched, Video 100% watched.

From there, you can get a good idea of how much of your videos in general, or of a certain video, your users are watching.

Track Video States

If you want a more general idea of how your users are interacting with a video, track an Event for each video state change whether that’s the user selecting to start the video, pause the video, or finish the video. In JavaScript you’ll have something like this:

mixpanel.track(“Video Play Started”, {
“Video title”:”Title”,
“Video completed”: true,
“Video length in seconds”:200

mixpanel.track(“Video Paused”,{
“Video title”:”Title”,
“Video completed”: false,
“Video time of pause”:112

Use time_event()

Another option would be to use the time_event() function in the JavaScript library: fire an Event when the video starts playing, and fire another Event when the video stops, and then you'd be able to tell the time in between as how much video they watched.

0 replies

Be the first to reply!