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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,15 @@ You can still manually track identity by calling `analytics.identify()` with the
127
127
Analytics.js tries to detect when a page is about to be closed and saves pending events to`localStorage`. When the user navigates to another page within the same domain, Analytics.js attempts to send any events it finds in localStorage.
128
128
129
129
When`disableClientPersistence` is set to`true`, Analytics.js won't store any pending events into`localStorage`.
130
+
131
+
##Client side cookie methods (get, set, clear)
132
+
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
+
135
+
| Field| Cookie Name| Analytics.js Method| Local Storage Method| Set Example| Clear Example|