Screen tracking
Tell Screeb which page or screen your user is on, so you can target surveys and messages on where users are in your app.
Screeb targets surveys and messages on the page or screen the user is on. The help center shows how to check what Screeb receives: Track page views and mobile screens.
Track a screen
Section titled “Track a screen”A mobile app has no URL, so tell Screeb each time the user opens a screen. Call it when the screen appears, with a stable name.
await PluginScreeb.trackScreen("Checkout");Screen names are less than 128 characters. They contain letters, digits, spaces and the characters -, _, ., / and :.
Add properties to a screen
Section titled “Add properties to a screen”Properties follow the same rules as event properties: at most 1000 per screen, names of 128 characters at most, string, number, boolean or date values.
await PluginScreeb.trackScreen("Checkout", properties: <String, dynamic>{ 'step': 'payment', 'cart_items': 3,});