Cookies

List of cookies and local storage items managed by the Contentsquare Tag.

Contentsquare is only using first-party cookies for analytics purposes.

NameDurationDescription
_cs_id13 monthsStores technical user data
_cs_s30 minutesStores Session Replay data
_cs_c13 monthsStores user consent on use of session data use within replays (not masked vs. full masked)
_cs_cvarsSession lengthStores the URL-encoded custom variables from the session
_cs_ex30 daysWhen set, the user is excluded from tracking
_cs_optout13 monthsWhen set, the user is opted-out from tracking
_cs_tImmediately removedChecks if the browser supports cookies and sets flags
_cs_same_siteImmediately removedCheck if the browser supports the SameSite flag
_cs_root-domainImmediately removedStores the URI-encoded main domain name of the site
_cs_debugSession lengthEnables/disables specific behavior of the Tag for debugging purposes
_hjasCachedUserAttributesSession lengthSpecifies whether the data set in _hjUserAttributes local storage item is up to date or not
_hjUserAttrbutesHash2 minutes, extended every 30 secondsSpecifies whether any user attribute has changed and needs to be updated
_hjUserAttributesNo explicit expirationLocal storage item containing user attributes sent through the Identify API.
_hjClosedSurveyInvites365 daysEnsures the same invite does not reappear if it has already been shown. Set when a user interacts with a Link Survey invitation modal.
_hjDonePolls365 daysEnsures the same Survey does not reappear if it has already been filled in.
_hjMinimizedPolls365 daysEnsures that the Survey stays minimized when the user navigates through your site. Set when a user minimizes an on-site Survey.
_hp2_hldImmediately removedUsed 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_ID13 months minus a dayEvent properties cookie
_hp5_meta.ENV_ID13 months minus a dayContains all metadata related to user/session
_cs_mk_aa30 minutesEnsures Adobe Analytics dimensions and eVars are set only once every 30 minutes
_cs_mk_ga30 minutesEnsures Google Analytics dimensions and eVars are set only once every 30 minutes
_cs_tld{nnnnnnnnnnnnn}Immediately removedCookies generated for Google Analytics and Adobe Analytics integrations which help determine the main domain on which create integration cookies

Cookies required by the Contentsquare tag to collect reliable data.

Description

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 projects
    • Lax: For projects that are not cross-domains
    • X: When browsers that do not support the SameSite 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 the SameSame 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

Description

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
  • The Event Triggered Replay (ETR) state:
    • 0 when ETR sampling is not allowed
    • 1 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

Description

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.

Description

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.

Description

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.

Description

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.

Description

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.

Description

Used to check if the browser supports the SameSite flag.
The value is always Test same site.

Lifetime

Immediately removed.

Description

Stores the URI-encoded main domain name of the site.

Lifetime

Immediately removed.

Example

https%3A%2F%2Fusps.com for the domain usps.com

Description

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

Specifies whether the data set in _hjUserAttributes local storage item is up to date or not.

Lifetime

Session duration.

Example

true

Voice of Customer

Specifies whether any user attribute has changed and needs to be updated.

Lifetime

2 minutes, extended every 30 seconds

Example

5fc3d78656281a4f251d087894032eaa

Voice of Customer

Local storage item containing user attributes sent through the Identify API.

Lifetime

No explicit expiration

Example

eyJhdHRyaWJ1dGVzIjp7InRlc3QiOiJ0ZXN0In0sInVzZXJJZCI6bnVsbH0

Voice of Customer

A 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

Voice of Customer

A 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

Voice of Customer

A 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

Description

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

Product Analytics

Description

Event properties cookie.

Lifetime

13 months minus a day

Product Analytics

Description

Contains all metadata related to user/session

Lifetime

13 months minus a day

Example

{
"setPath": {},
"userId": "6491850061908711",
"sessionId": "6327163630185553",
"lastEventTime": 1717426613532,
"sessionProperties": {
"time": 1717426613532,
"referrer": "",
"id": "6327163630185553",
"search_keyword": "",
"utm": {
"source": "",
"medium": "",
"term": "",
"content": "",
"campaign": ""
},
"initial_pageview_info": {
"time": 1717426613532,
"id": "8208811256027992",
"title": "Landing page",
"url": {
"domain": "user.host.io",
"path": "/pa-cs/page1.html",
"query": "",
"hash": ""
},
"source_properties": {
"screen_height": 874,
"screen_width": 621
},
"properties": {}
}
}
}

Cookies used when third-party integrations are enabled.

Description

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

Description

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

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