RevenueCat

Definition and importance of RevenueCat integration

The RevenueCat integration allows Statsig to pull billing, subscription, and revenue metrics directly into your Statsig projects. This enables you to easily optimize in-app purchases and revenue using Statsig's powerful feature gates and experimentation tools, without requiring any additional logging or setup.

By connecting RevenueCat with Statsig, you can:

  • Analyze purchase data: Gain insights into how different user segments interact with your purchase flow and which features drive revenue.

  • Experiment with pricing: Test different pricing strategies, promotional offers, or subscription plans to optimize your revenue stream.

  • Measure feature impact: Understand how each new feature or improvement affects key business metrics like conversion rate, ARPU, and LTV.

Integrating RevenueCat and Statsig provides a seamless mechanism for experimentation and analysis, empowering you to make data-driven decisions that grow your business. With accurate, real-time data flowing from RevenueCat to Statsig, you can confidently iterate on your product and maximize its revenue potential.

Configuring and implementing the integration

To enable the RevenueCat integration, navigate to the Statsig console's Integrations page. Find the RevenueCat card and toggle the integration on.

Next, set up the integration in your RevenueCat dashboard. Choose Statsig from the Integrations menu and enter your Statsig Server Secret. Click Save to establish the connection.

For accurate data association, ensure the RevenueCat app user ID matches the Statsig user ID. This allows RevenueCat data to be linked with Statsig feature gates and experiments. You can set a custom app user ID in RevenueCat by following their Identifying Users documentation.

When testing the integration, you can enable the ingestion of sandbox events from RevenueCat into Statsig. This option is available in the Statsig Integrations page and is useful for debugging purposes. To verify the integration is working correctly:

  1. Make a sandbox purchase with a new user in your app

  2. Check the Customer History page in RevenueCat to confirm the Statsig integration event was delivered successfully

  3. Navigate to your Statsig app's Metrics section to view the delivered event in the Log Stream

By configuring the RevenueCat integration and ensuring user ID consistency, you can seamlessly optimize purchases and revenue using Statsig's powerful feature gating and experimentation tools. This integration eliminates the need for additional logging, streamlining your analytics workflow.

Event types and data structure

The RevenueCat integration tracks various event types, providing a comprehensive view of user transactions. These include:

  • Initial purchase: When a user purchases a new subscription

  • Renewal: An existing subscription is renewed or a lapsed user resubscribes

  • Cancellation: A subscription or non-renewing purchase is canceled

  • Uncancellation: A non-expired canceled subscription is re-enabled

  • Non-subscription purchase: A one-time, non-renewing purchase is made

  • Subscription paused: A subscription is temporarily paused (Play Store only)

  • Expiration: A subscription expires and access should be removed

  • Billing issue: A problem occurred while charging the subscriber

  • Transfer: Transactions and entitlements were transferred between app user IDs

Each event type has a specific JSON structure containing relevant data. For example, an initial purchase event includes:

The event data includes key attributes such as:

  • Timestamps: When the event occurred, when the purchase was made, and when it expires

  • Product details: Product ID, entitlement IDs, and subscription period type

  • Transaction info: Transaction ID, original transaction ID, currency, and price

  • User data: App user ID, original user ID, and subscriber attributes

  • Environment: Production or sandbox

  • Store: App Store, Play Store, or Promotional

By capturing these event types and their associated data, the RevenueCat integration provides Statsig with a wealth of information for analyzing user behavior and optimizing revenue. You can leverage this data to gain insights into subscription trends, identify high-value user segments, and make data-driven decisions to improve your app's monetization strategy.

Join the #1 experimentation community

Connect with like-minded product leaders, data scientists, and engineers to share the latest in product experimentation.

Try Statsig Today

Get started for free. Add your whole team!

Why the best build with us

OpenAI OpenAI
Brex Brex
Notion Notion
SoundCloud SoundCloud
Ancestry Ancestry
At OpenAI, we want to iterate as fast as possible. Statsig enables us to grow, scale, and learn efficiently. Integrating experimentation with product analytics and feature flagging has been crucial for quickly understanding and addressing our users' top priorities.
OpenAI
Dave Cummings
Engineering Manager, ChatGPT
Brex's mission is to help businesses move fast. Statsig is now helping our engineers move fast. It has been a game changer to automate the manual lift typical to running experiments and has helped product teams ship the right features to their users quickly.
Brex
Karandeep Anand
President
At Notion, we're continuously learning what our users value and want every team to run experiments to learn more. It’s also critical to maintain speed as a habit. Statsig's experimentation platform enables both this speed and learning for us.
Notion
Mengying Li
Data Science Manager
We evaluated Optimizely, LaunchDarkly, Split, and Eppo, but ultimately selected Statsig due to its comprehensive end-to-end integration. We wanted a complete solution rather than a partial one, including everything from the stats engine to data ingestion.
SoundCloud
Don Browning
SVP, Data & Platform Engineering
We only had so many analysts. Statsig provided the necessary tools to remove the bottleneck. I know that we are able to impact our key business metrics in a positive way with Statsig. We are definitely heading in the right direction with Statsig.
Ancestry
Partha Sarathi
Director of Engineering
We use cookies to ensure you get the best experience on our website.
Privacy Policy