setSessionHash
The setSessionHash() method controls the sh parameter sent with tracking events.
The SDK saves this setting and keeps it 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 isn't. The processing service uses the value from the Privacy in the global or app settings.
Examples
To enable the session hash:
await FlutterPiwikPro.sharedInstance.setSessionHash(SessionHash.enabled);Related methods
Updated 24 days ago