https://github.com/rudderlabs/rudder-integration-amplitude-android
RudderStack's native Android integration with Amplitude.
https://github.com/rudderlabs/rudder-integration-amplitude-android
amplitude android rudderstack
Last synced: 8 months ago
JSON representation
RudderStack's native Android integration with Amplitude.
- Host: GitHub
- URL: https://github.com/rudderlabs/rudder-integration-amplitude-android
- Owner: rudderlabs
- License: other
- Created: 2020-11-18T09:14:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-07-30T09:13:05.000Z (9 months ago)
- Last Synced: 2025-08-18T06:53:19.512Z (8 months ago)
- Topics: amplitude, android, rudderstack
- Language: Java
- Homepage: https://rudderstack.com
- Size: 258 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# What is RudderStack?
[RudderStack](https://rudderstack.com/) 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](https://github.com/rudderlabs/rudder-server).
## Integrating Amplitude with RudderStack's Android SDK
1. Add [Amplitude](https://amplitude.com) as a destination in the [RudderStack dashboard](https://app.rudderstack.com/) and define `apiKey` and all other applicable settings .
2. Add the dependency under ```dependencies```
```
implementation 'com.rudderstack.android.sdk:core:1.+'
implementation 'com.rudderstack.android.integration:amplitude:1.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
// Amplitude
implementation 'com.amplitude:android-sdk:2.25.2'
implementation 'com.squareup.okhttp3:okhttp:4.2.2'
// For using Google Advertising Id as device id
implementation 'com.google.android.gms:play-services-ads:18.3.0'
```
3. Add these lines to your ```app/build.gradle``` under ```compileOptions``` in the ```android``` tag:
```
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
```
## Initialize ```RudderClient```
```
val rudderClient = RudderClient.getInstance(
this,
WRITE_KEY,
RudderConfig.Builder()
.withDataPlaneUrl(DATA_PLANE_URL)
.withFactory(AmplitudeIntegrationFactory.FACTORY)
.build()
)
```
and if you would like to send Google Advertising Id of the device as device id to the Amplitude then add the below code in the `AndroidManifest.xml` of your app under `` tag:
```
```
## Send Events
Follow the steps from [RudderStack Android SDK](https://github.com/rudderlabs/rudder-sdk-android).
## Contact Us
If you come across any issues while configuring or using this integration, feel free to start a conversation on our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.