From 4b8d0413a741e3a66664aaf301c5cfbe35c6f233 Mon Sep 17 00:00:00 2001 From: Frances Downey Date: Thu, 2 May 2024 00:21:47 +0100 Subject: [PATCH] Update JS docs for super property storage method (#1012) --- pages/docs/tracking-methods/sdks/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/tracking-methods/sdks/javascript.md b/pages/docs/tracking-methods/sdks/javascript.md index e0b3f3d070..97de619ef2 100644 --- a/pages/docs/tracking-methods/sdks/javascript.md +++ b/pages/docs/tracking-methods/sdks/javascript.md @@ -147,7 +147,7 @@ If you want to store a super property only once (often for things like initial r This means that it's safe to call `mixpanel.register_once()` with the same property on every page load, and it will only set it if the super property doesn't exist. -#### Super Properties Live in Local Storage +#### Super Properties Live in a Cookie Our JS library uses a cookie (created in the domain of the page loading the lib) to store super properties. These are stored as JSON in the cookie. They will persist for the life of that cookie, which by default is 365 days. If you wish to change the life of the cookie, you may do so using [`set_config()`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_config) to adjust the value for the `cookie_expiration` (an integer in days). ## Managing User Identity