If your Meta ads results look worse than your Shopify sales, the problem is often tracking, not the ads. Setting up the Conversions API on Shopify alongside the Meta Pixel is the most reliable way to send Meta accurate purchase data, which helps the algorithm find more buyers. This guide walks through why browser-only tracking falls short, how to set up both properly, and how to test that everything works.
We set this up for every e-commerce brand we run Meta ads for, because no amount of great creative can make up for an algorithm that is learning from incomplete data. Get tracking right first, then scale.
Why browser-only tracking under-reports your sales
The Meta Pixel is a piece of JavaScript that runs in the shopper’s browser. When someone views a product or buys, the pixel fires an event back to Meta. That worked well for years. Today, a lot can stop that event from ever arriving.
Ad blockers and privacy browsers
Many shoppers use ad blockers or browsers with built-in tracking protection. These tools commonly block the pixel script or its requests entirely. The purchase happens in Shopify, but Meta never hears about it.
iOS privacy changes
Apple’s App Tracking Transparency framework lets iPhone users opt out of tracking inside apps, including Facebook and Instagram, and many do. Combined with Safari’s tracking limits, this reduces the data Meta can connect back to an ad click. The result is fewer attributed conversions and less signal for optimization.
Cookie limits and short attribution windows
Browsers increasingly restrict third-party cookies and shorten the lifespan of some first-party cookies set by scripts. When the cookie that links a shopper to their ad click expires or never gets set, Meta struggles to match the later purchase to the ad.
Real-world interruptions
Slow connections, people closing the tab before the thank-you page fully loads, and checkout or theme changes that break the pixel all cause lost events. None of these are rare.
Key takeaway: browser-only tracking misses real sales, which makes your ads look less profitable than they are and starves the algorithm of the data it needs to optimize.
Meta Pixel vs Conversions API: what each one does
You do not choose between the pixel and the Conversions API. You use both, and they cover each other’s gaps.
The Meta Pixel (browser-side)
- Runs in the shopper’s browser.
- Captures on-site behavior quickly and easily.
- Has access to browser identifiers like Meta’s cookies.
- Vulnerable to ad blockers, browser restrictions and page-load issues.
The Conversions API (server-side tracking)
The Facebook Conversions API, often called CAPI, sends events directly from a server to Meta rather than from the shopper’s browser.
- Not affected by ad blockers or browser script blocking.
- Can send events that never touch the browser, such as confirmed orders.
- Can include richer customer information (hashed) to improve matching.
- Depends on correct configuration, especially deduplication.
Why you need both
The pixel catches events and browser identifiers the server may not have. The server catches events the browser misses. When both send the same event, Meta deduplicates them and keeps one. The combination gives Meta the most complete, reliable picture of what happened.
How to set up the Conversions API on Shopify
For most Shopify brands, the simplest and most robust route is Shopify’s native Facebook & Instagram sales channel app. It connects your store to Meta, installs the pixel, and can send server-side events through the Conversions API without custom code.
Before you start
Have these ready:
- Admin access to your Shopify store.
- A Meta Business portfolio (Business Manager) where you have admin rights.
- Your Meta ad account and the pixel (also called a dataset in newer Meta interfaces) you want to use.
- Your Facebook Page and, if relevant, your Instagram account.
If you already have a pixel with history, connect that existing one. Creating a fresh pixel throws away learning and audience data you have built up.
Step 1: Install the Facebook & Instagram channel
In Shopify, add the Facebook & Instagram sales channel from the Shopify App Store. Follow the setup flow to connect your Meta business account, ad account, Page and pixel. Make sure you select the correct business portfolio, especially if you or your agency manage more than one.
Step 2: Choose the strongest data-sharing level
During setup, Shopify asks how much customer data to share with Meta. The options typically range from a standard browser-only level to higher levels that add server-side sharing. Choose the highest level available to you. That setting is what turns on the Conversions API connection. Your privacy policy and consent setup should reflect this choice, so check with whoever handles legal for your store.
Step 3: Remove duplicate or legacy pixel code
This is where many stores go wrong. If the pixel was previously added manually to your theme code, through an old app, or through a tag manager, you may now be firing it twice. Remove any legacy pixel snippets so that the Facebook & Instagram channel is the single source of browser-side events, unless you have a deliberate custom setup.
Step 4: Confirm events in Events Manager
Open Meta Events Manager, select your pixel, and check the overview. Within a day of normal traffic, you should see your standard events arriving, with an indication that they are received from both the browser and the server. We cover testing in detail below.
When to consider a custom or third-party setup
The native channel covers most needs. Some brands use a server-side tag manager, a dedicated tracking app, or a custom integration when they need non-standard events, headless storefronts, or very specific control over data. These can work well, but they add complexity and more places for deduplication to break. If you do not have a clear reason to go custom, stick with the native integration.
The standard events that matter for Shopify
Meta has a set of standard events that the algorithm understands. For an online store, these form your funnel.
- ViewContent: a shopper views a product page. Fuels retargeting audiences and upper-funnel optimization.
- AddToCart: a product is added to the cart. A strong signal of intent and a common retargeting audience.
- InitiateCheckout: a shopper begins checkout. Useful for checkout abandonment audiences.
- Purchase: an order is completed. This is the event most e-commerce campaigns should optimize for, and it must include value and currency.
- Lead: someone submits a form or signs up. Essential for service businesses and useful for stores that run lead or waitlist campaigns.
Other standard events such as Search, AddPaymentInfo and CompleteRegistration can also be useful, but the five above carry most of the weight for a typical store.
Check the parameters, not just the event names
An event firing is not enough. A Purchase event should carry the correct order value and currency, plus product identifiers that match your catalog if you run catalog or dynamic ads. Wrong currency or a value of zero quietly ruins your reporting and value-based optimization.
Event deduplication: the step people get wrong
When the pixel and the Conversions API both send the same Purchase, Meta needs to know they describe one sale, not two. That is what event deduplication does.
How deduplication works
Meta matches a browser event and a server event as duplicates when they share:
- The same event name (for example, Purchase).
- The same event_id, a unique identifier generated for that specific event and passed in both the browser and server versions.
When both match within Meta’s deduplication window, Meta keeps one and discards the other. The native Shopify integration handles this automatically when it is set up correctly.
What goes wrong
- Missing event_id: if either side omits it, Meta cannot deduplicate, and you may see inflated conversions.
- Mismatched event_id: if the browser and server generate different IDs for the same order, the events are counted twice.
- Mismatched event names: sending “Purchase” from one side and a custom name from the other breaks the match.
- Double pixels: a legacy pixel plus the channel pixel can create duplicates that deduplication does not catch cleanly.
How to spot it
Compare Purchase counts in Events Manager and Ads Manager against actual orders in Shopify over the same period. Attribution means the numbers will never match perfectly, but if Meta reports far more purchases than Shopify recorded, suspect duplication. Events Manager also shows diagnostics when it detects deduplication problems.
Key takeaway: deduplication is what lets you run the pixel and the Conversions API together without double counting. Verify it, do not assume it.
Event Match Quality and customer parameters
Sending events is step one. Meta also has to match each event to a real person on Facebook or Instagram. Event Match Quality, shown in Events Manager as a score for each event, estimates how well your events can be matched.
What improves matching
Meta matches events using customer information parameters, such as:
- Email address
- Phone number
- First and last name
- City, state, zip code and country
- External ID (your own customer identifier)
- Browser identifiers like the click ID and browser cookie values
- IP address and user agent
The more accurate parameters you send with an event, the more likely Meta can match it. Purchase events usually match best because checkout collects email, phone and address.
Hashing and privacy
Personal information such as email and phone must be normalized and hashed (Meta uses SHA-256) before being sent through the Conversions API. Normalizing means steps like lowercasing emails and formatting phone numbers consistently before hashing. The native Shopify integration handles this for you. If you build a custom setup, getting hashing and normalization right is essential, both for privacy and for match rates.
How to raise Event Match Quality
- Use the highest data-sharing level in the Shopify channel.
- Make sure the server events include email and phone where you legitimately collect them.
- Keep browser identifiers flowing by not breaking the pixel.
- Encourage email capture earlier in the journey so more events carry an identifier.
- Review the per-event recommendations Events Manager shows and act on them.
Domain verification and Aggregated Event Measurement
Two more pieces of setup matter for accuracy and control.
Verify your domain
Domain verification proves to Meta that you own your store’s domain. It is done in your Meta business settings, usually by adding a DNS TXT record through your domain provider or by uploading a meta tag or file. Verifying your domain gives you control over how events from it are configured and over link editing permissions, and it protects your domain from misuse by others.
Verify the root domain your store uses, not only a subdomain, and keep the record in place permanently.
Aggregated Event Measurement priorities
Meta introduced Aggregated Event Measurement in response to iOS privacy changes, to measure web events from users who opted out of tracking. Historically, advertisers had to configure and rank a limited number of priority events per domain, with Purchase at the top. Meta has since simplified this and removed much of the manual event-ranking requirement, so depending on your account you may no longer need to rank events at all.
If your account still shows event configuration options for your domain, make sure Purchase is your highest priority, followed by events like InitiateCheckout and AddToCart. If it does not, focus on clean events and good match quality, which is what matters most now.
How to test your setup with Events Manager Test Events
Never assume tracking works. Test it.
Run a browser test
- In Events Manager, open your pixel and go to the Test Events area.
- Enter your store URL and open the site from there, or use the test option it provides.
- Browse a product, add it to cart and start checkout. Watch the events appear in real time.
- Confirm each event shows the right name and parameters, such as product IDs, value and currency.
Check server events
Server events from the native integration may appear in Test Events, or you can check them in the event overview, where Meta shows whether each event is received from the browser, the server, or both. For Purchase, you want to see both, with deduplication working.
Place a real test order
The cleanest test of Purchase is a real low-value order or a test order flow. Then confirm the Purchase event shows the correct value and currency, and that it was not counted twice. Cancel or refund the order afterward if needed.
Monitor diagnostics
Check the diagnostics section of Events Manager regularly. It flags issues such as missing parameters, deduplication problems, and domain-related warnings. Treat it like a smoke alarm.
Common Conversions API Shopify mistakes to avoid
These are the problems we find most often when we audit a new client’s account:
- Two pixels on the store. A legacy pixel in the theme plus the Shopify channel pixel, causing duplicates and messy data.
- Wrong pixel connected. The channel is linked to an old or different pixel than the one the ads optimize for.
- Low data-sharing level. Browser-only sharing, so the Conversions API is not actually running.
- Missing value or wrong currency. Purchases send zero value or the wrong currency, breaking ROAS reporting.
- No deduplication. Custom setups that skip event_id, inflating conversions.
- Optimizing for the wrong event. Campaigns optimizing for AddToCart or ViewContent when there is enough volume to optimize for Purchase.
- Unverified domain. Leaving the domain unverified and losing control over its configuration.
- Never re-testing. Theme updates, new apps, or checkout changes can break tracking months later. Re-test after any significant store change.
How accurate tracking improves your Meta results
Clean tracking is not a reporting nicety. It directly affects performance.
- Better optimization: Meta’s delivery system learns from conversion events. More complete, accurate events give it more to learn from, which usually means more efficient delivery.
- Better audiences: retargeting and lookalike audiences are only as good as the events that build them.
- Better decisions: when reported ROAS reflects reality, you scale winners with confidence and cut losers sooner.
That is a big part of how we approach growth. For a California fabric brand, Kiki Textiles, our Meta campaigns drove $118,882 in revenue in 90 days, and decisions like that depend on trustworthy purchase data. For the full campaign side, read our Meta ads playbook for Shopify brands.
Frequently asked questions
Do I still need the Meta Pixel if I use the Conversions API?
Yes. Meta recommends using both. The pixel captures browser-side behavior and identifiers, while the Conversions API sends events from the server that the browser may miss. With deduplication in place, Meta combines them without double counting.
Does Shopify support the Conversions API natively?
Yes. Shopify’s Facebook & Instagram sales channel can send server-side events through the Conversions API when you choose the higher data-sharing settings during setup. For most stores, this native route is the simplest and most reliable option.
What is event deduplication in Meta tracking?
Event deduplication is how Meta recognizes that a browser event and a server event describe the same action. When both share the same event name and event_id, Meta keeps one and discards the duplicate, so a single purchase is not counted twice.
How do I improve my Event Match Quality score?
Send more accurate customer parameters with your events, such as hashed email, phone and address, plus browser identifiers. On Shopify, choosing the highest data-sharing level in the Facebook & Instagram channel is usually the biggest single improvement.
How long does it take for tracking changes to show in Events Manager?
Test Events show browser events in real time. Overview data, match quality scores and diagnostics can take from several hours to a couple of days to update, so give changes time before judging them.
Ready to grow?
If you are not sure your Meta tracking is telling you the truth, it is worth checking before you spend another dollar. We audit Pixel and Conversions API setups, fix what is broken, and then build campaigns on data you can trust.
Book a free strategy call and we will review your tracking and your ads together.


