CookieScan
Analytics / measurement

Segment and cookie consent on Shopify

Segment (Twilio Segment) is one of the most common trackers on Shopify. Here’s what it does, the data it collects, and how to check whether it fires before your visitors consent.

What is Segment?

Segment (Twilio) is a Customer Data Platform: it collects browsing data in one place then routes it to your other tools (GA, Meta…). A single script that feeds many trackers.

What data does Segment collect?

Page views, events and an anonymous identifier (`ajs_anonymous_id`) linking the session, then forwarded to your destinations.

Why it needs consent

Segment is an analytics/measurement tracker. In Europe, even non-essential analytics needs consent before firing: it must wait for the visitor’s “yes”, which is what cookie banners are for.

How it shows up

We detect Segment via these network/cookie signals:

cdn.segment.comlocalStorage ajs_anonymous_id

Does Segment fire on YOUR store?

Our free scanner loads your storefront in a clean browser, without touching the cookie banner, and tells you in ~30 seconds which trackers fire before consent — and which app loads them.

Scan my store for free

How to make it compliant

The fix is to actually block the tracker until the visitor consents (via your tag manager, theme, or a properly configured banner). We’re building the Shopify compliance assistant that pinpoints the responsible app and blocks trackers before consent — automatically.

We can help you fix it

Leave your email: we’ll reach out to see how to sort this on your store.

No spam. One-click unsubscribe.

Other trackers to know

Independent information page, not affiliated with Shopify or the vendors mentioned. Not legal advice.