@@ -37,7 +37,7 @@ access permissions.
3737
3838## Session Data
3939
40- Depending on enabling the ` storage ` parameter, the ` sessionStart ` function
40+ Depending on the ` storage ` parameter ` consent ` , the ` sessionStart ` function
4141returns an object with several properties. If a new session is detected,
4242` isStart ` is set to ` true ` , otherwise ` false ` .
4343
@@ -50,8 +50,8 @@ returns an object with several properties. If a new session is detected,
5050| marketing | true | If the session was started by a marketing parameter |
5151| referrer | string | Hostname of the referring site if available |
5252
53- With ` storage: true ` and eventually granted ` consent ` , the returning object will
54- be extended with the following:
53+ With ` storage: true ` and granted ` consent ` , the returning object will be
54+ extended with the following:
5555
5656| Property | Type | Description |
5757| -------- | ------- | ------------------------------------------------- |
@@ -104,7 +104,7 @@ are optional for customization:
104104
105105| Parameter | Type | Description |
106106| ------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------- |
107- | [ consent] ( #consent ) | string | The consent state to permit or deny storage access |
107+ | [ consent] ( #consent ) | Array & lt ; string& gt ; | The consent state to permit or deny storage access |
108108| [ storage] ( #storage ) | boolean | If the storage should be used |
109109| [ cb] ( #callback ) | false or<br />function | Callback function that gets called after the detection process. <br />Or to disable default callback |
110110
@@ -119,8 +119,8 @@ There are additional config parameters [for storage](#sessionstorage) and
119119
120120Setting a consent state to wait for before detecting a new session is used to
121121decide if storage access is allowed or not. If set, it registers an
122- [ on consent event] ( /docs/sources/walkerjs/commands#on ) and won't start until
123- that consent choice is available. If permission was granted, the
122+ [ on consent event] ( /docs/sources/walkerjs/commands#on ) and won't start until a
123+ consent choice is available. If at least one permission was granted, the
124124` sessionStorage ` detects a new session; otherwise, the ` sessionWindow ` .
125125
126126``` js
@@ -164,7 +164,7 @@ Based on the [storage](#storage) option either the
164164[ sessionStorage] ( #sessionstorage ) or the [ sessionWindow] ( #sessionwindow ) is used
165165to detect a new session. If a [ consent] ( #consent ) state is set, the session
166166detection gets scheduled via an [ on-consent] ( /docs/sources/walkerjs/commands#on )
167- command.
167+ command. It will only run once per ` run ` .
168168
169169``` mermaid
170170---
0 commit comments