Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Shopify Custom Pixels and Customer Events Explained: What They Track and Their Limits

A plain-language reference to Shopify's pixel system for marketers and agencies: what Customer events manages, app pixels versus custom pixels, all 15 standard events, what checkout_completed carries, the sandbox limits, consent and testing.

The EndFrame Team7 min read

Shopify's pixel system has three parts. Customer events is the screen in the Shopify admin (Settings, then Customer events) where every tracking pixel on the store is managed. App pixels are pixels installed by an app, such as a marketing or analytics app. Custom pixels are pieces of JavaScript a merchant or developer pastes in by hand. Both kinds subscribe to the same list of customer events, which are named actions such as product_viewed or checkout_completed, and both run in a sandbox: an isolated space that keeps the pixel away from the rest of the page. This guide explains each part in marketer language, lists the 15 standard events, and sets out what a pixel cannot do.

What Customer events manages

Shopify describes pixels as JavaScript snippets that collect behavioural data for marketing and analytics. They load automatically on the storefront, the checkout, the Thank you page and the Order status page. On customer account pages they load only if the store uses a custom subdomain for customer accounts, and there they track page_viewed and nothing else. That reach into checkout is the main reason the system exists: theme code does not run on Shopify's checkout, and the old Additional scripts box on the Thank you page has been view-only since 28 August 2025. Non-Plus stores had to finish upgrading their Thank you and Order status pages by 26 August 2026, so pixels are now the standard route for purchase tracking. Our guide to moving thank-you page tracking to pixels covers that migration.

Shopify's own advice is consistent across its help centre and developer docs: look for an app pixel first and use a custom pixel only when no app pixel does the job. With an app pixel the app developer writes and updates the code and sets its privacy settings, while a custom pixel leaves every update to you. Shopify's developer documentation strongly recommends that vendors build apps rather than ask merchants to paste custom code, because custom pixels integrate less fully with the store.

App pixel vs custom pixel

QuestionApp pixelCustom pixel
Who writes and maintains itThe app developer, who also sets its permissions and privacy settingsYou or your developer, including every update
Where it runsStrict sandbox, a web worker with a limited set of browser featuresLax sandbox, an iframe allowed to run scripts and forms only
SupportHandled by the app developerUnsupported by Shopify; you are responsible for consent, security and fixes
Settings you controlData access (Always on or Optimized); privacy settings are view-onlyName, code, Permission and Data sale settings
Typical useOfficial integrations such as a vendor's own Shopify appA tag with no app, or a tag manager container such as GTM

Loading Google Tag Manager is the most common custom pixel, and it has its own quirks covered in our Google Tag Manager on Shopify guide. Where a vendor offers its own Shopify app, the app pixel is usually the better choice; our article on Meta Conversions API on Shopify explains what that integration sends.

The 15 standard events a pixel can subscribe to

Standard events are the events Shopify publishes itself. A pixel subscribes to the ones it needs and forwards them, renamed if necessary, to a platform such as GA4 or TikTok. Shopify's developer reference lists 15:

EventWhat it records
page_viewedA customer visited a page
product_viewedA customer visited a product details page
collection_viewedA customer visited a collection index page
search_submittedA customer ran a search on the storefront
product_added_to_cartA product was added to the cart
product_removed_from_cartA product was removed from the cart
cart_viewedA customer visited the cart page
checkout_startedA customer started checkout
checkout_contact_info_submittedA customer submitted the contact step of checkout
checkout_address_info_submittedA customer submitted a mailing address
checkout_shipping_info_submittedA customer chose a shipping rate
payment_info_submittedA customer submitted payment information
checkout_completedA customer completed a purchase
alert_displayedThe customer saw an alert, such as an inline validation message or a warning banner
ui_extension_erroredA checkout UI extension failed to render because of an error in its code

Beyond these, pixels can listen to DOM events (clicked, form_submitted, input_changed, input_focused and input_blurred, which Shopify provides on the storefront, checkout and Thank you pages but not on customer account pages) and to custom events that theme or extension code publishes with analytics.publish. Shopify's GTM tutorial notes that you cannot add your own data to standard events; extra data has to travel in a custom event. The Meta equivalents are a different list, explained in Meta Pixel standard events vs custom events.

What checkout_completed carries and when it fires

checkout_completed is the purchase event most setups depend on. Shopify's reference says it fires once per checkout, usually on the Thank you page. If the store shows a post-purchase upsell, it fires on the first upsell offer page instead and does not fire again on the Thank you page. If that page fails to load, the event does not fire at all, which is one reason pixel purchase counts can sit slightly below Shopify's order count.

The event's checkout object holds the fields an ad platform or analytics tool needs:

  • order.id, the order identifier, which is empty on every event except checkout_completed and makes a good transaction or event ID.
  • totalPrice, subtotalPrice, totalTax, discountsAmount and currencyCode for the order value.
  • shippingLine, whose price is the shipping charge.
  • lineItems, one entry for each item in the checkout.
  • email and phone, which are protected customer data: an app pixel needs the read_customer_email or read_customer_phone access scope to receive them.
  • order.customer.isFirstOrder, which tells a new customer from a returning one, available only on stores upgraded to checkout extensibility.

