
Shopify tracking: setting up GA4, Conversions API and enhanced conversions the right way
By Miguel Camacho, founder of Hipervínculo · Published November 19, 2026
If Meta says you sold 40 orders, Google says 35 and Shopify recorded 30, you don't have an ad problem. You have a tracking problem. Ad platforms bid on the data they get. If they're fed duplicate sales, missing sales or the wrong order value, they optimize toward the wrong shoppers. This guide walks through the setup in the order we do it, from connecting the apps to the weekly check.
Short answer. List what's already installed and remove duplicate tags. Connect GA4 through the Google & YouTube app, turn on the Meta Conversions API and Google Ads enhanced conversions, and set up consent. Then check that every Shopify order shows up once, with the same value, in each platform, and repeat that check every week.
Contents
- Why the platforms never agree on sales
- Step 1: Take inventory of what's already installed
- Step 2: Connect GA4 through the Google & YouTube app
- Step 3: Turn on the Meta Conversions API
- Step 4: Turn on Google Ads enhanced conversions
- Step 5: Get rid of duplicates
- Step 6: Set up consent
- Step 7: Check every order and its value
- Attribution windows: why everyone counts differently
- UTM hygiene
- What to check every week
- The mistakes we see most often
- Frequently asked questions
Why the platforms never agree on sales
Shopify records every order because it processes every order. Meta, Google Ads and GA4 only know about a sale if something tells them, and each one credits it by its own rules. Numbers that don't match are normal. What matters is that you can explain the gap.
| Cause | What happens |
|---|---|
| Ad blockers and privacy-focused browsers | The browser tag never fires, so that platform never hears about the sale. |
| Consent | If a visitor declines cookies, some tags don't run or send less data. |
| Attribution windows | Meta counts sales after someone sees an ad; Google counts sales weeks after a click. Both can claim the same order. |
| Attribution models | Each platform splits credit its own way, and Shopify and GA4 use yet another approach. |
| Duplicate tags | One purchase gets reported twice because two tags fire for the same event. |
| Different values | One platform gets the total with tax and shipping, another gets the subtotal. |
The rule we work by. Shopify is the source of truth for how much you sold. Ad platforms are for deciding where to spend, not for counting the money.
Take inventory of what's already installed
Before you add anything, look at what's there. Most stores we audit have tags from several eras: one from the last agency, one from a reviews app, one pasted into the theme by hand.
- Customer events. In your Shopify admin, go to Settings, then Customer events. That's where app pixels and custom pixels live. Shopify loads them on the storefront, in checkout and on the thank-you page, inside a sandbox.
- Theme code. Search
theme.liquidfor Google, Meta or Tag Manager snippets someone pasted in. - Third-party apps. Check which installed apps send purchase events on their own.
- The platforms. In Google Ads, Meta Events Manager and GA4, write down which conversion actions exist and which are active.
The goal is a simple list: for each platform, one source for the purchase event.
Connect GA4 through the Google & YouTube app
Shopify's Google & YouTube app installs the Google tag and connects GA4, Google Ads and Merchant Center in one place. You'll need Editor access on the GA4 property to link it.
- Link the right property. Plenty of stores have two or three GA4 properties created at different times. Pick one and remove the other tags.
- Check the ecommerce events. The app sends product views, add to cart, begin checkout and purchase. Make sure purchase shows up as a key event in GA4.
- Exclude outside payment domains. If a third-party payment processor takes shoppers off your store, add it to your unwanted referrals list so it doesn't take credit for the sale.
- Give it time. Data can take a day or two to show up after you connect.
Turn on the Meta Conversions API
The Meta pixel runs in the browser, and ad blockers stop it. The Conversions API sends events from Shopify's servers straight to Meta's, without going through the browser. With Shopify's Facebook & Instagram app, there's nothing to code.
| Data sharing level | What it does |
|---|---|
| Standard | Browser pixel only. |
| Enhanced | Pixel plus Conversions API, with customer details so Meta can match the purchase to a person. |
| Maximum | Pixel plus Conversions API, with Meta's latest features. This is the one we use. |
You'll find it in the Facebook & Instagram channel, under data sharing settings. Then open Events Manager and confirm purchases arrive from both the browser and the server, and look at the event match quality. If it's low, Meta is struggling to recognize your buyers.
Turn on Google Ads enhanced conversions
Enhanced conversions add to your purchase tag: they send Google buyer details, such as email, hashed before they leave the site. Google uses them to match sales to clicks it would otherwise lose.
- Turn them on in the app. In the Google Ads settings inside the Google & YouTube app, you can switch them on and accept the customer data terms.
- Check the method in Google Ads. If you used Tag Manager or hand-coded tags before, confirm in the account that the setup method matches the Google tag the app now installs.
- Read the diagnostics. Google Ads shows whether enhanced conversions are receiving data. Look a week after you turn them on.
Get rid of duplicates
A duplicate makes the account look more profitable than it is and pushes bids up for no reason. It's the most expensive mistake we find.
- In Meta. When the pixel and the Conversions API both send the same purchase, Meta counts it once if both arrive with the same event name and the same event ID. Shopify's app handles that for you. The trouble starts when another app or custom code also sends purchases without that ID.
- In Google Ads. Keep one purchase action as primary. If you import purchases from GA4 and also have the app's tag, both count. Set one to secondary or remove it.
- In GA4. If the app and a hand-coded theme tag both run, every order shows up twice. Remove the hand-coded one.
Set up consent
Shopify has its own cookie banner and customer privacy tools. In markets that require consent, such as the EU and the UK, pixels only run after the visitor grants the permissions each one asks for. Shopify also respects shoppers who opt out of the sale or sharing of their data.
- Know where you sell. If you only sell in the US, the rules vary by state. If you sell into Europe, a banner and Google's Consent Mode are effectively required.
- Connect the banner to your tags. Shopify's banner passes the visitor's choice to its pixels and to the Google & YouTube app. If you use a banner from another app, confirm it does the same.
- Test both paths. Accept and then decline cookies in a private window and watch what fires each time.
This isn't legal advice. Privacy obligations depend on where you sell, and they're the store's responsibility.
Check every order and its value
The setup isn't done until you've checked it against real orders.
- Place a test order. Use a discount code or a cheap product. Write down the order number, the time and the total.
- Find it on every platform. Events Manager, GA4's real-time view and, the next day, Google Ads. It should show up once.
- Compare the value. Decide on purpose whether you send the total with tax and shipping or the subtotal, and use the same choice everywhere. Otherwise your ROAS numbers can't be compared.
- Check the currency. If you sell in more than one currency, make sure the value arrives in the right one.
- Compare a full week. Shopify orders against GA4 purchases. A small gap is normal. A 30% gap means a broken tag or a duplicate.
Attribution windows: why everyone counts differently
An attribution window is how long a platform will take credit for a sale after a click or a view. It changes the numbers even when tracking is perfect.
| Source | How it counts |
|---|---|
| Meta | The most common setting counts purchases up to 7 days after a click and 1 day after someone views the ad without clicking. |
| Google Ads | Each conversion action has its own click window; for purchases it's usually 30 days. |
| GA4 | Splits credit across channels based on its attribution model and lookback window. |
| Shopify | Records every order and assigns it to channels by its own logic. |
Add up the sales every platform claims and you'll almost always get more than you sold. That's why we judge the overall result: net Shopify sales divided by total ad spend. Check the windows in each account's settings, because the platforms change them often.
UTM hygiene
UTMs are the tags at the end of a link that say where a visit came from. When they're wrong, GA4 and Shopify file your sales under "direct" or under channels that don't exist.
- Google Ads. Leave auto-tagging on. Don't stack manual UTMs on top.
- Meta. Use the ad's URL parameters with fixed values:
utm_source=facebookorinstagram,utm_medium=paid_socialand the campaign name. - Email, SMS and influencers. Every link gets its own source and medium. An influencer link without UTMs is a sale nobody can trace.
- Always lowercase. GA4 treats "Facebook" and "facebook" as two different sources.
- Never on internal links. A UTM on a banner inside your own store restarts the session and wipes out the real source.
What to check every week
| What to check | What to look for |
|---|---|
| Shopify vs. GA4 | Orders and revenue for the week. The gap should stay steady. |
| Events Manager | Purchases still arriving from both browser and server, with no warnings. |
| Google Ads diagnostics | Status of your conversion actions and enhanced conversions. |
| Customer events | No new pixel quietly added by an app. |
| Sources in GA4 | Traffic under "(not set)" or oddly capitalized, misspelled sources. |
| Blended ROAS | net Shopify sales divided by total ad spend. |
Run through all of this again whenever you install an app, change themes or touch checkout. Those are the moments tracking breaks most often.
The mistakes we see most often
- Running the app's tag and a hand-coded tag for the same purchase.
- Importing GA4 purchases into Google Ads while also using the Google Ads tag, both set as primary.
- Leaving the Conversions API off, or data sharing on Standard.
- Sending the total with tax to one platform and the subtotal to another.
- Adding up what every platform claims and treating that as the result.
- Putting UTMs on internal store links.
- Not rechecking tracking after a theme change or a new app.
When it makes sense to get help
With these steps you can get tracking right on a simple store. It's worth getting help in three cases:
- The numbers don't match and you can't say why. The gap between Shopify and the platforms is large, or it moves week to week.
- Your ad spend is significant. At that scale, a duplicate conversion means a lot of money pointed the wrong way.
- You have lots of apps, markets or currencies. Each one is another place tracking can break.
For reliable numbers without doing it yourself, see Shopify conversion tracking or read our Google Ads for Shopify guide.
Find where your numbers break
In a free 30-minute audit, you see your Shopify orders side by side with what Meta, Google Ads and GA4 report, and what to fix first.
Questions about Shopify tracking
Why does Meta report more sales than Shopify?
Because it counts sales from people who saw an ad without clicking, and because other platforms claim the same orders. If the gap is very large, also check for duplicate purchases.
Do I need Google Tag Manager on Shopify?
For most stores, no. The Google & YouTube and Facebook & Instagram apps cover GA4, Google Ads and Meta. Tag Manager makes sense when you need events or platforms those apps don't handle.
Does the Conversions API replace the Meta pixel?
No. They work together. The pixel captures what happens in the browser and the Conversions API sends events from the server. Meta removes the duplicate when both send the same purchase with the same event ID.
Should conversion value include tax and shipping?
That's your call, but it has to be the same on every platform. We prefer a value close to net sales, because that's what you compare against ad spend.
How often should I check tracking?
A quick comparison every week, and a full review whenever you change themes, install an app or change checkout.
Which sales number is the right one?
Shopify's. It's the system that processes the orders. Ad platforms are for comparing campaigns with each other, not for counting the money.
Count every sale once, at its real value
Get your tracking reviewed on a 30-minute call: send us your store URL on WhatsApp. We're a Shopify Partner, a Google Partner and Meta certified.
Find out what's holding your sales back. Free.
In 30 minutes you get the list of what we'd fix first. It's yours to keep, whether you work with us or not.
