Cookies
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 anonymized vs. full anonymized) |
_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_inc | Immediately removed | Allows forcing tracking and collecting Session Replay data for a user session |
_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_mk_ga | 30 minutes | Ensures Google Analytics dimensions and eVars are set only once every 30 minutes |
_cs_mk_aa | 30 minutes | Ensures Adobe Analytics dimensions and eVars are set only once every 30 minutes |
_cs_debug | Session length | Enables/disables specific behavior of the Tag for debugging purposes |
Primary cookies
Section titled Primary 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.
Secondary cookies
Section titled Secondary cookiesCookies not set by default by Contentsquare.
_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
:
window._uxa.push(['setCustomVariable', 5, "cvar_name", "cvar_value", "visit"]);
window._uxa.push(['setCustomVariable', 5, "cvar_name", "cvar_value"]);
This will not store custom vars inside _cs_cvars
:
window._uxa.push(['setCustomVariable', 5, "cvar_name", "cvar_value", "page"]);
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.
Technical cookies
Section titled Technical cookiesCookies used for technical purposes only and removed immediately.
_cs_inc
Section titled _cs_incDescription
Allows forcing tracking and Session Replay data collection for a user.
If this cookie is set, the user will be tracked.
If the value is 5
, the session will be collected for Session Replay.
Lifetime
Immediately removed.
_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
Integration cookies
Section titled Integration cookiesCookies used when third-party integrations are enabled.
_cs_mk_ga
Section titled _cs_mk_gaDescription
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_aa
Section titled _cs_mk_aaDescription
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
Cookies for testing
Section titled Cookies for testing_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
compressionDisabled