RevenueCat App User ID: what changes when a guest signs in?
Keep guest and signed-in subscription activity tied to the right customer. Test aliases, logIn and purchase restores before release.

A subscription can look like two customers in your reporting when someone starts as a guest and later signs in. Before changing a customer count, separate the identifiers RevenueCat sent from the account your app can actually verify.
Give signed-in accounts a stable ID
Use an opaque, unique account ID from your own system as the RevenueCat App User ID for a signed-in customer. Keep it the same across devices for that account. Don’t use an email address, a device ID or an ID that changes every time a session starts. Pass the ID to the SDK after your app has authenticated the account; the ID itself is not proof of authentication.
If your app allows guests to buy or start a trial, you may have a RevenueCat-generated anonymous ID before a person signs in. Record that it was anonymous rather than stretching it into an app account of its own.
Treat sign-in and purchase restore as different steps
Calling the SDK’s logIn with the known account ID can link its CustomerInfo with the anonymous ID. RevenueCat documents when it merges them: if the destination already has an anonymous alias, an anonymous-to-known login can switch customers without merging or moving the purchase. Don’t assume every login transfers a subscription. Restore behavior is a separate project setting, so check the policy you actually configured.
RevenueCat: how customer identification and aliases work · RevenueCat: restoring purchases
Count known accounts, not event identifiers
In a webhook, app_user_id, original_app_user_id and aliases can refer to one RevenueCat customer. Keep the event ID for delivery deduplication, but keep it separate from customer identity. Associate known, verified aliases with the appropriate app account. Leave an ambiguous match unresolved for review rather than joining two real accounts by email, a store receipt or a coincidental identifier.
Prove it in a sandbox first
Test a guest purchase or trial, sign in, then compare the returned CustomerInfo and your event records. Try a reinstall or another device, and test a user-initiated restore under your configured rules. Include a destination account that already has an anonymous alias. Check both the entitlement you present and the account you count, including cases where they shouldn’t move. A working test doesn’t retroactively repair older reporting.