Skip to main content

Iterable

👍Pro Integration

The Iterable integration is available to all users signed up after September '23, the legacy Grow and Pro plans, and Enterprise plans. If you're on a legacy Free or Starter plan and want to access this integration, migrate to our new pricing via your billing settings.

Iterable can be a helpful integration tool in understanding what stage a customer is in and reacting accordingly. Iterable is a cross-channel platform that powers unified customer experiences and empowers marketers to create, optimize and measure every interaction taking place throughout the customer journey. With Iterable, brands create individualized marketing touch points that earn engagement, solidify trust and galvanize loyal consumer-brand relationships.

With our Iterable integration, you can:

  • Create an event to track unsubscribes that automatically triggers an email to users who cancel.
  • Start a campaign to send users who have been with you for over a certain length of time a discount code for being a loyal customer.

With accurate and up-to date subscription data in Iterable, you’ll be set to turbocharge your users’ engagement ⚡️

Integration at a Glance

Includes RevenueSupports Negative RevenueSends Sandbox EventsIncludes Customer AttributesSends Transfer EventsOptional Event Types
Requires API Keynon_subscription_purchase_event uncancellation_event subscription_paused_event expiration_event billing_issue_event product_change_event

Events

The Iterable integration tracks the following events:

RevenueCat Event TypeIterable Event TypeDefault Event NameDescriptionApp StorePlay StoreAmazonStripePromo
Initial PurchasePurchaserc_initial_purchase_eventA new subscription has been purchased.
Trial StartedPurchaserc_trial_started_eventThe start of an auto-renewing subscription product free trial.
Trial ConvertedPurchaserc_trial_converted_eventWhen an auto-renewing subscription product converts from a free trial to normal paid period.
Trial CancelledCustomrc_trial_cancelled_eventWhen a user turns off renewals for an auto-renewing subscription product during a free trial period.
RenewalPurchaserc_renewal_eventAn existing subscription has been renewed or a lapsed user has resubscribed.
CancellationCustomrc_cancellation_eventA subscription or non-renewing purchase has been cancelled. See cancellation reasons for more details.
UncancellationCustomrc_uncancellation_eventA non-expired cancelled subscription has been re-enabled.
Non Subscription PurchasePurchaserc_non_subscription_purchase_eventA customer has made a purchase that will not auto-renew.
Subscription PausedCustomrc_subscription_paused_eventA subscription has been paused.
ExpirationCustomrc_expiration_eventA subscription has expired and access should be removed. If you have Platform Server Notifications configured, this event will occur as soon as we are notified (within seconds to minutes) of the expiration.
Billing IssueCustomrc_billing_issue_eventThere has been a problem trying to charge the subscriber. This does not mean the subscription has expired. Can be safely ignored if listening to CANCELLATION event + cancel_reason=BILLING_ERROR.
Product ChangeCustomrc_product_change_eventA subscriber has changed the product of their subscription. This does not mean the new subscription is in effect immediately. See Managing Subscriptions for more details on updates, downgrades, and crossgrades.

For events that have revenue, such as trial conversions and renewals, RevenueCat will automatically record this amount along with the event in Iterable.

Setup

1. Set Iterable User Identity

In order to associate RevenueCat data with the Iterable User Profile, either the RevenueCat $email or $iterableUserId Attribute should be set in RevenueCat. The preferred method is to send the $email attribute. If neither of these fields exist, RevenueCat will fallback to the RevenueCat app user ID. You can read more about Iterable user profiles in Iterable's Identifying the User documentation.

📘

The $iterableUserId can be up to 52 characters long.

(optional) Set Iterable Campaign ID and/or Template ID

To attribute an event to an Iterable Campaign ID and/or Template ID, set the $iterableCampaignId and/or $iterableTemplateId attributes through the RevenueCat SDK or REST API.

// Configure Purchases
Purchases.configure(this, "public_sdk_key", "my_app_user_id")

// Initialize Iterable
IterableAPI.initialize(apiKey: "<YOUR_API_KEY>", launchOptions: launchOptions, config: config)

// Setting Iterable email or userId
IterableAPI.email = "user@example.com"
IterableAPI.userId = "user123"

// Set $email or $iterableUserId, (optional) $iterableCampaignId, $iterableTemplateId
Purchases.shared.attribution.setAttributes(["$email": IterableAPI.email,
"$iterableUserId": IterableAPI.userId,
"$iterableCampaignId": "123",
"$iterableTemplateId": "123"])

2. Send RevenueCat Events to Iterable

