getSessionHash
The getSessionHash() method returns the current session hash mode.
Syntax
const currentSessionHash = await PiwikProSdk.getSessionHash();Returns
The current session hash mode. Available values:
- SessionHash.ENABLED (
1) — Theshparameter is set to1. - SessionHash.DISABLED (
0) — Theshparameter is set to0(default). - SessionHash.NOT_SET (
2) — Theshparameter isn't sent.
Type: SessionHash
Examples
To read the current session hash mode:
const currentSessionHash = await PiwikProSdk.getSessionHash();Related methods
Updated about 5 hours ago