Overview
Segment.io is a customer data platform (CDP) that collects behavioral events from websites and routes them to connected analytics, CRM, and advertising destinations. It serves as a unified data collection layer that replaces multiple vendor-specific tracking scripts.
What This Script Does
The Segment.io Analytics.js library captures page views, user identifications, and custom track events in the browser. It sets first-party cookies to maintain anonymous visitor IDs across sessions. Events are sent to Segment.io's servers and fanned out to configured downstream integrations such as analytics platforms, CRMs, and ad networks. Some integrations may load additional client-side scripts bundled through Segment.io's device-mode destinations.
Consent & Compliance
Consent category: Analytics
Segment.io collects behavioral data and user identifiers that flow to multiple third-party services. Under GDPR, consent is required before tracking begins, especially when data is forwarded to marketing destinations. Under CCPA, routing data to advertising platforms may constitute sharing personal information. The ePrivacy Directive requires consent for non-essential cookies. The applicable consent category depends on which downstream integrations are active.
Should You Block This Without Consent?
Yes. Segment.io collects personal data and routes it to third parties. It should not fire until the user has granted at least analytics consent. If marketing integrations are connected, marketing consent is also required.
Is Segment.io GDPR compliant?
Segment.io typically loads marketing and analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Segment.io can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Segment.io, not on Segment.io itself.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
Segment.io's trackers are occasionally seen, seen on about 1% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.
segment.comMarketingsegment.com is a marketing domain operated by Segment.io, used to serve ads, build audiences, and measure ad conversions. Seen on about 1% of scanned sites.
segment.ioMarketingsegment.io is a marketing domain operated by Segment.io, used to serve ads, build audiences, and measure ad conversions. Seen on under 1% of scanned sites.
Frequently Asked Questions
Related Vendors


Manage consent for Segment.io
ConsentStack automatically detects and manages Segment.io trackers so your site stays compliant with global privacy regulations.