After you've set up the Purchase SDK and Iterable SDK to have the same user identity, you can "turn on" the integration and configure the event names from the RevenueCat dashboard.

  1. Navigate to your app in the RevenueCat and find the Integrations card in the left menu. Select + New

  1. Choose Iterable from the Integrations menu
  2. Add your Iterable Server-side API key to the API key field in RevenueCat
  3. Enter the event names that RevenueCat will send or choose the default event names
  4. Select whether you want sales reported as gross revenue (before app store commission), or after store commission and/or estimated taxes.

Iterable configuration page

📘Iterable sandbox environment

Iterable recommends having a production and sandbox project to separate live and testing environments. You can input both keys in the RevenueCat Iterable settings page.

Testing the Iterable integration

Make a sandbox purchase with a new user

Simulate a new user installing your app, and go through your app flow to complete the sandbox purchase.

Check that the Iterable event delivered successfully

While still on the Customer View, select the purchase event in the Customer History page and make sure that the Iterable integration event exists and was delivered successfully.

Check Iterable dashboard for the delivered event

Navigate to your Iterable dashboard > Insights > Logs. To find Purchase events navigate to 'Purchases' and to find Custom events navigate to 'Events'. You will see events RevenueCat has dispatched to the Iterable under 'Purchase Log' and 'Events log' respectively.

Sample Events

Below are sample JSONs that are delivered to Iterable for events.

{
"id": "12345678-1234-1234-1234-123456789012",
"total": 29.99,
"user": {
"userId": "$RCAnonymousID:87c6049c58069238dce29853916d624c",
"preferUserId": true,
"dataFields": {
"subscriber_attributes": {},
"app_user_id": "$RCAnonymousID:87c6049c58069238dce29853916d624c",
"original_app_user_id": "$RCAnonymousID:87c6049c58069238dce29853916d624c"
}
},
"items": [
{
"id": "premium_freetrial",
"name": "rc_initial_purchase_event",
"price": 29.99,
"quantity": 1,
"dataFields": {
"country_code": "US",
"currency": "USD",
"entitlement_ids": [
"premium"
],
"expiration_at_ms": 1683233732021,
"environment": "PRODUCTION",
"is_family_share": false,
"offer_code": null,
"period_type": "NORMAL",
"presented_offering_id": null,
"store": "PLAY_STORE",
"takehome_percentage": 0.85,
"original_transaction_id": "GPA.1234-5678-9012-34567"
}
}
],
"createdAt": 1651691577776
}
{
"id": "12345678-1234-1234-1234-123456789012",
"total": 4.99,
"user": {
"userId": "$RCAnonymousID:87c6049c58069238dce29853916d624c",
"preferUserId": true,
"dataFields": {
"subscriber_attributes": {
"$email": {
"value": "first_last@gmail.com",
"updated_at_ms": 1659292070233
},
"$iterableUserId": {
"value": "12345A6B-C789-0D1E-FG23-456H6I7J890K",
"updated_at_ms": 1659292070233
},
},
"app_user_id": "$RCAnonymousID:87c6049c58069238dce29853916d624c",
"original_app_user_id": "$RCAnonymousID:87c6049c58069238dce29853916d624c"
},
"email": "first_last@gmail.com"
},
"items": [
{
"id": "100_tokens",
"name": "rc_non_subscription_purchase_event",
"price": 4.99,
"quantity": 1,
"dataFields": {
"country_code": null,
"currency": "USD",
"entitlement_ids": [
"pro"
],
"expiration_at_ms": 1659897848466,
"environment": "PRODUCTION",
"is_family_share": null,
"offer_code": null,
"period_type": "NORMAL",
"presented_offering_id": null,
"store": "APP_STORE",
"takehome_percentage": 1.0,
"original_transaction_id": "123456789012345"
}
}
],
"createdAt": 1659293048466
}

Considerations

Refunds

Revenue for Iterable campaign reporting will not be accurate due to refund events. You can build custom workflows around a "refund" event and independently calculate the total revenue refunded for your campaigns.

Purchase event tracking

Iterable provides two event-tracking APIs:

  • Track Purchase API: This aggregates all purchase-related events into a single purchase event for tracking overall revenue. However, it does not distinguish between the types of purchase events (like initial purchases, trials, renewals, etc.).
  • Track Custom Event API: While it allows for detailed tracking of individual purchase events, it doesn't support revenue tracking as that is exclusive to the Track Purchase API.

You have the flexibility to use one or both APIs depending on whether you need detailed insights into specific events or an aggregate revenue perspective.

Ensure Allow new custom events into the system is enabled in your Iterable project settings, or manually add all the event names you want to track as custom events to the Iterable project settings.

Learn more about tracking events with this integration in Iterable RevenueCat's documentation or Iterable's tracking docs.