- 09 May 2024
- 8 Minutes to read
Insider Cookies, Local Storage and Session Storage
- Updated on 09 May 2024
- 8 Minutes to read
Cookies are text files with small pieces of data that are communicated between the server and the browser in the header of requests. Local storage or Session storage is a web storage object that allows the saving of key/value pairs in the browser.
The Local Storage object stores the data and it does not inherently expire on its own, which means that it persists until it is explicitly cleared by the user or removed programmatically by the website or application that stored the data. Insider's Local Storage objects also have their own expiration time based on their usage. On the other hand, the Session Storage data gets cleared when the page session ends—that is when the page is closed.
Insider Cookies Descriptions
You can see Insider Cookies and their respective details below.
Cookie Name | Sample Value | Expiration Duration | Description |
---|---|---|---|
ins-test-cookie | 1 | Session | Tests if cookies are enabled on the browser that the user is currently using. |
Local Storage Descriptions
You can see Insider Local Storages and their respective details below.
Local Storage Name | Sample Value | Expiration Duration | Description |
---|---|---|---|
ins-cart-abandonment-products | JSON Object | 30 days | Used when reminding the abandoned cart items to the user with an email. |
ins-cart-product-list | JSON Object | 12 hours | Holds the name, price, size, and picture information of the products that users have added to their carts. |
insCustomAttributes | JSON Object | 1 year | Holds the Custom User Attributes defined by you. |
insUserPermissionGranted | {state: true} | 1 year | Holds the state of email permission of the user. |
ins-lead-spuid | {“data”:“82300745-53d1 -421f-91f6-2e43b8e4f641", “_expires”:1615302740000} | 10 secs | insider_id of a newly added user in the lead collection. |
first-permission-impression | 1 | 1 year | Stores the status between the user and the opt-in permission screen. It helps to show the opt-in screen again for users who have not seen it. |
paid-products | JSON Object | 30 mins | Holds the ID, name, price, image, and URLs of the products that are in the user's cart. |
predictiveData | JSON Object | 1 day | Holds the Predictive Segment information of the user. |
prodCats | JSON Object | 1 day | Holds the categories of the products that users have added to their carts. |
sp-camp-{id} | JSON Object | 14 days, default | Holds the ID of the campaigns that the user encounters on your website. |
sp-info-c-{id} | |||
spUID | 123123123 | 1 year | Holds the unique identifier of each user visits your website. |
{id}-countdown-values | 90 days | Stores countdown values of the campaign in order to fill the countdown values the next time the template is shown. | |
ins-instory-emoji-slider-{id} | 7 days | Stores InStory emoji data: user's response and average of all collected, to fill the emoji data the next time the template is shown. | |
ins-poll-results-{id}-{storyId} | No expiration date | Stores the data of seen stories to mark them as seen the next time the template is shown. | |
ins-side-menu-closed-{id} | 14 days by default | Toggle (0 or 1) to check if the side menu template is closed. | |
ins-notification-center-log | 1 day at most, deleted on the next load of the API | Stores the IDs of the notifications seen by the user, so that the join logs are sent correctly. | |
ins-sr-api-checks | 1 day | Stores Smart Recommender API-based integration check statuses. | |
ins-referred-products | 1 day | Stores referred products for later sales logs. | |
ins-c-events | 1 day | Stores the first clicked category name, If this option is selected in the campaign. | |
ins-last-c-event | 1 day | Stores the last clicked category name, If this option is selected in the campaign. | |
ins-first-c-event | 1 day | Stores the first clicked category name, If this option is selected in the campaign. | |
userLocation | JSON Object | 1 day | Holds the city, and country information of the user. |
userIP | JSON Object | 1 day | Holds the encrypted IP information of the user. |
ins-today-sld | JSON Object | 1 day | Holds the daily ID of the user. |
insCoeffDaily | JSON Object | 1 day | Holds the daily statistics of users. |
insCoeffSession | JSON Object | Session | Holds the session-based statistics of users. |
insiderVersusData | JSON Object | 1 year | Holds the compared products to be visible on Versus campaigns. |
lastVisitTime | JSON Object | 1 year | Holds the date of the last visit of yours. |
ins-user-segments | JSON Object | Session | Holds the segment information of the users. |
current-currency | usd | 1 day | Currency of the products which are in the cart of the user. It is updated when the user visits product or cart pages. |
sp-noteTimer | JSON Object | Set on the InOne panel | Holds the necessary information related to Coupon Assistant such as the time for the coupon to expire. |
total-cart-amount | 99 | 1 day | Total amount in the cart of the user. |
ins-variationCandidate | JSON Object | Session | Used in the campaigns that are visited with Test Link on Insider's InOne. |
ins-default-attributes | Object | 1 year | Sets in-default-attributes on local storage to use for on-site dynamic content replacement for all product types. |
insUserInfoHash | Array, timestamps of user visits like [1661958796, 1662034325, 1662111268] | 1 year | Used to prevent the same user event from being used for the same user. |
ins-pageVisit | Number | 1 year | Holds page visit data for the relational rules. |
ins-loggedinUser | 1 year | Stores information if the user logged in. If the user is not logged in, the LS is removed. | |
inspector-data | { routeAlias: 'info', queryHash: random } | 1 day | Stores the product name and query hash for Insider Inspector to work effectively. |
journey-{channel(eventcode)}-join- | { userId: random, journeyId: 1, campaignId: 1, eventCode: SMS:1, joinDate: timestamp } | Dynamic - It is set on journey canvas | Stores the channel (SMS, Email, etc.) join information. |
insBMStorageData | { 20: { frequency: 1, expires: timestamp } } | Dynamic - It comes from API settings (cookie time) | Stores the frequency of Banner Management campaigns. |
journey-joined-camps | { 20: { campaignId: 3, expire: timestamp } } | 30 days | Stores the list of Architect campaigns the user has interacted with. Contains the campaign ID and expiry date. |
journey-segments | { 20: true, 30: false } | 1 hour | Stores the eligibility status for an Architect journey. |
ucd-cart-collection-hash | hashed object (it uses fns.hash function) | 30 days | Stores hashed cart data to compare old/new card statuses. |
ins-contact-field | |||
ins-lte-action- + actionId | Number | Session | Stores session ID of the user to be used in LTE calculation. |
ins-today-sId | Number | Stores the date of user events to be used in the calculation of LTP algorithm. | |
ins_sr_out | [1, 2, 3] | 1 day | Used for validating stock data for Product Recommendations. |
lteThresholdLogSend-id- + this.LTEActionId | Number | Checks for LTE success log. | |
referred-products | [{ id: 1, campId: 3}] | 1 day | Used in the calculation of click and purchase goals of recommended products. |
on-page-campaign-limit | { value: [1,2,3], expires: dateTime } | Adjustable | Used for validating on-page campaign limit for that specific page and preventing campaigns from showing up if the limit is reached. |
ins-ucd-last-browsed-items | Last browsed products as a JSON array. | 7 days | Stores the details of the latest visited products to be used in email content. |
ins-coupon-session-guard | 1 | 30 mins | Used for preventing Coupon Assistant from popping up multiple times in a time window of 30 minutes. |
c-events | [{ cat: <Base64String>, count: <Number> }] | 60 days | Stores the click information for Category Optimizer. |
thresholdLogSent | 1 | 1 day | Prevents AdAudience products from sending duplicate logs within a period of 24 hours. |
insUserInfoHash | {boolean} | 1 year | Prevents from sending duplicate HIT API user events for a specific user. |
ins-last-order | <Number|String> | 30 mins | Stores the ID of the latest purchased product. |
unificationUserDataHash | Number | 1 year | Stores the hashed copy of unification information for a user. |
ins-sourceUrl | www.yourwebsite.com | 30 mins | Stores the source URL information of the user. |
ins-wp-sw-version | {"data":"<LANG>","_expires":<TIMESTAMP>} | 365 days | Version information for Web Push Service Worker user side update. |
ins-current-currency | {"data":"<LANG>","_expires":<TIMESTAMP>} | 1 day | Stores your current currency information. |
draft-mode-api-init | Number | Forever | Enables the draft API init Codes to run if set from the extension. |
draft-mode-free-js | Number | Forever | Enables the draft free JS codes to run if set from the extension. |
userpaids | JSON Object | 90 days | Stores the information of purchased products on the after-payment page. |
ltp-result | Boolean | 1 day | Stores user's LTP segment status. |
ltp-result-request-sent | Boolean | 15 seconds | It is a flag to not send another request to Predictive if already sent. |
page-based-time | {products: 15, mybrand: 12} | 1 year | Stores the time the user spends on the page specified in the rule. |
ins-page-based-time | {mybrand: 15, yourbrand: 12}; | 1 year | Stores the time the user spends on the page specified in the rule. |
sp-camp-{id}-max-wait-duration | True | Campaign Dependent | Checks whether the specific campaign exceeded the wait duration within the expiry date of the campaign. |
ins-z | Encoded Data | 1 day | Includes authentication keys for campaigns to receive coupon codes. |
ins-contact-field | {boolean} | 1 day | Stores the contact value of the user according to some conditions, and keeps this value until it is changed for some conditions. |
ins-wp-storage | JSON Object | 1 year | Web Push storage data |
ins-unified-by | |||
ins-sms-{id} | JSON Object | 14 days, default | Holds the ID of the SMS campaign that the user encounters on your website. |
unification-remigrate-key | String | 1 year | A unique key for the unification migration (Insider sets a unique key when required to reunify all users specifically for the partner, it prevents double unification). |
ins-wp-silent-permission-denied | Boolean | 365 days | Web push product, logging information for silent permission denied users |
ins-wp-active-tab | Random String | 1 day | Used for the Optional Exit Intent feature of Trigger Web Push. Stores active tab random value in this storage. |
{campaignId}-countdown-values | { minutes: string, hours: string, seconds: string, days: string } | 90 days | Holds the remaining time information of templates that have a countdown on it. |
ins-wa | {"userId":"xxx", "phoneNumber":"+905xxxx", "isOptedIn":true, "language":"en_US"} | 1 day | Holds the information of WhatsApp opt-in. |
ins-wa-{campaignId} | {"productList":[], "isMessageSent":true, "isMessageReset":false, "sentTimeExpiration": 1660662984000, "message":{"status":true}} | 1 day | Holds the information of the purchases log of WhatsApp campaigns. |
ins-sms-{campaignId} | {"productList":[],"message":{"status":true}} | 1 day | Holds the information of the purchases log of SMS campaigns. |
ins-wp-token | token | 60 days. Can be changed on InOne panel*. | Web Push Token of the user. |
ins-wp-payload-complete | "true" | 60 days. Can be changed on InOne panel*. | Used for checking if the user has a token and Service Worker migration required. |
ins-wp-request-sent | "true" | 60 days. Can be changed on InOne panel*. | Collects opt-in log according to their existence. |
ins-wp-token-create-date | epoch date number | 60 days. Can be changed on InOne panel*. | Creation date of Web Push Token. |
ins-wp-native-permission-impression | TRUE | 1 year | Stores the status between the user and the native opt-in permission screen. It helps to show the opt-in screen again for the users who didn't see it. |
ins-wp-migrated-sdk | %2Finsider-sw-sdk.js | 60 days. Can be changed on InOne panel*. | Stores already registered Service Worker SDK path. |
first-permission-impression | 1 | 1 year, by default | Stores the status between the user and the opt-in permission screen. It helps to show the first step opt-in screen again after expiration. |
ins-ws-t | Any string | 1 day | Checks the validity of the Info campaigns for Skeleton. |
ins-ws-t-c | Any boolean | 1 day | Checks the validity of the Custom campaigns for Skeleton. |
ins-skeleton-id | Number | 30 mins | Checks the user ID opening the Skeleton. |
customDataSet-* | { status: true|false, cookie: * } | 30 days | Stores custom segmentation. |
ins-journey-{channel}-join-{campaign_id} | { "data": { userId: STRING journeyId: NUMBER campaignId: NUMBER eventCode: STRING responseType: STRING joinDate: NUMBER }, "_expires": 1669755285000 } | It keeps the user’s conversion window after the click action. | |
ins-journey-camp-{campaign_id} | { "data": { step1-displayed: BOOLEAN viDa: NUMBER journeyId: NUMBER campaignId: NUMBER }, "_expires": 1669755285000 } | It keeps the user’s entrance time for each journey to apply eligibility conditions. | |
sp-camp-{campaign_id}-max-wait-duration | { "data": true, "_expires": 1669755285000 } | It keeps the max wait duration of each Architect on-site campaign. | |
ins-ucd-cart-collection-hash | { "data": STRING, "_expires": 1669755285000} | It keeps a hashed version of the previous request in order to avoid sending the same request twice. | |
ins-io-wizard-data | { "data": OBJECT, "_expires": 1669755285000} | It keeps the information about insider_object before opening the wizard. | |
ins-io-data | { "data": OBJECT, "_expires": 1669755285000 } | It keeps a snapshot of insider_object before API initialization. |
Session Storage Descriptions
You can see Insider Session Storages and their respective details below.
Session Storage Name | Sample Value | Expiration Duration | Description |
---|---|---|---|
ins-session-source | String | Session | Used to organize the session-based goal durations under re-eligibility durations. |
ins-landingPage | https://yourwebsite.com | Session | Holds the landing page that the user has visited. |
ins-first-page-view | Number | Session | Used to check if it's the first view during the user's session. |
last-c-event | <Base64String> | 1 day | Stores the last clicked category for Category Optimizer product. |
first-c-event | <Base64String> | 1 day | Stores the first clicked category for Category Optimizer product. |
page-based-time | {products: 15, abrand: 12} | 1 year | Stores the time spent by the user on a given page. |
ins-gaSSId | 00171add-6ba3-aa72-5668-d83f320dccaf_1579247064 | 30 mins (Session) | Tracks Google Analytics users for 30-minute sessions. Similar to GA, Insider sets cookies with 30-minute expiration dates and every user gets a new ID every 30 minutes. |