getVisitorIDLifetime

The getVisitorIDLifetime() method returns the currently configured lifetime duration for the visitor ID, in milliseconds. A value of 0 means the visitor ID never expires.

Syntax

await FlutterPiwikPro.sharedInstance.getVisitorIDLifetime();

Returns

The current visitor ID lifetime in milliseconds, instead of a string that describes the method and its parameters.

Type: number

Examples

To read the visitor ID lifetime:

final int lifetime = await FlutterPiwikPro.sharedInstance.getVisitorIDLifetime();

Related methods