Track onboarding screens
The onboarding stage is a very common situation in modern mobile apps. The quality of its implementation, content, and number of steps can have a rather significant influence on further user behavior, especially on his desire to become a subscriber or simply make some purchases.
In order for you to be able to analyze user behavior at this critical stage without leaving Adapty, we have implemented the ability to send dedicated events every time a user visits yet another onboarding screen.
To do this, simply call the .logShowOnboarding
function:
- Swift
- Kotlin
- Java
- Flutter
- Unity
- React Native (TS)
Adapty.logShowOnboarding(name: "onboarding_name", screenName: "first_screen", screenOrder: 1)
Adapty.logShowOnboarding(name = "onboarding_name", screenName = "first_screen", screenOrder = 1)
Adapty.logShowOnboarding("onboarding_name", "first_screen", 1);
try {
await Adapty().logShowOnboarding(name: 'onboarding_name',
screenName: 'first_screen',
screenOrder: 1);
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
Adapty.LogShowOnboarding("onboarding_name", "first_screen", 1, (error) => {
if(error != null) {
// handle the error
}
});
await adapty.logShowOnboarding(
1, /* screenOrder */
'onboarding_name', /* name */
'first_screen' /* screenName */
);
Parameter | Presence | Description |
---|---|---|
name | optional | The name of your onboarding |
screenName | optional | The readable name of a particular screen as part of onboarding |
screenOrder | required | An unsigned integer value representing the order of this screen in your onboarding sequence (it must be greater than 0) |
Even though there is only one mandatory parameter in this function, we recommend that you think of names for all the screens, as this will make the work of analysts during the data examination phase much easier.