Shopify Pixel

Shopify Pixel

Shopify Pixel is Shopify's built-in event tracking system that captures customer behavior on Shopify-powered storefronts. Scripts track page views, product views, add-to-cart events, and completed purchases, forwarding event data to connected marketing channels and analytics tools. Sets first-party cookies for session tracking and customer journey attribution.

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.
  • _y and _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.

Is Shopify Pixel GDPR compliant?

Shopify Pixel typically loads analytics 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 Pixel 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 Pixel, not on Shopify Pixel itself.

Visit website

Consent Categories

Also Known As

Shopify event trackingShopify customer eventsShopify web pixelShopify conversion tracking

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (1)

monorail-edge.shopifysvc.comAnalytics

monorail-edge.shopifysvc.com is an analytics domain operated by Shopify Pixel, used to measure visits, sessions, and on-site behavior.

Frequently Asked Questions

Other Shopify Products

Shopify Analytics
Shopify Analytics
Shopify Analytics is Shopify's built-in store analytics tracking visitor behavior and sales performance. Scripts collect page views, product interactions, cart events, and checkout completions for sales reports. Sets first-party cookies for visitor identification and session tracking across the storefront.
Shopify Balance
Shopify Balance
Shopify Balance is Shopify's financial services product for merchants, offering business accounts and cards. When detected on storefronts, scripts handle payment processing integration and financial transaction flows. Sets secure session cookies for payment authentication and maintains encrypted transaction state during checkout and financial operations.
Shopify Collabs
Shopify Collabs
Shopify Collabs is an influencer and creator partnership platform integrated into Shopify storefronts. Scripts load affiliate link tracking, creator storefront widgets, and commission attribution code on product pages. Sets cookies to track referral sources from creator content and attribute sales back to specific influencer partnerships for commission payouts.
Shopify Email
Shopify Email
Shopify Email is Shopify's native email marketing tool for e-commerce stores. Tracking pixels embedded in sent emails measure open rates and click-through events when recipients view messages. On the storefront, scripts track campaign-attributed visits and conversion events to report email marketing ROI and build customer engagement segments.
Shopify Inbox
Shopify Inbox
Shopify Inbox is a live chat and messaging tool built into Shopify storefronts for real-time customer support. Scripts load the chat widget, display automated responses, and connect visitors with store operators for pre-sale questions. Sets session cookies to maintain conversation history and identify returning customers across chat interactions.
Shopify Markets
Shopify Markets
Shopify Markets is Shopify's cross-border commerce solution that adapts storefronts for international buyers. Scripts handle currency conversion, language detection, regional pricing display, and geo-based store redirects. Sets cookies to remember visitor location preferences and selected market settings for consistent localized shopping experiences across sessions.

Related Vendors

Salesforce Commerce Cloud
Salesforce Commerce Cloud
Salesforce Commerce Cloud is an enterprise e-commerce platform powering online storefronts. Platform scripts manage shopping cart state, product catalog browsing, and checkout flows. Session cookies maintain cart contents and authentication state. Analytics integrations capture purchase events and browsing behavior for merchandising and personalization.
Shopify Markets
Shopify Markets
Shopify Markets is Shopify's cross-border commerce solution that adapts storefronts for international buyers. Scripts handle currency conversion, language detection, regional pricing display, and geo-based store redirects. Sets cookies to remember visitor location preferences and selected market settings for consistent localized shopping experiences across sessions.
Salesforce CRM Analytics
Salesforce CRM Analytics
Salesforce CRM Analytics is a business intelligence and data visualization platform embedded within the Salesforce ecosystem. Scripts on customer-facing pages collect behavioral events and funnel data into Salesforce for reporting and AI-driven insights. No independent tracking cookies are set beyond the core Salesforce platform session.
Shopify Analytics
Shopify Analytics
Shopify Analytics is Shopify's built-in store analytics tracking visitor behavior and sales performance. Scripts collect page views, product interactions, cart events, and checkout completions for sales reports. Sets first-party cookies for visitor identification and session tracking across the storefront.
Adobe Target
Adobe Target
Adobe Target is a personalization and A/B testing platform within the Adobe Experience Cloud. Scripts evaluate visitor segments, assign users to experiment variants, and dynamically modify page content to deliver personalized experiences. Sets cookies for visitor identification, consistent variant assignment, and conversion tracking across testing activities.
HubSpot Analytics
HubSpot Analytics
HubSpot Analytics is HubSpot's built-in web analytics module tracking visitor behavior across HubSpot-managed websites and landing pages. Scripts record page views, sessions, traffic sources, and conversion events. Sets __hstc and hssc cookies to identify returning visitors and attribute user journeys across sessions for marketing reporting.

Manage consent for Shopify Pixel

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