Skip to main content

Analytics

The analytics metadata should be added to the player configuration:

const playerConfig = {
source: "http://demo.cf.castlabs.com/media/TOS/abr/Manifest_clean_sizes.mpd",
analyticsMetaData: {
live: false,
assetId: 'asset-id',
viewerId: 'viewer-id',
duration: 60, // Duration in seconds
},
}

The steps to enable the supported analytics frameworks are explained below.

Youbora Analytics (Android)

Add the Youbora account code to the SDKConfiguration which is used to initialize the CLVideo component:

const sdkConfig = {
licenseKey: '...',
analytics: {
youbora: {
accountCode: 'your-account-code',
},
},
};