What is the ajs_group_id cookie?
ajs_group_id is a cookie generated by Segment's analytics.js JavaScript library. Segment (part of Twilio) is a customer data platform many websites and SaaS applications use to collect and route user events to analytics, marketing, or CRM tools.
The cookie appears when a site calls Segment's group method in its SDK, typically to link a user to a company, account, or subscription plan. It is set directly by the Segment script embedded on the site, not by a separate visible third-party domain.
What data it stores
The cookie stores a unique identifier for the group (company, account, or organization) the current user belongs to, based on logic defined by the site implementing Segment. The value is usually an alphanumeric string or an internal ID generated by the application.
Data is sent to Segment's (Twilio) servers and, through integrations configured by the site, may be forwarded to other connected analytics or marketing platforms. The exact value format can vary depending on the implementation.
What it is used for
For the provider and the website, ajs_group_id helps segment users into groups — for example, companies, teams, or accounts within a B2B/SaaS application — so that usage events can be analyzed both at the individual and organizational level.
In practice, it supports per-account usage reports, tracking feature adoption at the organization level, and feeding other analytics or marketing tools connected through Segment.
Does it require consent?
CookieFix classifies ajs_group_id under statistics (analytics), since its purpose is measuring and segmenting user behavior rather than providing strictly necessary technical functionality.
- Under GDPR and Romania's Law 506/2004 (transposing the ePrivacy Directive), this type of cookie requires the visitor's prior consent before being set.
- Site owners must disclose it in their cookie policy with the correct category and actual retention period.
- The Segment script should only load after the visitor accepts the statistics category, not by default when the page loads.
How to block or delete ajs_group_id
A visitor can delete or block this cookie through browser settings (per-site cookie management) or by using tracking-script blocking extensions; blocking it doesn't affect core site functionality but may limit the site's internal reporting.
For site owners, the correct approach is a CMP that automatically blocks the Segment script (and therefore the setting of ajs_group_id) until the visitor gives explicit consent for the statistics category — CookieFix, for instance, does this automatically by scanning and blocking scripts before user consent is given.
Frequently asked questions
It's a cookie set by Segment, used to link a visitor to a group or account defined by the website (such as a company in a SaaS application) for analytics purposes.
Its typical duration is 1 year, though this can vary depending on how each site's Segment implementation is configured.
Yes, as a statistics/analytics cookie, it requires the visitor's prior consent under GDPR and Romania's ePrivacy-based legislation.
You can delete or block it through your browser's cookie settings, and site owners can use a CMP that prevents the Segment script from loading until the visitor consents.