A user browses your app anonymously, buys a subscription, then creates an account. If your analytics treats the anonymous visitor and the logged-in account as two people, you double count users, lose the path to purchase, and misread conversion.
RevenueCat’s iOS SDK 5.96.0 (16 October 2026) migrates existing anonymous user IDs when a user logs in. That fixes a common source of orphaned purchases, but your own analytics only benefits if you record the merge and treat it as one identity.
Data Points to Track
- identity_merge: fired when an anonymous ID is linked to an account
- anonymous_id_age_days: how long the user was anonymous
- events_before_login: count of events under the anonymous ID
- purchases_before_login: purchases made before signing in
- login_trigger: paywall, restore, onboarding or settings
- merge_result: success, already linked or failed
- entitlements_after_merge: active entitlements once merged
- login_method: email, Apple, Google or other
- sdk_version: version in use
- duplicate_profile_flag: true when two profiles remain
Setup Steps
- Upgrade to RevenueCat iOS SDK 5.96.0 or later.
- Capture the anonymous ID before you call the login method.
- Call login with your stable account ID.
- Log
identity_mergewith the old and new identifiers, hashed if required. - Alias the same pair in your product analytics tool.
- Check entitlements straight after login and log the result.
- Test a purchase made before signing up, then a restore on a second device.
- Report weekly on merge failures and duplicate profiles.
Actionable Insights
A high share of purchases before login tells you the paywall works before you ask for an account. You may be able to delay sign-up and lift conversion.
Frequent failures or duplicates show where identity breaks, often at restore or second-device sign-in. Fix these first, since they cause support tickets and refund requests.
Compare funnel length before and after merging. Without it, anonymous steps look like separate short journeys and early drop-off appears worse than it is.
Why Identity Quality Matters
Every retention, revenue and cohort figure depends on counting people once. A small identity error compounds: inflated user counts lower your revenue per user, and split journeys hide which onboarding steps lead to a purchase. Treat the merge as a core event, with an owner and a target success rate, not as a background detail the SDK handles for you.
Common Pitfalls
Do not reuse one account ID across several people. Merges cannot be undone cleanly.
Do not log raw email addresses as identifiers in analytics events.
Rolling It Out Safely
Test with real devices, not only simulators. Create an anonymous purchase, sign in on a second device, and check that the entitlement and event history follow the account. Keep a short checklist for support staff so they can spot a duplicate profile quickly and know what to do. After release, watch the merge failure rate for two weeks. A sudden rise usually points to a login change in your own app rather than the SDK, so compare it against your latest release notes.