Screen tracking
You can track screen visited by your users, along with properties describing the screen.
Requirements:- Screen names must be less than 128 characters long.
- Authorized characters are alphanumeric (uppercase included) and you can insert the following special characters: '-', '_', '.', ' ' (space), '/', and ':'.
Screeb.trackScreen(name: "ProductCartFragment")
Attributes
In order to bring context to your event handling, some properties can be added to the screen.
Requirements:- Property names must be limited to 128 characters
- No more than 1000 attributes
- Supported types for values: string, number (Int, Long, Double), boolean and Date.
// screen tracking with custom properties
Screeb.trackScreen(name: "ProductCartFragment", trackingEventProperties: [
"product_name": AnyEncodable("Red bike 2021"),
"category" = AnyEncodable("sport"),
"price" = AnyEncodable(12.29),
"count" = AnyEncodable(1),
"delivery_method" = AnyEncodable("UPS"),
"user_logged" = AnyEncodable(false),
"added_at" = AnyEncodable(Date())
])