Identifying web users in your application with Adapty

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 Adapty 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 Adapty profile. Your goal should be to identify web user and check if they already have an Adapty profile created by FunnelFox.

For example, you can place an authorization screen in your application.

By default, FunnelFox creates an Adapty profile with customerUserId equal to their email. Once user provides their email to you, you can check if Adapty profile with this email already exists.

In this example, you would need to call Adapty identify function after login form and before presenting content like so:

import {adapty} from 'react-native-adapty';

async function signup(email: string, password: string) {
  // ... validate email-password pair if necessary
  
  await adapty.identify(email);
  const profile = await adapty.getProfile();
  const withSubscription = profile.accessLevels['premium']?.isActive;
  
  // 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 Adapty identify function with email from the web.