What is RudderStack?
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.
Integrating MoEngage with RudderStack's Android SDK
-
Add MoEngage as a destination in the Dashboard and define
apiKey
. -
Add these lines to your
app/build.gradle
repositories {
maven { url "https://dl.bintray.com/rudderstack/rudderstack" }
}
- Add the dependency under
dependencies
// Rudder core sdk and moengage extension
implementation 'com.rudderstack.android.sdk:core:1.+'
implementation 'com.rudderstack.android.integration:moengage:1.0.0'
// moengage core sdk
api 'com.moengage:moe-android-sdk:10.5.00'
// gson
implementation 'com.google.code.gson:gson:2.8.6'
Initialize RudderClient
val rudderClient: RudderClient = RudderClient.getInstance(
this,
<WRITE_KEY>,
RudderConfig.Builder()
.withDataPlaneUrl(<DATA_PLANE_URL>)
.withFactory(MoengageIntegrationFactory.FACTORY)
.build()
)
Send Events
Follow the steps from the RudderStack Android SDK.
Contact Us
If you come across any issues while configuring or using this integration, feel free to start a conversation on our Slack channel. We will be happy to help you.