Shopify cookies7 of 15 need consent
Shopify sets 15 cookies we know of. 7 cookies may only be set after the visitor opts in; 8 are strictly necessary and exempt.
Reviewed · Provider: Shopify Inc.
List of Shopify cookies
_shopify_yAnalyticsConsent required1 yearShopify analytics cookie that tracks unique visitors. Used to determine the number of unique visitors to the store.
_shopify_sAnalyticsConsent required30 minutesTracks the session for Shopify analytics. Used to record page views in a session.
_shopify_sa_tMarketingConsent required30 minutesMarketing analytics for Shopify. Tracks which traffic source referred the visitor for conversion attribution.
_shopify_sa_pMarketingConsent required30 minutesMarketing analytics for Shopify. Tracks the visitor's path through the store for attribution.
_shopify_fsAnalyticsConsent required1 yearRecords the first session for analytics purposes — used to identify new vs returning visitors.
cartNecessaryNo consent needed2 weeksStores the shopping cart token so that the cart contents persist across page loads.
secure_customer_sigNecessaryNo consent needed1 yearIdentifies logged-in customers so their account session persists across the store.
_orig_referrerAnalyticsConsent required2 weeksTracks the original referral source that brought the visitor to the store.
_landing_pageAnalyticsConsent required2 weeksStores the landing page URL for traffic source attribution in Shopify analytics.
_secure_session_idNecessaryNo consent needed24 hoursKeeps track of the visitor's session in the Shopify storefront.
cart_currencyNecessaryNo consent needed14 daysKeeps the cart's currency consistent through checkout.
keep_aliveNecessaryNo consent needed30 minutesKeeps the buyer's session alive while localization settings load.
localizationNecessaryNo consent needed2 weeksRemembers the store's localization (country and language) for the visitor.
_tracking_consentNecessaryNo consent needed1 yearStores the visitor's cookie-consent choice for Shopify stores.
_cmp_aNecessaryNo consent needed1 dayStores the consent settings Shopify uses to decide which tracking can run.
How to handle Shopify cookies
- 1Load it only after consent
Hold the Shopify script until the visitor accepts analytics / marketing cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 7 consent-requiring cookies below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (Shopify Inc.) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does Shopify wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept