Learn how to set up integration with Amplitude

To integrate Amplitude go to Integrations > Amplitude and set credentials.

You need to enter API Key into Adapty. To find a token go to your Project settings in Amplitude. In case you need help refer to official docs.

Amplitude API key. Copy in and paste into Adapty

Along with events, Adapty also sends the subscription status and subscription product id to the Amplitude user properties.

SDK configuration

Use Adapty.updateProfile() method to set amplitudeDeviceId or amplitudeUserId. If not set, Adapty uses your user ID (customerUserId) or if it's null Adapty ID. Make sure that the user id you use to send data to Amplitude from your app is the same one you send to Adapty.

import Amplitude 

let builder = AdaptyProfileParameters.Builder()
            .with(amplitudeUserId: Amplitude.instance().userId)
            .with(amplitudeDeviceId: Amplitude.instance().deviceId)

//for Amplitude maintenance SDK (obsolete)
val amplitude = Amplitude.getInstance()
val amplitudeDeviceId = amplitude.deviceId
val amplitudeUserId = amplitude.userId

//for actual Amplitude Kotlin SDK
val amplitude = Amplitude(
        apiKey = AMPLITUDE_API_KEY,
        context = applicationContext
val amplitudeDeviceId =
val amplitudeUserId =


val params = AdaptyProfileParameters.Builder()
Adapty.updateProfile(params) { error ->
    if (error != null) {
        // handle the error
import 'package:amplitude_flutter/amplitude.dart';

final Amplitude amplitude = Amplitude.getInstance(instanceName: "YOUR_INSTANCE_NAME");

final builder = AdaptyProfileParametersBuilder()
     ..setAmplitudeDeviceId(await amplitude.getDeviceId())
     ..setAmplitudeUserId(await amplitude.getUserId());

try {
     await adapty.updateProfile(;
} on AdaptyError catch (adaptyError) {
     // handle error
} catch (e) {}
import { adapty } from 'react-native-adapty';

try {
  await adapty.updateProfile({
    amplitudeDeviceId: deviceId,
    amplitudeUserId: userId,
} catch (error) {
  // handle `AdaptyError`
var builder = new Adapty.ProfileParameters.Builder();

Adapty.UpdateProfile(builder.Build(), (error) => {
    // handle error