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.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
segment.comMarketingsegment.ioMarketingFrequently Asked Questions
Does Segment.io require user consent before loading?
Yes. Segment.io is an analytics vendor that requires consent under GDPR before collecting behavioral data. Since it routes events to downstream marketing and advertising integrations, consent is critical. Under CCPA, forwarding data to ad platforms may qualify as sharing personal information, triggering opt-out obligations.
What data does the Segment.io Analytics.js library collect?
Segment.io captures page views, user identifications, and custom tracking events in the browser. It sets first-party cookies to maintain anonymous visitor IDs across sessions, then sends all events to Segment servers where they fan out to connected destinations like analytics tools, CRMs, and ad networks.
How does ConsentStack manage Segment.io on my website?
ConsentStack detects the Segment.io Analytics.js library and categorizes it under analytics. When a visitor has not granted analytics consent, ConsentStack blocks the Segment script from loading, preventing all downstream data routing. Once consent is given, the script loads normally and begins collecting events.
Related Vendors
Manage consent for Segment.io
ConsentStack automatically detects and manages Segment.io trackers so your site stays compliant with global privacy regulations.