Skip to main content
Version: 3.0

Amplitude

Amplitude is a powerful mobile analytics service. With Adapty, you can easily send events to Amplitude, see how users behave, and then make smart decisions.

Adapty provides a complete set of data that lets you track subscription events from stores in one place and sends it to your Amplitude account. This allows you to match your user behavior with their payment history in Amplitude, and inform your product decisions.

How to set up Amplitude integration

To set up the integration with Amplitude, go to Integrations > Amplitude in the Adapty Dashboard, turn on a toggle from off to on, and fill out fields.

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

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

Events and tags

Below the credentials, there are three groups of events you can send to Amplitude from Adapty. Simply turn on the ones you need. Check the full list of the events offered by Adapty here.

We recommend using the default event names provided by Adapty. But you can change the event names based on your needs. Adapty will send subscription events to Amplitude using a server-to-server integration, allowing you to view all subscription events in your Amplitude dashboard.

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)

Adapty.updateProfile(params: builder.build())