Video Tracking
Chartbeat.trackVideo({
viewId: '/video/123',
title: 'My Video',
thumbnail: 'https://cdn.example.com/thumb.jpg',
duration: 300,
playState: 'playing',
engagedTime: 0,
contentTime: 0,
playerTime: 0,
});Name
Description
// Periodically update as playback progresses
Chartbeat.updateVideoPlayState(
'playing', // playState
300, // duration (s)
12, // engagedTime (s)
45, // contentTime (s)
45 // playerTime (s)
);Last updated
Was this helpful?