trackScreenView

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's url, please use your default home webpage url.
  • The type parameter is required. There is no need to calltrackScreenView if the page does not fall into one of ScreenType'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)