Server-side tracking means events such as a purchase are sent from a server to Meta and Google, not only from the shopper's browser, where an ad blocker can stop them. On Shopify, Shopify's own servers send the purchase and no code is needed: set data sharing to Enhanced or Maximum in the Facebook & Instagram app to turn on Meta's Conversions API, and the Google & YouTube app sends purchases to Google Ads server to server.
How server-side tracking works on Shopify
With regular tracking, a pixel in the shopper's browser sends events such as product views, add-to-carts and purchases. With server-side tracking, a server sends them. Meta recommends using both: the Conversions API alongside the Meta pixel, with deduplication so one purchase only counts once. The difference is explained in Meta Pixel vs Conversions API.
Why browser pixels lose data
According to Shopify, an ad blocker can block a web pixel entirely, so its events never arrive. Meta and Google then see fewer purchases than actually happened. Intelligent Tracking Prevention (ITP) in browsers like Safari also shortens cookie lifetimes, which makes it harder to tie a purchase to the ad click, even though the pixel still sends it.
Your own Shopify reports and orders are not affected, because the order is recorded when it is processed. Your Shopify order count is the benchmark. Data sent server to server can't be blocked by a browser ad blocker, but consent rules still apply.
Before you start: clean up old pixels
Pixels on Shopify live under Settings > Customer events. There are two kinds: app pixels from apps like Facebook & Instagram and Google & YouTube, and custom pixels, added by hand by a developer. Shopify doesn't offer support for custom pixels.
Check two places first:
- Your theme code. Remove any old Meta pixel hard-coded in the theme. Otherwise the store has more than one pixel, which Shopify warns can give duplicate or incorrect data in your reports.
- Custom pixels under Customer events. Since February 2025, Meta pixels and Google Universal Analytics tags that weren't set up through the apps have been removed from the Preferences page and converted to custom pixels. If one of those sits next to the app, you are probably sending the same events twice.
Shopify recommends moving your Meta pixel to the Facebook & Instagram channel and Google Analytics to the Google & YouTube channel. Expect a single-digit percentage dip in event counts after the move, because some bots don't trigger Shopify's pixel sandbox. If you don't have a pixel yet, start with our guide to setting up the Meta pixel on Shopify.
Meta Conversions API on Shopify: setup step by step
- Install the Facebook & Instagram app and connect it to your Meta account and pixel.
- Open the data sharing settings. Go to Sales channels > Facebook & Instagram > Settings and click "Data sharing settings" (it may also be called "Share data settings").
- Turn on data sharing. Set the level to Enhanced or Maximum under "Choose data-sharing level" (or "CHOOSE LEVEL"), select your pixel and confirm.
| Level | What it sends | Server-side? |
|---|---|---|
| Standard | Only the Meta pixel in the browser. An ad blocker can stop it. | No |
| Enhanced | Conversions API plus the Meta pixel. The Conversions API sends the purchase event between Shopify's and Facebook's servers. | Yes |
| Maximum | Conversions API, the Meta pixel and what Shopify calls "Facebook's latest advertising technology". | Yes |
Enhanced and Maximum share the customer's name, location, email and phone number along with their browsing behavior, which helps Meta match the purchase to a person. Shopify says you need to tell customers how you share data and keep your privacy policy up to date. Enhanced is the lowest level with server-side tracking.
Shopify only documents the purchase event as going through the server, so don't assume other events do. In the browser, the pixel tracks PageView, ViewContent, Search, AddToCart, InitiateCheckout, AddPaymentInfo and Purchase, and the order value is the order's total price with duties, taxes and discounts factored in.
Google & YouTube app: setup step by step
- Install the Google & YouTube app (Sales channels > Google & YouTube) and connect Google Ads and Google Analytics 4.
- Check your conversions. When you link Google Ads, it suggests three default conversion actions: purchase, add to cart and checkout started. Edit them in the app's Settings tab under "Customer event settings" > Manage.
- Turn on enhanced conversions. In the app's Settings tab, under "Google Ads settings", find "Enhanced conversions" and select Turn on, then accept the customer data terms. Enhanced conversions send hashed first-party conversion data to Google.
- The server-to-server part runs on its own. Google calls it the "Shopify integration with Data Manager". It sends purchases directly from Shopify to Google Ads and activates automatically once the app is set up.
The integration only supports purchases driven by Shopify's "Checkout completed" event. Google deduplicates conversions from the tag and the server automatically. Google Tag Manager can't be set up through the app. Google doesn't support running Google tags inside a Shopify custom pixel either, and enhanced conversions may not work with them.
Consent in the EU and UK, and opt-outs in the US
Server-side tracking is not a way around cookie consent. Shopify says server pixels, which only certain apps have access to, are still subject to your store's customer privacy and consent settings, and events might be restricted when a visitor hasn't consented. Shopify doesn't document exactly what the Facebook & Instagram app sends for visitors who declined cookies, so expect some of those purchases to be missing in Meta.
- Pixels wait for consent. Where consent is required (usually the EEA and UK), pixels only run once the visitor grants the permissions they need, by default Marketing and Analytics.
- Shopify's cookie banner is under Settings > Customer privacy > Cookie banner. With "Use automated settings", Shopify configures it for visitors from the UK and EEA if you have active markets there.
- A third-party banner has to sync consent to Shopify through the Customer Privacy API, or your pixels might not fire even after the visitor says yes. The consent regions must match in Shopify and in the app, or data can be processed before consent is given.
- Google Consent Mode v2. EEA data isn't used for personalized advertising without Consent Mode v2 and valid consent. With the Google & YouTube app it turns on automatically with Shopify's cookie banner, and Google says it should also work with a banner that uses the Customer Privacy API.
- Opt-outs, for example in the US. Pixels configured as data sale won't run for customers who have opted out of data sales or sharing, unless the pixel supports limited data use.
How to check deduplication in Meta Events Manager
When the pixel and the Conversions API both send a purchase, Meta needs to know it's one purchase. Meta deduplicates on event ID and event name (recommended) or on FBP or external ID. With the first, the pixel's eventID must match the server event's event_id, and the event names must match. If Meta finds a match within 48 hours, it counts only one of them. If the browser and server events arrive within five minutes of each other, Meta keeps the browser event.
Check in Events Manager that it works. The menu names come from Meta's own guide and may have changed slightly:
- Go to Data Sources, select your pixel and open Overview. Events should show up within about 20 minutes, and Connection Method shows whether an event came from the browser or the server.
- Open Event Details for Purchase and go to the Event Deduplication tab. It shows "Rate of Events Deduplicated" and "Rate of Deduplication Key Usage".
- Look at Overlap. Low Overlap means the keys aren't unique, or only one source is sending a key.
- Check Event Match Quality too, scored from 1 to 10. Meta suggests at least 6.0.
Overview counts are from before deduplication and consent filtering, so they can look high.
Common mistakes
- Double tracking. A Meta pixel in the theme or as a custom pixel next to the app sends the same purchase twice. For Google, find duplicate tags with Google Tag Assistant: click the tag, open its Summary and the "Hits sent" tab.
- A paused pixel. App pixels default to "Optimized" (Settings > Customer events > the pixel's name), so Shopify can pause data from a marketing pixel that shares more than it needs, such as one from an app you no longer use. The other option is "Always on".
- Testing without consent. The Shopify Pixel Helper (Settings > Customer events > Test) shows "Pixel is awaiting consent" until you accept cookies. That isn't a broken setup.
- No testing after a migration. Tracking doesn't carry over from your old platform, so after a Shopify migration, set up and test pixels, data sharing and consent again. We check this ourselves after launch.
When is a third-party server-side solution worth it?
For many Shopify stores the two apps cover what matters most: the purchase, server to server, to both Meta and Google Ads. An extra solution, such as a tracking app or server-side Google Tag Manager on your own server, makes sense when:
- You want more events than the purchase sent from the server.
- You work in Google Tag Manager.
- You advertise on more platforms than Meta and Google and want the same events everywhere.
Whichever you pick, it has to respect the visitor's consent (read in the browser through the Customer Privacy API) and send event_id so Meta can deduplicate. If you choose an app, prefer one that runs as an app pixel under Customer events rather than theme code.
FAQ
What is server-side tracking?
Server-side tracking means events such as a purchase are sent from a server to Meta and Google, not only from the shopper's browser. On Shopify, purchases go to Meta through the Conversions API and to Google Ads through the Data Manager integration.
Do I need code for Shopify server-side tracking?
Not for the basics, because the two apps send the purchase from the server. You need code when you want to send more than purchases, or track other ad platforms.
Can server-side tracking get around cookie consent?
No. Shopify says server pixels are still subject to your store's consent settings, and code that bypasses consent violates the Shopify Terms of Service. If you use a third-party solution, it has to respect consent itself.
Why does Meta still show fewer purchases than Shopify?
Mainly because Ads Manager only shows purchases Meta can tie to an ad. A purchase from organic search, email or direct traffic only counts if the customer also saw or clicked an ad. Purchases from visitors who didn't consent can also be missing, and ITP makes it harder to tie a purchase to a click. To check for missing data, compare the purchases in Events Manager with your Shopify order count for the same period.
Get help with tracking and Meta Ads
OkayScale is a Danish Shopify agency. As a Meta Ads agency we set up pixels and conversion tracking properly, and for Nevermonday we have run all their Meta Ads. When we do conversion rate optimization, we start by checking that the data and tracking can be used.
Book a no-obligation call and tell us how your tracking is set up today.