Tealium Android Module - Debug

Tealium Android Module - Debug

by 2 weeks ago - edited 10 hours ago by (59 Views)
This guide for the Tealium-Android Debug Module covers the following topics:

Features

  • Review App+Tealium integration
  • Inspection of Tealium track calls
    • data
    • response headers
  • Review configuration settings

Requirements

Installation & Configuration

Option 1: Maven Dependency

In <PROJECT_ROOT>/build.gradle, add Maven:

allprojects {
repositories {
jcenter()

maven {
url "http://maven.tealiumiq.com/android/releases/"
}

}
}

 In <PROJECT_ROOT>/<MODULE>/build.gradle, add dependency: 

dependencies {
compile 'com.tealium:debugmodule:1.0'{
transitive = true
}
}

 

If Maven dependency does not import external library dependencies, please add the following dependencies:

dependencies {
compile 'org.nanohttpd:nanohttpd:2.3.1'
compile 'org.nanohttpd:nanohttpd-websocket:2.3.1'
compile 'com.tealium:debugmodule:1.0'
}

 

Option 2: Mannually Add Dependency

In <PROJECT_ROOT>/build.gradle add flatDir:

allprojects {
    repositories {
        jcenter()
        flatDir {
            dirs 'libs'
        }
    }
}

Add tealium-debugmodule.aar to <PROJECT_ROOT>/<MODULE>/libs

Add reference to <PROJECT_ROOT>/<MODULE>/build.gradle add the dependency 

dependencies {
    compile(name:'tealium.debugmodule-5.1.0', ext:'aar')

 

 

Methods

Enable Debug Module

DebugModule.setupDebugModule(<config>)
Parameters Description Example Value
config Tealium.Config config
// SAMPLE
// Simple Enablement
String tealiumInstanceId = ...
Tealium.Config config = ...

DebugModule.setupDebugModule(config);
Tealium.createInstance(tealiumInstanceId, config);

Debug Queue Max Limit (Optional)

config.setOverrideDebugQueueMaxLimit(<limit>)
Parameters Description Example Value
limit integer queue limit (Default: 100) 50
// SAMPLE
String tealiumInstanceId = ...
Tealium.Config config = ...
config.setOverrideDebugQueueMaxLimit(25);

DebugModule.setupDebugModule(config);
Tealium.createInstance(tealiumInstanceId, config);

Additional Resources

Change Log

- 1.0:

  • Initial Release