Overview
Shopify is the underlying e-commerce platform powering millions of online stores. Its JavaScript is ubiquitous on Shopify-hosted storefronts and handles everything from cart state and checkout to analytics and attribution. The Shopify script suite spans essential commerce infrastructure, first-party analytics, and the Shop Pay network — each with different consent implications.
What This Script Does
Core Storefront Scripts (Essential)
Shopify loads core scripts from cdn.shopify.com that manage essential storefront functionality:
shopify.jsand theme JavaScript handle cart state, product variant selection, quantity updates, and add-to-cart interactions- Checkout scripts at
checkout.shopify.commanage the multi-step checkout flow including address entry, shipping selection, and order confirmation - Payment processing scripts handle credit card tokenization via Shopify Payments (powered by Stripe under the hood)
These scripts set essential cookies:
_session_id(first-party, session) — shopping session identifier for cart and checkout persistencecart(first-party, 2 weeks) — cart contents serialized to maintain shopping progress across sessionssecure_customer_sig(first-party, 1 year) — encrypted customer login signature for account authenticationstorefront_digest(first-party, session) — storefront authentication for password-protected stores
Shopify Analytics and Attribution
Shopify loads analytics.js from cdn.shopify.com that tracks the conversion funnel across all storefront pages:
- Fires page view events on every storefront page including product pages, collection pages, and search results
- Records product impression data: which products were viewed, in what order, at what prices
- Tracks add-to-cart, checkout initiation, and order completion events
- Attributes sales to referring traffic sources (UTM parameters, referrers, ad clicks)
Cookies set for analytics:
_shopify_s(first-party, 30 minutes) — analytics session identifier_shopify_y(first-party, 1 year) — analytics visitor identifier_shopify_sa_p(first-party, 30 minutes) — page attribution data for last-click attribution_shopify_sa_t(first-party, 30 minutes) — traffic source attribution_shopify_fs(first-party, 1 year) — first session timestamp for new vs. returning visitor segmentation
Shop Pay and the Shopify Network Shop Pay allows customers to save payment and shipping information for one-click checkout across all Shopify stores. The Shop Pay button:
- Loads from
pay.shopify.comand checks whether the visitor's email is enrolled in Shop Pay via a network lookup - Sets cross-site identifiers that enable the one-click checkout experience across different Shopify merchants
_shopify_m(third-party viapay.shopify.com, 1 year) — Shop Pay cross-merchant identity cookie
Script filenames loaded: shopify.js, analytics.js, checkout.js, theme bundle files
Domains contacted: cdn.shopify.com, checkout.shopify.com, pay.shopify.com, {merchant}.myshopify.com, monorail-edge.shopifysvc.com (analytics pipeline)
Consent & Compliance
GDPR/ePrivacy: Shopify's core cart and checkout cookies (_session_id, cart, secure_customer_sig) are strictly necessary for e-commerce functionality and exempt from consent requirements under ePrivacy. The analytics cookies (_shopify_s, _shopify_y, _shopify_sa_p, _shopify_sa_t, _shopify_fs) are non-essential and require explicit opt-in consent. The Shop Pay cross-merchant cookie (_shopify_m) is a third-party tracking cookie that requires consent.
CCPA/CPRA: Shopify analytics data collection and the Shop Pay network's cross-merchant tracking constitute personal information collection that must be disclosed.
EU-US Data Transfers: Shopify Inc. (Canadian entity) processes EU data subject to GDPR. Shopify participates in the EU-US Data Privacy Framework (DPF) for US processing.
Consent category: Essential (cart, checkout, payment) and Analytics (Shopify Analytics, attribution tracking).
Should You Block This Without Consent?
Conditional. Core Shopify e-commerce scripts — cart management, checkout processing, payment handling — are essential and must always load. Shopify Analytics cookies (_shopify_s, _shopify_y, _shopify_sa_p, _shopify_sa_t, _shopify_fs) and Shop Pay cross-merchant tracking require analytics consent before being set. Shopify's Customer Privacy API provides a built-in mechanism to gate analytics cookie setting on consent status — use it to ensure compliance.
Is Shopify GDPR compliant?
Shopify typically loads analytics and functional 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 Shopify 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 Shopify, not on Shopify itself.
Products (7)
Consent Categories
Also Known As
Industries
Tracked Domains (305)
Shopify's trackers are common, seen on about 4% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.
shopify.comAnalyticsshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on about 4% of scanned sites.
shopifycdn.comEssentialshopifycdn.com is an essential domain operated by Shopify, used to keep the site working, including security, load balancing, and sessions. Seen on under 1% of scanned sites.
shops.myshopify.comAnalyticsshops.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on under 1% of scanned sites.
githubfix.myshopify.comAnalyticsgithubfix.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
ligonierministries.myshopify.comAnalyticsligonierministries.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
eufy-us.myshopify.comAnalyticseufy-us.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
d9b960-6b.myshopify.comAnalyticsd9b960-6b.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
honey-birdette-usa.myshopify.comAnalyticshoney-birdette-usa.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
parkseed.myshopify.comAnalyticsparkseed.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
766ad1-ab.myshopify.comAnalytics766ad1-ab.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
soundcoreusa.myshopify.comAnalyticssoundcoreusa.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
forgedleather.myshopify.comAnalyticsforgedleather.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
prosuro-dev-merchant-demo.myshopify.comAnalyticsprosuro-dev-merchant-demo.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
maryruth-organics.myshopify.comAnalyticsmaryruth-organics.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
makeblock-xtool.myshopify.comAnalyticsmakeblock-xtool.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
loopearplugs.myshopify.comAnalyticsloopearplugs.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
vroomtec.myshopify.comAnalyticsvroomtec.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
drsquatchsoapco.myshopify.comAnalyticsdrsquatchsoapco.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
roborock-official-website.myshopify.comAnalyticsroborock-official-website.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
rackwarehouse.myshopify.comAnalyticsrackwarehouse.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
bluelandhome.myshopify.comAnalyticsbluelandhome.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
laurageller.myshopify.comAnalyticslaurageller.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
trueclassictees-com.myshopify.comAnalyticstrueclassictees-com.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
ep-prod.myshopify.comAnalyticsep-prod.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
kuiu-shop.myshopify.comAnalyticskuiu-shop.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
koreessentials.myshopify.comAnalyticskoreessentials.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
kitschllc.myshopify.comAnalyticskitschllc.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
honey-buns-shapewear.myshopify.comAnalyticshoney-buns-shapewear.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
aventonbikes.myshopify.comAnalyticsaventonbikes.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
haynes-us.myshopify.comAnalyticshaynes-us.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
vego-gardening-store.myshopify.comAnalyticsvego-gardening-store.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
32degrees.myshopify.comAnalytics32degrees.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
hatch-insane-deal.myshopify.comAnalyticshatch-insane-deal.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
grp-site.myshopify.comAnalyticsgrp-site.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
zc1uwf-et.myshopify.comAnalyticszc1uwf-et.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
princesspollydev.myshopify.comAnalyticsprincesspollydev.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
peakdesignstore.myshopify.comAnalyticspeakdesignstore.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
greater-good-2.myshopify.comAnalyticsgreater-good-2.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
oats-3.myshopify.comAnalyticsoats-3.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
chem-guys-staging.myshopify.comAnalyticschem-guys-staging.myshopify.com is an analytics domain operated by Shopify, used to measure visits, sessions, and on-site behavior. Seen on a small share of scanned sites.
Cookies Shopify Sets (8)
_shopify_essentialShopify internal storefront routing and integrity cookie. Set on every visit to a Shopify-powered shop to route the request through the correct shop and protect checkout state. Required for the store to function.
_shopify_yShopify visitor identifier set on the customer (store) apex by Shopify's analytics layer. One-year expiration.
_shopify_sShopify session identifier set on the customer (store) apex. 30-minute expiration.
_shopify_analyticsShopify customer-privacy opt-in flag for analytics. Stores whether the visitor has consented to analytics tracking on the shop; gates the Shopify analytics pixel and merchant-installed analytics apps.
_shopify_marketingMarketingShopify customer-privacy opt-in flag for marketing. Stores whether the visitor has consented to marketing tracking on the shop; gates retargeting pixels and merchant-installed marketing apps.
secure_customer_sigShopify logged-in customer authentication signature. Set when a shopper signs into their Shopify customer account so subsequent requests can verify the session without re-authenticating.
_yShopify legacy visitor identifier (pre-Web-Pixels). One-year expiration.
_sShopify legacy session identifier (pre-Web-Pixels). 30-minute expiration.
Frequently Asked Questions
Related Vendors

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