The StreamhubAnalytics plugin is added to any Universal player through the Kaltura Management Console.
If you use the iframe embed method to add the Kaltura Universal player to your html page, follow these steps:
- Log in to the KMC and navigate to http://kmc.kaltura.com/index.php/kmc/kmc4#studio|universal_studio.
- Select a player to edit.
- In the Plugin area, expand the UI Variables tab, add the following key-value pair replacing the section___ANALYTICS_ID___ with your own analyticsId:
- key: iframeHTML5Js1
- value: http://static.streamhub.tv/kaltura/___ANALYTICS_ID___/plugin.js
If you use any other embed method (auto, dynamic or thumbnail embed) to add the Kaltura Universal player to your html page, you can simply add a script tag in your html pages providing your analyticsId.
<!-- add StreamhubAnalytics plugin script tag --> http://static.streamhub.tv/kaltura/___ANALYTICS_ID___/plugin.js