Skip to content
AnalyticsConsent required

What is the ajs_group_id cookie?it needs consent first

Set by Segment (Twilio Inc. (Segment)). Expires after 1 year.

Block it until the visitor opts in

Under the ePrivacy Directive (Art. 5(3)) and GDPR, ajs_group_id may only be set after the visitor accepts analytics cookies.

Purpose

Stores the group (account) ID set through Segment's group() call.

Cookie details

Cookie name
ajs_group_id
Service
Segment
Provider
Twilio Inc. (Segment)
Category
Analytics
Duration
1 year
Consent
Required — opt-in

GDPR requirements

Analytics cookies help website owners understand how visitors interact with websites by collecting and reporting information anonymously. Consent is required under GDPR.

For ajs_group_id to be compliant, it must be:

  • Not set on the first visit — not even for a fraction of a second
  • A consent banner is shown, and the visitor actively accepts analytics cookies
  • Stays blocked if the visitor rejects or ignores the banner
  • Listed in your cookie policy with its name, purpose and retention period
  • Removed or invalidated when the visitor withdraws consent

How to handle it

  1. 1
    Block it by default

    Configure your consent platform (CMP) or tag manager so Segment doesn't load until the visitor accepts analytics cookies.

  2. 2
    Map it to a consent category

    Put it under “Analytics” in your CMP configuration.

  3. 3
    List it in your cookie policy

    Name, purpose, provider (Twilio Inc. (Segment)) and expiry (1 year).

  4. 4
    Sign a DPA

    Have a Data Processing Agreement with Twilio Inc. (Segment) covering the data this cookie collects.

  5. 5
    Verify it works

    In a private window, reject cookies and confirm ajs_group_id is not set.

Other Segment cookies

is ajs_group_id on your site?scan it in 2 minutes

Free scan · see every cookie before and after consent