The Blings SDK enables easy integration of your analytics solution, such as Google Analytics, Mixpanel, or Amplitude, with MP5 video playback.
By adding a small piece of code, you can track various video analytics, including events like "video is ready", button clicks, scene changes, play and pause, and more. All these analytics will be sent directly to your system.
By integrating the Blings SDK, you can easily analyze the behavior of users while they watch the video as part of the entire user journey, all within your existing tool set. This unified approach allows you to gain valuable insights and understand how users interact with the video content, and compare that to the results of this communication.
SDK custom analytics functions
Blings SDK requires three functions to set up analytics:
init - This function is used to set up the tool and pass the analytics token. It is called immediately.
config - This function is used to set parameters such as page and user ID. It is called once the player has received user data.
send - This is the main function that gets called for every playback event.
To integrate your analytics platform, you have two options:
Per Instance Configuration (Recommended): Set the customAnalytics configuration in the analyticsConfig property, inside settings property, when you call BlingsPlayer.create. (This configuration takes precedence over the global configuration)
Global Configuration: Set BlingsPlayer.config.analytics function, that returns the configuration object, before running the BlingsPlayer.create function. This will set the custom analytics for each player created.
Integration Demo
Feel free to explore the provided demo and check the console for relevant logs to see how the events are being tracked.