Version: 2.67.0

Android SDK Analytics


Youbora pre-integration

The THEOplayer Android SDK supports Youbora analytics out-of-the-box. Below you can find the steps to enable Youbora tracking.

1. Set your Youbora analytics account code on player creation

This makes sure the Youbora analytics library is loaded and tracking is enabled.

Using the Java configuration:

// create player config
THEOplayerConfig playerConfig = new THEOplayerConfig.Builder()
// create player
THEOplayerView tpv = new THEOplayerView(this, playerConfig);

 Using the xml configuration:

app:youboraAccountCode="YOUR_YOUBORA_ACCOUNT_CODE" />

2. (optional) Add extra Youbora options when setting the player source

This allows you to add for example the content title used for tracking

SourceDescription source = sourceDescription("")
youboraOptions().put("content.title", "Elephants Dream").build()

Moat pre-integration

The THEOplayer Android SDK supports Moat analytics (version 2.4.3+) out-of-the-box. Below you can find the steps to enable Moat tracking.

  1. Include the moat native Android SDK in the gradle file:
repositories {
flatDir {
dirs 'libs'
dependencies {
compile (name: 'moat-mobile-app-kit', ext:'aar')
  1. (Optional for Moat 2.4.2+) Ensure Google Play Ads dependencies are included.
    If this is omitted, this functionality will be limited.
dependencies {
compile ''
compile ''
  1. Set your application for THEOplayer when the Application is created:
public class MyApplication extends Application {
@Overridepublic void onCreate() {
  1. Configure the MOAT partner code and namespace and enable Google IMA
new THEOplayerConfig.Builder()
**.analytics(new MoatOptions.Builder("NAMESPACE", "PARTNER_CODE").loggingEnabled(true).build())**

 When you want to make use of moat for tracking advertisements, you should make use of the GoogleImaAdDescription.