Identifying web users in your application with RevenueCat
Learn how you can identify users from your onboardings in your application
While there can be countless ways to identify web users in your application, your primary intention should be to bind RevenueCat profile created by FunnelFox to a device that opened your app.
When user opens your app for the first time, they are given a new RevenueCat profile. Your goal should be to identify web user and check if they already have an RevenueCat profile created by FunnelFox.
For example, you can place an authorization screen in your application.
By default, FunnelFox creates an RevenueCat profile with App User ID
equal to their email. Once user provides their email to you, you can check if RevenueCat profile with this email already exists.
In this example, you would need to call RevenueCat logIn function after login form and before presenting content like so:
import Purchases from 'react-native-purchases';
async function signup(email: string, password: string) {
// ... validate email-password pair if necessary
const { customerInfo, created } = await Purchases.logIn(email);
// grant any special feature...
}
You can experiment with any valid way to identify web users, such as deep links with email. The only step you need to perform is to call RevenueCat logIn
function with email from the web.
Updated about 2 months ago