The ScreenView event is triggered when a user navigates to a new screen within the app.
- The
url
parameter is required to be non-null otherwise this event will not be tracked. If you cannot provide the corresponding screen'surl
, please use your default home webpageurl
. - The
type
parameter is required. There is no need to calltrackScreenView
if the page does not fall into one ofScreenType
's values.
ScreenType Values
enum: ScreenType {
HOME,
PRODUCT,
CATEGORY,
SEARCH,
CART,
ARTICLE,
GALLERY,
CHECKOUT
}
Implementation
Wunderkind.getInstance().trackScreenView(URL url, ScreenType type)
Wunderkind.shared.trackScreenView(url: URL, type: ScreenType)
Wunderkind().trackScreenView(url: string, screenType: ScreenType)
Wunderkind.trackScreenView(url: string, screenType: ScreenType)