You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/website/javascript/cookie-validity-update.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ Analytics.js tries to detect when a page is about to be closed and saves pending
128
128
129
129
When `disableClientPersistence` is set to `true`, Analytics.js won't store any pending events into `localStorage`.
130
130
131
-
## Clientside cookie methods (get, set, clear)
131
+
## Client-side cookie methods (get, set, clear)
132
132
133
133
To access or assign a value to a cookie outside of the standard Segment methods (track/identify/page/group), you can use the following methods. To access the cookie's value, pass an empty `()` at the end of the method. To assign the value, include the string value inside those parenthesis, for example, `('123-abc')`. To clear or remove the value for a specific field, pass in an empty value of its type. For example, for string `('')`, or for object `({})`.
134
134
@@ -142,22 +142,22 @@ To access or assign a value to a cookie outside of the standard Segment methods
142
142
143
143
## Storage Priority
144
144
145
-
By default Analytics.js uses `localStorage` as its preferred storage location, with Cookies as a fallback when `localStorage` is not available or not populated. An in-memory storage is used as a last fallback if all the previous ones are disabled.
145
+
By default, Analytics.js uses `localStorage` as its preferred storage location, with Cookies as a fallback when `localStorage` is not available or not populated. An in-memory storage is used as a last fallback if all the previous ones are disabled.
146
146
147
147
Default Storage Priority:
148
148
149
149
```md
150
150
LocalStorage -> Cookie -> InMemory
151
151
```
152
152
153
-
Some scenarios might require to switch the priority of the storage systems.
153
+
Some scenarios might require a switch in the storage systems priority:
154
154
155
155
- Apps that move the user across different subdomains
156
156
- Apps where the server needs control over the user data
157
157
- User Consent
158
158
- Availability
159
159
160
-
The storage priority can be configured in the Analytics.js client using the `storage` property either globally or only for user or group data.
160
+
You can configure the storage priority in the Analytics.js client using the `storage` property, either globally or only for user or group data.
161
161
162
162
The `storage` property accepts an array of supported storage names (`localStorage`, `cookie`, `memory`) to be used in the priority order of the array.
0 commit comments