Amplitude

Purchasely can send all your transactional events to Amplitude to enrich your users data.

Events

The following events will be sent. You can set the event name of your choice in the console.

Event

Description

PURCHASE_VALIDATED

Sent when the user purchased a product wether it is the start of a trial or a regular purchase of a consumable product.

RENEWAL_DISABLED

Sent when the user deactivates the renewal of a subscription wether it is in trial period or not.

RENEWAL_ENABLED

Sent when the user reactivates

SUBSCRIPTION_EXPIRED

Sent when the subscription actually ends

SUBSCRIPTION_RENEWED

Sent when a subscription renews

TRIAL_STARTED

Sent when a trial starts

TRIAL_CONVERTED

Sent when a user converts from a free trial to a normal paid-period

TRIAL_NOT_CONVERTED

Sent when a user finishes it's trial period without renewing to a paid-period

Associate users to events

let amplitudeSessionId = Amplitude.instance().getSessionId()
Purchasely.setAttribute(.amplitudeSessionId, value: String(amplitudeSessionId))

Last updated

© Purchasely 2020-2023