trackScreen

The trackScreen() method records a screen view on your mobile app. The screen view is similar to the page view on a website.

Syntax

 await FlutterPiwikPro.sharedInstance.trackScreen(screenName: "path");

Parameters

path (string, required)

The path set for your screen. Example: example/welcome.

title (string, optional) (deprecated)

The title set for your screen. Available on Android only. Example: Welcome.

❗️

Deprecated

This parameter will be removed soon. We recommend not using it.

Examples

To send a screen view with the path example/welcome:

 await FlutterPiwikPro.sharedInstance.trackScreen(screenName: "example/welcome");