Rheo
Stripe, RevenueCat, and Superwall events merging into one customer profile
Engineering

Stripe, RevenueCat, and Superwall purchases on one customer profile

Engineering guide to unifying scattered purchase events from Stripe, RevenueCat, and Superwall onto one Rheo customer profile for analytics and segments.

Purchase data scatters fast. iOS subscriptions land in RevenueCat. A marketing site sells annual plans through Stripe. Superwall presents the paywall and fires its own analytics hooks. Growth asks for "customers who upgraded on web after installing from Meta" and engineering opens four dashboards.

This post explains why purchases fragment across systems, how to connect Stripe, RevenueCat, and Superwall to Rheo, identity matching rules that prevent duplicate profiles, what Analytics reports look like afterward, and why Convert paywall nodes still delegate presentation to RC or Superwall: not Rheo billing.

Why purchases scatter

SurfaceTypical billing stackProfile key
iOS in-appRevenueCat + StoreKitapp_user_id
Android in-appRevenueCat + Play BillingSame RC user
Paywall stepSuperwall or RC Paywalls, designed into the flow in Rheo ConvertPurchase and presentation
Web checkoutStripe Customer + Subscriptionstripe_customer_id
Restore / familyStore APIs via RCLinked to RC user

Each system is correct locally. None was designed to be your company's only customer graph. Analytics and lifecycle tools need one id that accumulates:

  • First-touch acquisition
  • Onboarding and flow history
  • Every purchase and entitlement change
  • Segments for Engage

Rheo is that graph for growth workflows: not a replacement ledger for finance.

What Rheo does and does not do

ResponsibilityOwner
Charge cards, invoices, taxStripe
Mobile entitlements, renewals, refundsRevenueCat
Paywall templates, paywall A/B UISuperwall (or RC Paywalls)
Flow design and testing, including the paywall stepRheo Convert
Unified profile, funnel + revenue analyticsRheo Analytics
Lifecycle automations on profile stateRheo Engage

Rheo does not replace RevenueCat, Superwall, or Stripe. It connects them so a trial on iOS and an upgrade on Stripe can appear on one profile when identity is aligned.

Connect each integration

RevenueCat

  1. Configure Purchases.configure at app launch with your RC API keys.
  2. In Rheo dashboard: App settings → Integrations → RevenueCat with offering defaults for paywall flow nodes.
  3. Use a stable Rheo userId aligned with RC app_user_id (same string recommended).

Paywall nodes in flows invoke your RC integration (react-native-purchases-ui or equivalent). Outcomes map to flow branches: see How to use Rheo with RevenueCat.

Events Rheo cares about for analytics:

  • Trial started
  • Purchase completed
  • Restore completed
  • Subscription renewed or canceled (via integration/webhook paths as configured)

Superwall

Superwall owns paywall presentation when you standardize on it for storefront UI. Rheo connects so:

  • Paywall steps in a flow can trigger Superwall where your integration supports it, or
  • You run Superwall placements in parallel while Rheo owns upstream onboarding; purchase outcomes still sync via RC as entitlement source of truth in most stacks.

Document which layer fired the purchase event to avoid duplicate analytics. Common pattern: Superwall shows, RevenueCat records transaction, Rheo records step outcome + forwarded billing signal.

Stripe

For web or hybrid apps:

  1. Connect Stripe in Rheo integrations with appropriate keys/webhooks.
  2. On checkout completion, map stripe_customer_id to the same Rheo userId used in the mobile app when users link accounts.
  3. Forward customer.subscription.created, updated, and deleted (or equivalent) so web MRR appears beside mobile trials on one profile.

Account linking is the hard part: email login, magic link, or explicit "link subscription" screen in-app. Without it, web and mobile remain two profiles until merged.

Identity matching rules

RuleRecommendation
Single canonical idOne Rheo userId per human customer
RC alignmentPurchases.logIn(rheoUserId) when user is identified
Stripe alignmentStore rheo_user_id in Stripe Customer metadata
Anonymous installGenerate Rheo id at first open; alias at signup
Merge policySignup/login merges anonymous history; document edge cases

Anti-patterns:

  • New random id per session
  • Different ids in RC vs Rheo vs Stripe metadata
  • Creating a second profile on every restore

Test matrix:

ScenarioExpected profile
Install → trial on RCOne profile, mobile purchase
Web Stripe buy → app login same emailMerged profile
Restore on new deviceSame profile if same userId login

Analytics reports after unification

With purchases on one profile, Analytics supports:

ReportExample question
Revenue by acquisition channelDid Meta installs pay on web or iOS?
Funnel to first purchaseWhich step blocks trial for ASA users?
Cross-surface LTV directionalWeb annual + mobile add-on
Segmentshas_stripe_subscription AND trial_started_iOS

Break down by media_source, campaign, and flow variant. Export to warehouse if finance needs audited numbers; Rheo focuses on growth decisions, not GAAP reporting.

Retention cohorts can filter paying users only: day-7 among subscribers vs all installs.

Convert paywall nodes still use RC / Superwall

Engineering teams sometimes ask whether unifying profiles means Rheo becomes the paywall.

No. Convert flow nodes declare when and in what context users see a paywall:

onboarding_step_3 → decision (intent) → paywall_node → branch on outcome

The paywall node calls:

  • RevenueCat for native offerings UI, or
  • Superwall for template-based paywalls, per your integration

Rheo records surface_presented, surface_outcome, and links billing events to the profile. Entitlements remain in RC; Stripe subscriptions remain in Stripe.

Experimentation example:

  • Variant A: RC paywall after three screens
  • Variant B: Superwall campaign on screen two for one segment only

Read lift in Analytics on trial and revenue; do not fork entitlement logic into Rheo.

Webhooks and server-side truth

Client-reported outcomes are enough for growth analytics and UX branching. Entitlement enforcement for premium APIs should use server-side checks:

  • RevenueCat webhooks → your backend
  • Stripe webhooks → your backend

Rheo may consume webhook-derived events when configured; mobile apps should still respect RC/Stripe as authority for gating features.

Event sourceUse for
Client SDK outcomeImmediate branch in flow
RC / Stripe webhookServer gates, finance, fraud

Troubleshooting

SymptomCheck
Double revenue on profileDedupe rules; one billing source per transaction
Stripe purchase missingCustomer metadata rheo_user_id; webhook delivery
RC trial missingapp_user_id mismatch; integration enabled
Superwall shows, RC emptyPurchase not finalized; user canceled
Two profiles one personMerge on login; audit id generation

Unifying Stripe, RevenueCat, and Superwall on one Rheo customer profile turns scattered receipts into one growth story: how users found you, what path they walked, and how they paid: without replacing the tools that actually bill them.

Start for free