Solved

Mixpanel Brightcove integration

  • 30 January 2024
  • 1 reply
  • 20 views

Badge

Is there a way to integrate between mixpanel and brightcove?

We want to know the exact video duration watched by a user on mixpanel?

icon

Best answer by Michael Arguin 30 January 2024, 21:29

View original

1 reply

Hello @Gopichand A, Brightcove is able to retrieve MixPanel events via our Interactivity Embed API: https://apis.support.brightcove.com/interactivity/embed-api/reference.html, specifically the onTrackingEvent() handler.  Hope this helps!

 

Best, Michael
 

onTrackingEvent (optional)

Used to intercept playback statistics. Can be used, for example, to track playback statistics in MixPanel.

hapyak.viewer({
onTrackingEvent: function(data) {
console.log('Brightcove Interactivity / ' + data.event, data.properties);
}
});

JavaScript

There is a built in MixPanel tracking event function that will push the tracking events into your MixPanel instance.

hapyak.viewer({
onTrackingEvent: hapyak.mixpanelTrackingEventListener({mixpanel: window.mixpanel})
});

Reply