Integrating onboarding flows with paywalls is essential for optimizing user engagement and conversion rates. Adapty provides flexible methods to display personalized paywalls based on user interactions during the onboarding process.
This guide outlines two primary approaches:
- Displaying a Paywall via Adapty Placement (Preferred Method)
- Displaying a Paywall Using a String Identifier
1. Displaying a Paywall via Adapty Placement
To present a personalized paywall based on user responses during onboarding, utilize Adapty's user attributes, segments, and placements:
1.1. Create Segments in Adapty:
- Define segments that correspond to specific user attributes or behaviors.
- These segments will help target users with tailored paywalls.
1.2. Set Up a Paywall Placement:
- Create a placement (e.g., Placement D) in Adapty designated for paywalls.
- Assign the relevant paywalls or A/B tests to this placement, ensuring they align with the defined segments.
1.3. Configure the Onboarding Builder:
- In the onboarding builder, set the action
open_paywall
with the parameter id
set to the placement_id
of Paywall placement (e.g., Placement D).
1.4. Handle User Responses During Onboarding:
- Monitor user interactions using the
onStateUpdatedAction
method.
- Update the user's profile in Adapty by calling
Adapty.updateProfile
with the appropriate attributes based on their responses.
1.5. Display the Paywall:
- Upon receiving the
open_paywall
action, retrieve the placement_id
.
- Request the paywall associated with placement from Adapty.