Skip to main content

Connect paywalls to onboardings

You can set up a seamless transition from onboardings to paywalls, so that onboardings not only improve the user experience and retention but also generate revenue for you.

There are two ways to connect paywalls to onboardings:

  • Showing a paywall after onboarding: Implement opening a paywall after onboarding is closed.
  • Showing a paywall inside onboarding: Trigger opening a paywall on tapping a button.

Before you start, create a paywall and onboarding and add them to placements.

important

You need two different placements: one for a paywall and another for an onboarding. Ensure you use proper placement IDs when getting onboarding and paywall in your code.

Show paywall after onboarding

To show a paywall after onboarding, you only need to handle an event generated each time users close the onboarding.

As soon as users close onboarding, the event is triggered. So, if you want to display a paywall after your onboarding immediately, you can implement getting and displaying a paywall as a reaction to the event.

Show paywall inside onboarding

  1. In the onboarding builder, create a button that will redirect users to the paywall. Select Open paywall as its action.

  2. You can assign any action ID to the button and use it to identify the paywall you need to open. However, the easiest way to open paywalls from onboardings is to make the action ID equal to a placement ID. This way, you can get and display paywalls right away without hardcoding placement IDs.

    To do this, go to the Adapty dashboard and find the paywall's placement ID. In the builder, paste the paywall placement ID in the ID field.

  1. Now, when you have this button, each time your users tap it, it will generate an action containing the action ID.

To handle this action in your app code, you will need to get the paywall and then display it.