Analytics Reporting

TOP exposes API's for reporting events, warnings, and errors to all configured analytics plugins.

At least one analytics engine must be configured to use the reporting api's

Event

Example of reporting a custom event to all configured analytics engines (see reportEvent):

player.reportEvent({
    name: 'event name',
    data: 'some data'
});

Warning

Example of reporting a custom warning to all configured analytics engines (see reportError):

var AnalyticsErrorSeverity = com.turner.top.sdk.common.analytics.AnalyticsErrorSeverity;

player.reportError({
    data: 'warning data',
    severity: AnalyticsErrorSeverity.Warning
});

Error

Example of reporting a custom error to all configured analytics engines (see reportError):

var AnalyticsErrorSeverity = com.turner.top.sdk.common.analytics.AnalyticsErrorSeverity;

player.reportError({
    data: 'fatal error data',
    severity: AnalyticsErrorSeverity.Fatal
});