Segment cookiesAll need consent
Segment sets 3 cookies we know of. Every one may only be set after the visitor opts in.
Reviewed · Provider: Twilio Inc. (Segment)
List of Segment cookies
ajs_anonymous_idAnalyticsConsent required1 yearStores an anonymous visitor ID assigned by Segment's analytics.js library so events can be tied to a single browser before the user is identified.
ajs_user_idAnalyticsConsent required1 yearStores the identified user ID set via Segment's identify() call, linking analytics events to a known user.
ajs_group_idAnalyticsConsent required1 yearStores the group (account) ID set through Segment's group() call.
How to handle Segment cookies
- 1Load it only after consent
Hold the Segment script until the visitor accepts analytics cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 3 consent-requiring cookies below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (Twilio Inc. (Segment)) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does Segment wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept