Send in-app purchase events to Statsig

RevenueCat can automatically send billing, subscription, and revenue metrics from iOS and Android to your Statsig project.

Use the Statsig integration to:

  • Measure revenue impact

    Compute how every new product improvement impacts your business metrics.

  • Power feature gates

    Simplify setting up Feature Gates and be able to automatically A/B test new features.

  • Enable deeper analysis

    Get cancelation and renewal data even without app opens.

Events

Using our Statsig 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 Statsig for a Trial Started event:

JSON
1{
2  "api_version": "1.0",
3  "event": {
4    "aliases": [
5      "yourCustomerAliasedID"
6    ],
7    "app_id": "yourAppID",
8    "app_user_id": "yourCustomerAppUserID",
9    "country_code": "US",
10    "currency": "USD",
11    "entitlement_ids": [
12      "pro_cat"
13    ],
14    "environment": "SANDBOX",
15    "event_timestamp_ms": 1636388733968,
16    "expiration_at_ms": 1636388909000,
17    "id": "UniqueIdentifierOfEvent",
18    "is_family_share": false,
19    "offer_code": null,
20    "original_app_user_id": "OriginalAppUserID",
21    "original_transaction_id": "1000000906455653",
22    "period_type": "TRIAL",
23    "presented_offering_id": "OfferingID",
24    "price": 0,
25    "price_in_purchased_currency": 0,
26    "product_id": "com.revenuecat.monthly_4.99.1_week_intro",
27    "purchased_at_ms": 1636388729000,
28    "store": "APP_STORE",
29    "subscriber_attributes": {},
30    "takehome_percentage": 0.7,
31    "transaction_id": "1000000906455653",
32    "type": "INITIAL_PURCHASE"
33  }
34}

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