Cookies
List of cookies and local storage items managed by the Contentsquare Tag.
Contentsquare is only using first-party cookies for analytics purposes.
Name | Duration | Description |
---|---|---|
_cs_id | 13 months | Stores technical user data |
_cs_s | 30 minutes | Stores Session Replay data |
_cs_c | 13 months | Stores user consent on use of session data use within replays (not masked vs. full masked) |
_cs_cvars | Session length | Stores the URL-encoded custom variables from the session |
_cs_ex | 30 days | When set, the user is excluded from tracking |
_cs_optout | 13 months | When set, the user is opted-out from tracking |
_cs_t | Immediately removed | Checks if the browser supports cookies and sets flags |
_cs_same_site | Immediately removed | Check if the browser supports the SameSite flag |
_cs_root-domain | Immediately removed | Stores the URI-encoded main domain name of the site |
_cs_debug | Session length | Enables/disables specific behavior of the Tag for debugging purposes |
_hjasCachedUserAttributes | Session length | Specifies whether the data set in _hjUserAttributes local storage item is up to date or not |
_hjUserAttrbutesHash | 2 minutes, extended every 30 seconds | Specifies whether any user attribute has changed and needs to be updated |
_hjUserAttributes | No explicit expiration | Local storage item containing user attributes sent through the Identify API. |
_hjClosedSurveyInvites | 365 days | Ensures the same invite does not reappear if it has already been shown. Set when a user interacts with a Link Survey invitation modal. |
_hjDonePolls | 365 days | Ensures the same Survey does not reappear if it has already been filled in. |
_hjMinimizedPolls | 365 days | Ensures that the Survey stays minimized when the user navigates through your site. Set when a user minimizes an on-site Survey. |
_hp2_hld | Immediately removed | Used to determine which domain a cookie can be set on (since public suffix domains block setting cookies on the top level) |
_hp5_event_props.ENV_ID | 13 months minus a day | Event properties cookie |
_hp5_meta.ENV_ID | 13 months minus a day | Contains all metadata related to user/session |
_cs_mk_aa | 30 minutes | Ensures Adobe Analytics dimensions and eVars are set only once every 30 minutes |
_cs_mk_ga | 30 minutes | Ensures Google Analytics dimensions and eVars are set only once every 30 minutes |
_cs_tld{nnnnnnnnnnnnn} | Immediately removed | Cookies generated for Google Analytics and Adobe Analytics integrations which help determine the main domain on which create integration cookies |
Tag cookies
Section titled Tag cookiesCookies required by the Contentsquare tag to collect reliable data.
_cs_id
Section titled _cs_idDescription
Stores technical user data.
Contains the following information separated by dots:
- User ID,
- User creation timestamp (seconds),
- Number of visits,
- Last pageview timestamp (seconds),
- Last visit timestamp (seconds),
- Timestamp of the last time this visitor was drawn,
- Cookie expiration date,
- Cookie
SameSite
attribute:None
: For cross-domain projectsLax
: For projects that are not cross-domainsX
: When browsers that do not support theSameSite
cookie attribute.
- Cookie
Secure
attribute value:0
: cookie is not secure. Default for projects that are not cross-domain or if the browser doesn’t support theSameSame
cookie attribute.1
: cookie is secure, default for cross-domain projects.
Lifetime
13 months, fixed.
The cookie value is updated with every pageview.
The cookie is recreated if the visitor can be tracked and no _cs_id
cookie exists.
Length
Up to 103 characters
Example
5c8f99e9-46cc-a2cc-b049-031bfdb3d43b.1661526503.5.1661785703.1661785703.1.1695690503380
_cs_s
Section titled _cs_sDescription
Stores Session Replay data.
Contains the following data separated by dots:
- The number of pages viewed for the current session
- The Session Replay data collection state:
- For the legacy Session Replay data collection pipeline:
1
when not collected,3
when collected,5
when collected after a specific trigger.
- For the main Session Replay data collection pipeline:
0
when not collected,5
when collected
- For the legacy Session Replay data collection pipeline:
- The Event Triggered Replay (ETR) state:
0
when ETR sampling is not allowed1
when ETR sampling is allowed
- The cookie expiry timestamp (Epoch time)
Length
Between 16 and 20 characters.
The maximum number of characters depend on the number of pages seen during the session. On average, for less than 100 pageviews, this adds between 16 and 17 characters.
Lifetime
30 minutes, renewed with every page view.
Example
3.0.0.1661531650281
_cs_c
Section titled _cs_cDescription
Stores user consent on use of session data use within replays (not masked vs. full masked):
1
(consent not expressed) — visitor session is fully masked.2
(consent granted) — visitor session is not fully masked even if the feature is enabled.3
(consent withdrawn) — visitor session is fully masked even if the feature is not enabled.0
(masking not required) — visitor session is not fully masked.
Lifetime
13 months, renewed when consent is updated.
_cs_cvars
Section titled _cs_cvarsDescription
Includes the URL-encoded custom variables from the session.
Used only when using custom vars in scope visit
or without scope.
Example
This will store custom vars inside _cs_cvars
:
This will not store custom vars inside _cs_cvars
:
Lifetime
While the session lasts. Created when session-level custom variables are triggered. The value and expiration date are updated with each pageview.
Length
The minimum number of characters is 39. Length depends on how many custom variables are pushed as well as and the length of the keys and values passed.
_cs_ex
Section titled _cs_exDescription
Contains the timestamp of the last time this visitor was drawn.
Used to exclude visitors from being tracked when:
- The Sample Rate defined for the project is below 100%.
- The user is not selected to be tracked (generated number for user < Sample Rate).
Lifetime
30 days, renewed on Tag execution.
_cs_optout
Section titled _cs_optoutDescription
When set, the user is opted-out from tracking.
The cookie is set when you implement and execute the optout
Tag command, for users who do not consent to data collection.
Lifetime
13 months, fixed.
_cs_t
Section titled _cs_tDescription
Whether the browser supports cookies.
If so, the Tag sets the SameSite
flag to None
and the Secure
flag to Yes
.
Always 1
.
Lifetime
Immediately removed.
_cs_same_site
Section titled _cs_same_siteDescription
Used to check if the browser supports the SameSite
flag.
The value is always Test same site
.
Lifetime
Immediately removed.
_cs_root-domain
Section titled _cs_root-domainDescription
Stores the URI-encoded main domain name of the site.
Lifetime
Immediately removed.
Example
https%3A%2F%2Fusps.com
for the domain usps.com
_cs_debug
Section titled _cs_debugDescription
Enables/disables specific behavior of the Tag for debugging purposes.
Supported flags:
compressionDisabled
: disables payload compression for inspection in the browser.
Lifetime
Session duration. To be created and deleted manually.
Length
N/A
Example
N/A
Voice of Customer cookies
Section titled Voice of Customer cookies_hjHasCachedUserAttributes
Section titled _hjHasCachedUserAttributesSpecifies whether the data set in _hjUserAttributes
local storage item is up to date or not.
Lifetime
Session duration.
Example
true
_hjUserAttributesHash
Section titled _hjUserAttributesHashSpecifies whether any user attribute has changed and needs to be updated.
Lifetime
2 minutes, extended every 30 seconds
Example
5fc3d78656281a4f251d087894032eaa
_hjUserAttributes
Section titled _hjUserAttributesLocal storage item containing user attributes sent through the Identify API.
Lifetime
No explicit expiration
Example
eyJhdHRyaWJ1dGVzIjp7InRlc3QiOiJ0ZXN0In0sInVzZXJJZCI6bnVsbH0
_hjClosedSurveyInvites
Section titled _hjClosedSurveyInvitesA list of Survey IDs, URL encoded.
Ensures the same invite does not reappear if it has already been shown.
Set when a user interacts with a Link Survey invitation modal.
Lifetime
365 days
Example
840982%2C841051%2C733219%2C155923%2C853559%2C859932%2C866639%2C898685%2C896429%2C899130%2C921824%2C951201%2C788909
_hjDonePolls
Section titled _hjDonePollsA list of Survey IDs, URL encoded.
Ensures the same Survey does not reappear if it has already been filled in.
Lifetime
365 days
Example
840982%2C841051%2C733219%2C155923%2C853559%2C859932%2C866639%2C898685%2C896429%2C899130%2C921824%2C951201%2C788909
_hjMinimizedPolls
Section titled _hjMinimizedPollsA list of Survey IDs, URL encoded.
Ensures that the Survey stays minimized when the user navigates through your site.
Set when a user minimizes an on-site Survey.
Lifetime
365 days
Example
840982%2C841051%2C733219%2C155923%2C853559%2C859932%2C866639%2C898685%2C896429%2C899130%2C921824%2C951201%2C788909
Product Analytics cookies
Section titled Product Analytics cookies_hp2_hld
Section titled _hp2_hldDescription
Used to determine the highest-level domain a cookie can be set on (since public suffix domains block setting cookies on the top level).
Lifetime
Immediately removed
_hp5_event_props.ENV_ID
Section titled _hp5_event_props.ENV_IDDescription
Event properties cookie.
Lifetime
13 months minus a day
_hp5_meta.ENV_ID
Section titled _hp5_meta.ENV_IDDescription
Contains all metadata related to user/session
Lifetime
13 months minus a day
Example
Integration cookies
Section titled Integration cookiesCookies used when third-party integrations are enabled.
_cs_mk_aa
Section titled _cs_mk_aaDescription
Ensures Adobe dimensions and eVars are set only once every 30 minutes.
Stores the value of the csMatchingKey
which is a random number plus timestamp in milliseconds.
Lifetime
30 minutes.
Example
0.004432816788423777_1593783518901
_cs_mk_ga
Section titled _cs_mk_gaDescription
Ensures Google dimensions and eVars are set only once every 30 minutes.
Stores the value of the csMatchingKey
which is a random number plus timestamp in milliseconds.
Lifetime
30 minutes.
Example
0.004432816788423777_1593783518901
_cs_tld{nnnnnnnnnnnnn}
Section titled _cs_tld{nnnnnnnnnnnnn}Description
Cookies generated for Google Analytics and Adobe Analytics integrations which help determine the main domain on which create integration cookies.
{nnnnnnnnnnnnn}
is the timestamp.
Lifetime
Immediately removed.
Example
_cs_tld1670937307564