Send in-app purchase events to mParticle

Sync in-app purchase events like trial starts, subscriptions, cancelations, and more from iOS and Android to mParticle.

Use the mParticle integration to:

  • Power analytics

    Easily connect IAP events to your analytics stack

  • Improve engagement

    Power push notifications or emails to subscibers that aren't using particular features

  • Win back users

    Send discount codes to users that have recently canceled

Events

Using our mParticle 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 mParticle for a trial conversion event:

JSON
1{
2  "events": [
3    {
4      "data": {
5        "source_message_id": "df8bb4e6-148c-4bad-ac91-d4acdfe6a44b",
6        "timestamp_unixtime_ms": 1592479792179,
7        "custom_attributes": {
8          "revenuecat_product_id": "com.phillips-baldwin.dunn.elliott.monthly",
9          "revenuecat_event": "renewal"
10        },
11        "product_action": {
12          "action": "purchase",
13          "transaction_id": null,
14          "total_amount": 29.995,
15          "products": [
16            {
17              "id": "com.phillips-baldwin.dunn.elliott.monthly",
18              "price": 29.995,
19              "quantity": 1,
20              "total_product_amount": 29.995
21            }
22          ]
23        },
24        "currency_code": "USD",
25        "is_non_interactive": true
26      },
27      "event_type": "commerce_event"
28    }
29  ],
30  "source_request_id": "d28919c3-8243-46b6-9eed-3ef0723d3717",
31  "user_attributes": {
32    "revenuecat_color": "blue",
33    "revenuecat_size": "medium",
34    "$mobile": "+34666666666",
35    "$country": "ES",
36    "revenuecat_aliases": [
37      "alias1",
38      "alias2"
39    ],
40    "revenuecat_app_user_id": "user_vkEeY",
41    "revenuecat_original_app_user_id": "user_vkEeY"
42  },
43  "device_info": {
44    "platform": "iOS",
45    "ios_advertising_id": "EA555CD-A666-77BC-B888-99ECB9B99999",
46    "ios_idfv": "C555F5DB-66FC-777F-B8C8-BC99E9B999D9"
47  },
48  "application_info": {
49    "application_name": "Rivera-Chambers",
50    "package": "com.phillips-baldwin.dunn.elliott"
51  },
52  "user_identities": {
53    "email": "subscriber@example.com"
54  },
55  "schema_version": 2,
56  "environment": "development",
57  "mpid": "000000000000000000"
58}

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