Custom Analytics
SDK custom analytics functions
// custom analytics configuration object
{
init: ()=>{},
config: (player)=>{},
send: (event, properties)=>{}
}const customAnalytics = {
init() {
mixpanel.init("YOUR_MIXPANEL_TOKEN");
},
config(player) {
mixpanel.register({
userID: "xyz-123",
userType: "customer",
});
},
send(event, properties) {
mixpanel.track(event, properties);
},
};Passing the analytics configuration to the SDK
Integration Demo
Documentation and Types:
๐น init
๐น loaded
๐น scene-change
๐น ended
๐น play
๐น first-play
๐น pause
๐น replay
๐น cta-click
๐น sdk-loaded
๐น loading-assets
๐น ready
๐น fingerprint
๐น loaded-from
๐น spinner-state
๐น InteractiveAnalyticsEvents
๐น wtr (Watch Time Range)
๐น error
๐น html-id
๐น uid
Last updated

