Track in-app purchase events in Amplitude

Use in-app purchase event from iOS and Android in Amplitude to find patterns in customer behavior and inform marketing strategies.

Use the Amplitude integration to:

  • Follow cohorts

    Follow a cohort throughout their lifecycle to realize overarching trends.

  • Identify customer paths

    Measure the path of a user from marketing material to the purchase of a subscription

  • Connect product usage to IAPs

    Track ustomers based on specific actions, such as watching a specific episode of a show after subscribing.

Events

Using our Amplitude integration you can connect the following events:

  • Initial Purchase
  • Trial Started
  • Trial Converted
  • Trial Cancelled
  • Renewal
  • Cancellation
  • Uncancellation
  • Non Subscription Purchase
  • Billing Issues
  • Expiration
  • Product Change
    Try it now

Sample Event

Below is sample JSON that is delivered to Airship for a trial conversion event

JSON
1{
2  "api_key": "yourAmplitudeAPIKey",
3  "event": {
4    "event_type": "Trial Conversion Event",
5    "partner_id": "revenuecat", 
6    "insert_id": "d61ed8b3-d4ed-436e-80b6-a69dabe44855", 
7    "time": 1655322275000, 
8    "platform": "iOS", 
9    "revenue": 139.993, 
10    "productId": "rc_3999_1y_1w0", 
11    "event_properties": {
12      "subscriber_attributes": {
13        "$attConsentStatus": "denied", 
14        "$amplitudeDeviceId": "123a4b56-7890-12cd-345e-67f90gh1ij1k"
15       }, 
16       "period_type": "NORMAL", 
17       "purchased_at": "2022-06-15T19:44:35Z", 
18       "expiration_at": "2022-06-22T19:44:35Z", 
19       "environment": "SANDBOX", 
20       "entitlement_id": null, 
21       "entitlement_ids": ["premium"], 
22       "presented_offering_id": null, 
23       "transaction_id": "2000000080909203", 
24       "original_transaction_id": "2000000080909203", 
25       "aliases": ["$RCAnonymousID:e35dd5b6732f4e1aad8c398d635e83e0"], 
26       "original_app_user_id": "$RCAnonymousID:e35dd5b6732f4e1aad8c398d635e83e0", 
27       "store": "APP_STORE", 
28       "app_user_id": "$RCAnonymousID:e35dd5b6732f4e1aad8c398d635e83e0", 
29       "product_id": "rc_3999_1y_1w0", 
30       "currency": "USD", 
31       "revenue": 139.993
32      }, 
33    "user_id": "$RCAnonymousID:e35dd5b6732f4e1aad8c398d635e83e0""
34  }
35}

Ready to get started?

We saved 6,000+ engineering hours per year by switching to RevenueCat

Kemal Ugur, Pixery LabsKemal Ugur, Pixery Labs
Read case study