setSessionHash
The setSessionHash() method controls the sh parameter sent with tracking events. The SDK persists this setting and keeps the state between app launches. The default value is SessionHash.disabled.
Syntax
await FlutterPiwikPro.sharedInstance.setSessionHash(sessionHash);Parameters
sessionHash (SessionHash, required)
The session hash mode. Available values:
SessionHash.enabled— theshparameter is set to1.SessionHash.disabled— theshparameter is set to0(default).SessionHash.notSet— theshparameter is not sent. The processing service will use the value from the Privacy tab in the global or app settings.
Examples
To enable the session hash:
await FlutterPiwikPro.sharedInstance.setSessionHash(SessionHash.enabled);Related methods
Updated 6 days ago