How Do I Track Facebook Ad Sales in Shopify?
Quick Answer
To track Facebook ad sales in Shopify, install the Facebook & Instagram by Meta app from the Shopify App Store, connect your Facebook Business Manager, select your Meta Pixel, and enable the Conversions API option. This installs the pixel automatically on every Shopify page and sends purchase events both client-side (browser) and server-side (Conversions API). Setup takes 15 minutes.
Step-by-Step Setup
Step 1: Install the Meta Sales Channel App
- In Shopify, go to Apps
- Click Visit Shopify App Store
- Search for Facebook & Instagram by Meta
- Click Add app
- Approve the permissions Shopify requests
- The app installs and appears under your Sales Channels
Step 2: Connect Facebook Business Manager
- Open the Meta sales channel in Shopify
- Click Start setup
- Click Connect account
- Log into Facebook with your Business Manager admin account
- Select the correct Business Manager
- Authorise the connection
Step 3: Choose Your Meta Pixel
- Under Data sharing, select Maximum (enables Conversions API)
- Choose your existing Meta Pixel from the dropdown — or create a new one
- Enter your customer information settings (email, phone, etc. — these get hashed)
- Click Confirm
Step 4: Enable Conversions API
Conversions API is critical post-iOS 14.5 — it sends conversion data server-side to bypass tracking blockers.
- In the Meta sales channel settings, find Customer data sharing
- Set to Maximum
- Confirm the consent settings match your privacy policy
- Click Save
Shopify now sends both browser pixel events AND Conversions API events for every purchase.
Step 5: Verify Events Are Firing
- Go to Meta Events Manager (events-manager.facebook.com)
- Select your pixel
- Click Test events
- Open your Shopify store in a new tab
- Add a product to cart, view cart, start checkout, and complete a test purchase
- Watch the Test Events panel — you should see ViewContent, AddToCart, InitiateCheckout, and Purchase events appear in real time
- Each event should show Browser AND Server as the source
If both sources appear, your tracking is complete.
Standard Events Shopify Sends Automatically
| Event | When It Fires | Why It Matters |
|---|---|---|
| PageView | Every page load | Baseline traffic tracking |
| ViewContent | Product detail page | Retargeting product viewers |
| AddToCart | Item added to cart | Mid-funnel optimisation |
| InitiateCheckout | Checkout started | High-intent retargeting |
| AddPaymentInfo | Payment details entered | Cart abandoners |
| Purchase | Order completed | Sales optimisation event |
| Search | Search bar used | Search intent retargeting |
Pre-Launch Verification Checklist
[ ] Meta Pixel installed (visible in source code on every Shopify page)
[ ] Pixel ID matches Business Manager pixel
[ ] Conversions API enabled (Maximum data sharing)
[ ] Test purchase fires Purchase event in Test Events
[ ] Purchase event shows BOTH Browser and Server sources
[ ] Event Match Quality score is 7+ in Events Manager
[ ] Customer Information Parameters (email, phone, etc.) configured
[ ] Domain verified in Meta Business Settings
[ ] Aggregated Event Measurement priority set
[ ] Data deletion request webhook configured (GDPR)
[ ] Cookie consent banner respects pixel firing
Check all 11 boxes before relying on tracking.
Configure Aggregated Event Measurement
Since iOS 14.5, Apple limits Meta to 8 conversion events per domain. Configure them in priority order:
- Purchase (always #1)
- InitiateCheckout
- AddPaymentInfo
- AddToCart
- ViewContent
- Search
- Subscribe (if applicable)
- Lead (if applicable)
Go to Events Manager > Aggregated Event Measurement > select your domain > drag events into priority order > save.
Common Tracking Problems
Problem: Purchase event not firing
Check the order confirmation page in Test Events. If it doesn't fire, reinstall the Meta sales channel app — the Shopify integration sometimes breaks during theme updates.
Problem: Browser source only, no Server source
Conversions API isn't enabled. Go back to Meta sales channel settings and switch to Maximum data sharing.
Problem: Duplicate events
You likely have the pixel installed twice — once via Shopify's Meta channel, once via theme code. Remove the manual theme installation.
Problem: Low Event Match Quality
You're missing customer information parameters. Enable email, phone number, first name, last name, city, state, country, and date of birth (where collected). Higher match quality = better attribution.
Problem: Wrong attribution numbers
Facebook attribution often disagrees with Shopify's reports. Facebook uses 7-day click + 1-day view by default; Shopify uses last-click. Both can be "right."
Problem: Pixel firing on test purchases but not real ones
Check if your cookie consent banner is blocking pixel firing for new visitors. Update consent settings to fire pixel on accept.
How to Compare Facebook Attribution to Shopify Reports
| Source | What It Counts | When to Trust It |
|---|---|---|
| Facebook Ads Manager | 7-day click + 1-day view attribution | Optimising campaigns |
| Shopify Reports | Last-click attribution | Internal revenue accounting |
| Conversions API matched | Server-verified purchases | Highest fidelity |
| UTM-tagged links + GA4 | Multi-touch attribution | Cross-channel comparison |
Common Mistakes
Mistake 1: Skipping Conversions API. Browser-only tracking misses 30-50% of conversions on iOS devices. CAPI is non-negotiable.
Mistake 2: Not verifying your domain. Without domain verification, Meta won't run conversion campaigns properly.
Mistake 3: Installing the pixel twice. Theme-level + app-level installations cause duplicate events. Pick one.
Mistake 4: Not configuring AEM events. Without prioritised events, iOS users get attributed to lower-priority events instead of purchases.
Mistake 5: Reporting Shopify numbers in Ads Manager. They'll never match. Use the right tool for the right report.
Skip the Tracking Setup Entirely
The pixel + CAPI + AEM + verification process is fragile. One Shopify theme update can break it overnight.
Pix-Vu connects directly to your Meta Business Manager and Shopify, handles all the tracking setup, monitors event health, and runs ads optimised against your verified conversion data.
No more debugging the pixel. No more guessing if attribution is accurate. Just $99/month.
Start with Pix-Vu — 30-day money-back guarantee.
Ready to automate your Facebook ads?
Let AI handle your ad creative, targeting, and optimization. Launch profitable campaigns on autopilot.
Get Started Free