The Meta pixel on Shopify
Also called Facebook pixel · Updated
The Meta pixel is the same asset whether you call it a Facebook pixel, a Meta pixel or a Meta tracking pixel — one ID that covers Facebook ads, Instagram ads and Advantage+ campaigns. On Shopify the only question that matters is how it gets installed, because a pixel that lives in your theme cannot follow a shopper into checkout.
Meta pixel at a glance
- ID format
- A 15 or 16 digit number, e.g. 123456789012345
- Where to find the ID
- Meta Events Manager → Data sources → your pixel → the ID under its name
- Server-side API
- Conversions API
- Ad surfaces covered
- Facebook ads, Instagram ads, Messenger, Audience Network, Advantage+ shopping
Copy the ID from Meta’s own dashboard rather than typing it — a transposed digit produces a pixel that installs cleanly and reports nothing.
Events the Meta pixel accepts on Shopify
| Event name | When it fires |
|---|---|
PageView | Fires on every page, including checkout steps. |
ViewContent | Product pages. Carries content_ids and value. |
Search | Your storefront search results page. |
AddToCart | Cart additions, including AJAX carts. |
InitiateCheckout | The first checkout step. |
AddPaymentInfo | Payment step of checkout. |
Purchase | Order confirmation. The event Meta optimises against. |
Server-side tracking: Conversions API
Needs a system-user access token generated in Events Manager. Pixelfy pairs it with the browser pixel and shares an event ID so Meta discards the duplicate.
What goes wrong with the Meta pixel on Shopify
- Instagram does not have its own pixel. The same Meta pixel ID covers both, so a “separate Instagram pixel” is never the answer to missing Instagram attribution.
- Shopify’s built-in Facebook channel holds exactly one pixel. A second ad account or an agency needs a pixel app, not a second channel connection.
- Meta needs conversion events, not page views, to leave the learning phase. A pixel firing PageView alone will not train the algorithm.
How Meta attribution actually works on Shopify
Meta does not count sales. It counts events it received, matched to a person it recognises, inside an attribution window it considers valid. All three can fail independently, which is why the number in Ads Manager is almost never the number in your Shopify admin, and why chasing an exact match wastes time.
Matching is the part you control. Every event carries customer information — an email hash, a phone hash, an IP, a browser cookie — and the more of those that arrive intact, the more confidently Meta ties the purchase to the person who saw the ad. Server-side events carry stronger matching data than browser events because they are assembled from the Shopify order rather than from whatever survived the browser, which is the real reason the Conversions API lifts reported conversions rather than just replacing lost ones.
What Advantage+ campaigns need from the pixel
Advantage+ shopping campaigns hand targeting decisions to Meta’s model, which makes the quality of your event stream the only lever you still hold. A pixel sending Purchase with a value, a currency and catalog-matched content_ids gives the model something to optimise against. A pixel sending PageView gives it nothing, and the campaign spends its budget learning what a good customer looks like from scratch.
This is also why the learning phase stalls on low-volume stores. Meta wants roughly fifty conversion events per ad set per week before it considers delivery stable. If a third of your Purchase events never arrive because the browser dropped them, a store genuinely doing seventy-five orders a week looks like one doing fifty, and never exits learning.
Step-by-step installation
This page is the reference. For the click-by-click walkthrough, including the Events Manager side of the setup, read the full guide.
Meta pixel setup for Shopify, start to finish →Related reading
- The Facebook Conversions API on Shopify
How the Meta Conversions API recovers Shopify conversions lost to iOS 14, ad blockers and Safari, what event deduplication does, and how to set it up.
- How to run multiple Facebook pixels on one Shopify store
Shopify’s Facebook channel allows one pixel. Here is how to run several Meta pixels on one store, split events between them, and keep attribution clean.