sendScreenView method

  1. @override
Future<void> sendScreenView(
  1. String viewName, {
  2. Map<String, String>? parameters,
})
inherited

Sends a screen view hit to Google Analytics.

parameters can be any analytics key/value pair. Useful for custom dimensions, etc.

Implementation

@override
Future<void> sendScreenView(String viewName,
    {Map<String, String>? parameters}) {
  var args = <String, String>{'cd': viewName, ...?parameters};
  return _enqueuePayload('screenview', args);
}