RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.
More information on RudderStack can be found here.
repositories {
maven { url "https://dl.bintray.com/rudderstack/rudderstack" }
}
- Add the dependency under
dependencies
implementation 'com.rudderstack.android.sdk:core:1.+'
implementation 'com.rudderstack.android.integration:lotame:1.0.4'
- If your lotame urls follow the HTTP protocol, you need to allow the ClearTextTraffic for your App. Add
android:usesCleartextTraffic="true"
in your<application>
tag of your app'sAndroid Maifest
file. After adding the above text, the file would look something like below:
<application
...
android:usesCleartextTraffic="true"
...>
<activity>
...
</activity>
</application>
Add the following code under the onCreate
method of your Application
class.
val rudderClient: RudderClient = RudderClient.getInstance(
this,
WRITE_KEY,
RudderConfig.Builder()
.withDataPlaneUrl(DATA_PLANE_URL)
.withFactory(LotameIntegrationFactory.FACTORY)
.build()
)
You can get notified about the Pixel syncs by registering a callback. The code snippet below shows the example:
rudderClient!!.onIntegrationReady("Lotame Mobile") {
(it as LotameIntegration).registerCallback { urlType, url ->
// urlType => "bcp", "dsp"
// url => complete url with all values replaced
println("LotameSync: $urlType : $url")
}
}
Follow the steps from our RudderStack Android SDK.
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.