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.

Visit website

Consent Categories

Analytics

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

Frequently 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

Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Google Analytics
Google Analytics
Google Analytics is the world's most widely deployed web analytics platform. Scripts track page views, sessions, user demographics, traffic sources, and conversion events. Drops cookies to identify returning visitors and attribute user journeys across sessions.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
LinkedIn Insight Tag
LinkedIn Insight Tag
LinkedIn Insight Tag is a JavaScript tracking pixel for LinkedIn's advertising and analytics platform. The tag fires on every page view to collect URL, referrer, IP address, and device data for conversion tracking, website demographics reporting, and retargeting audience building. Sets cookies to identify LinkedIn members across advertiser websites.

Manage consent for Shopify Pixel

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