Value is the field worth checking first. Shopify defines subtotalPrice as the price before duties, shipping and taxes, while totalPrice includes duties and taxes, so pick one deliberately and use the same definition in every platform. Mixing them is a common cause of the gaps described in Shopify vs GA4 revenue.

What the sandbox stops a custom pixel from doing

A traditional tracking tag expects to sit on the page and read it. In the lax sandbox it cannot reach the top frame, so a pasted vendor tag often half works. Shopify's documentation lists the consequences:

  • No access to the page's HTML: features that scrape the page for information or write to it do not work.
  • No interface: a pixel cannot draw buttons, forms, banners or pop-ups.
  • No automatic scroll tracking and no detection of some page-based events, so vendor auto-events such as outbound link clicks have to be rebuilt as custom events.
  • Wrong page URLs if read the usual way: the sandbox reports its own address, so the real URL has to come from the page_viewed event data.
  • Cookies and local storage are read and written through Shopify's browser API, which runs asynchronously in the top frame, rather than directly.
  • Requests to outside servers must support cross-origin requests (CORS).

Google Tag Assistant can show Google tags loading, but Shopify warns that its Troubleshoot tag feature does not detect tags inside a custom pixel. Expect some vendor debugging tools to show partial or confusing results for the same reason.

Consent and customer privacy settings

Pixels follow the store's customer privacy settings. In regions where consent is required, such as the EEA and the UK, Shopify says web pixels run only when the visitor has given the permissions set in the pixel's configuration. New pixels require Marketing and Analytics permission by default. For a custom pixel you set this yourself in the Customer privacy section: Permission is either Required, with the purposes ticked (marketing, analytics, preferences), or Not required. The Data sale setting controls what happens when a visitor has opted out of the sale or sharing of their data; a pixel treated as data sale does not run for those visitors unless it supports limited data use. Asking for consent still needs a cookie banner, and Shopify is explicit that privacy compliance remains the merchant's responsibility.

Headless and Hydrogen storefronts

On a headless store the storefront is your own application, so storefront events come from its own analytics code. Hydrogen, Shopify's headless framework, has an Analytics component that sends product, collection, search and cart views to Shopify and checks consent through the Customer Privacy API before collecting anything. Checkout still runs on Shopify, and Shopify lists checkout among the pages where pixels load, so checkout events can come from pixels set up in Customer events; Hydrogen's documentation does not spell this out, so confirm it on a test order. The Shopify Pixel Helper does not work with headless stores. Because this setup is code, hand your developer Shopify's Hydrogen analytics documentation rather than copying snippets from a blog.

How to test a pixel

  1. 1Go to Settings, then Customer events, and check that the pixel shows Connected in the Status column. If it is not connected, click the menu icon next to it, then View details, then Connect.
  2. 2Click the pixel, then click Test. The store opens in a new tab with the Shopify Pixel Helper dialog.
  3. 3Browse a product, add it to the cart and go through checkout. Each event appears in the Pixel Helper dialog with a green dot when the pixel's code ran successfully or a red dot when the event arrived but the code failed; click the maximise icon to see the event data.
  4. 4If the dialog says Pixel is awaiting consent, accept tracking in the cookie banner or click Give consent to continue test.
  5. 5Run the destination's own tool alongside it, such as Meta Pixel Helper or a platform's test events screen, to confirm the platform received what Shopify sent.

The Pixel Helper tests one pixel at a time, clears its log on each new page, does not let you edit the pixel while it is running, and does not work on stores in private mode. It has no close button: close its tab to stop. App pixels can be tested the same way with their own Test option.

Frequently asked questions

Can a custom pixel read the dataLayer or the theme's HTML?

No. The custom pixel sits in its own iframe, so it cannot see the storefront's window, its HTML or a dataLayer built by theme code. Shopify's Google Tag Manager tutorial confirms that GTM's stateful dataLayer is not supported in the sandbox. The pixel only receives what Shopify passes in: standard events, DOM events and custom events published with analytics.publish.

Does every app with tracking show up under Customer events?

Only apps built on Shopify's Web Pixels API appear in the App pixels list. An older app that adds its tracking through theme code or the old Additional scripts box will not be listed there, and those scripts do not carry over to the upgraded Thank you and Order status pages. If an app's tracking is missing from Customer events, ask the developer whether it offers a web pixel.

What is the Optimized data access setting on an app pixel?

Shopify's help centre describes two data access options for app pixels: Always on, which gives the pixel unrestricted access, and Optimized, the default, where Shopify can pause data sharing when it detects a marketing pixel sharing more than it needs. Some analytics pixels cannot be optimised. An activity log records data access changes made from 3 June 2026 onward.

How many custom pixels can a Shopify store have?

Shopify's custom pixel help pages do not state a limit, so check the Custom pixels screen in your own admin. In practice, keep one pixel per destination and remove matching code from theme.liquid and the old Additional scripts box, which Shopify says is needed to stop events being counted twice.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading