setIncludeDefaultVariables
The setIncludeDefaultVariables() method sets whether the tracker automatically gets the platform, operating system (OS), and app version from the tracker instance. Getting these values automatically is turned on by default.
Syntax
await FlutterPiwikPro.sharedInstance.setIncludeDefaultVariables(shouldInclude);Parameters
shouldInclude (boolean, required)
Sets whether the tracker automatically gets the platform, OS, and app version from the tracker instance.
true: The tracker automatically gets the platform, OS, and app version.false: The tracker doesn't automatically get the platform, OS, and app version.
Examples
To stop getting the platform, OS, and app version automatically:
await FlutterPiwikPro.sharedInstance.setIncludeDefaultVariables(false);Notes
- When setIncludeDefaultVariables(true) is enabled, indexes 1-3 are used to track the platform, OS and app version as custom variables.
Related methods
- trackCustomDimension()
- trackCustomVariable() (deprecated)
Updated 21 days ago