Overview
Shopify Pixel is Shopify's built-in event tracking framework that captures customer interactions across Shopify-powered storefronts. It serves as the data layer for the Shopify ecosystem, firing standardized e-commerce events that feed into Shopify's own analytics and can be forwarded to connected third-party marketing channels (Meta, Google, TikTok, etc.). Any Shopify store with marketing integrations enabled will have the Pixel framework active.
What This Script Does
Shopify Pixel operates through Shopify's customer events infrastructure. The framework loads within a sandboxed iframe (the "web pixel sandbox") to isolate third-party marketing scripts from the main storefront thread.
Key cookies set:
_shopify_y— a first-party persistent cookie that stores a unique visitor identifier for customer journey tracking. 1-year expiry._shopify_s— a session cookie that tracks the current browsing session. 30-minute sliding expiry._shopify_sa_t— records the timestamp of the visitor's last interaction for session attribution. 30-minute expiry._shopify_sa_p— stores the landing page path for attribution. 30-minute expiry._yand_s— shortened versions of the persistent and session identifiers, used in some Shopify configurations.
The Pixel framework fires standard e-commerce events: page_viewed, product_viewed, collection_viewed, cart_viewed, checkout_started, checkout_completed, search_submitted, and product_added_to_cart. These events include product details (title, price, variant, SKU), cart totals, and order values.
Events are processed in two tiers:
- Custom pixels (third-party): marketing scripts from connected apps (Meta CAPI, Google Ads, TikTok) that receive event data within the sandbox
- App pixels: first-party Shopify analytics processing
The sandbox architecture means third-party marketing scripts loaded through Shopify Pixel run in an isolated context with limited access to the storefront DOM. However, the event data transmitted to these scripts still contains behavioral and transactional information.
Consent & Compliance
Shopify Pixel falls in the analytics category at its core, but the event data it collects frequently feeds into marketing channels, creating a dual-purpose system.
Under the GDPR, Shopify Pixel collects personal data including visitor IDs, browsing behavior, and purchase details. The _shopify_y cookie (1-year expiry) constitutes a persistent identifier requiring consent. When Pixel data forwards to third-party marketing platforms, the data processing scope expands to include those platforms' purposes.
The ePrivacy Directive requires consent for the persistent tracking cookies set by Shopify Pixel. The _shopify_y visitor identifier is not strictly necessary for the storefront to function — it exists for analytics and marketing attribution purposes.
Under CCPA/CPRA, the visitor IDs and purchase behavior collected through Shopify Pixel constitute personal information. When this data is forwarded to third-party marketing platforms (Meta, Google, TikTok), it may constitute "sharing" of personal information for cross-context behavioral advertising.
Should You Block This Without Consent?
Yes. Shopify Pixel sets persistent visitor identification cookies and forwards behavioral data to marketing platforms. While it uses a sandboxed architecture, the data it collects and distributes is not essential for basic storefront functionality and requires consent under EU privacy regulations.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
monorail-edge.shopifysvc.comAnalyticsFrequently Asked Questions
Does Shopify Pixel require cookie consent?
Yes. Shopify Pixel sets _shopify_y (1-year visitor identifier) and forwards behavioral and transactional data to third-party marketing platforms. Under GDPR and ePrivacy, this persistent tracking requires consent.
What does Shopify Pixel track?
Shopify Pixel fires page_viewed, product_viewed, checkout_started, and checkout_completed events including product details, cart totals, and order values. These feed both Shopify analytics and connected channels like Meta, Google, and TikTok.
How does ConsentStack manage Shopify Pixel consent?
ConsentStack detects Shopify Pixel via the web pixel sandbox and _shopify_y cookie pattern. It assigns the analytics category and blocks the Pixel framework until consent is granted, preventing data forwarding to connected marketing platforms.
Other Shopify Products
Related Vendors
Manage consent for Shopify Pixel
ConsentStack automatically detects and manages Shopify Pixel trackers so your site stays compliant with global privacy regulations.