trackScreenview abstract method

Future<void> trackScreenview({
  1. required String screenName,
  2. List<CustomVar>? customVars,
})

Tracks a screenview with the given name.

Use this method to track every screen viewed by a user. With the help of CustomVar, additional information on the screen, the user, or the session can be sent within the screen view.

The screenName parameter is the name of the screen to be tracked. Follow the naming rules.

See also:

Implementation

Future<void> trackScreenview({
  required String screenName,
  List<CustomVar>? customVars,
});