How Do I Track Facebook Ad Sales in Shopify?

Pix-Vu||5 min read
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

  1. In Shopify, go to Apps
  2. Click Visit Shopify App Store
  3. Search for Facebook & Instagram by Meta
  4. Click Add app
  5. Approve the permissions Shopify requests
  6. The app installs and appears under your Sales Channels

Step 2: Connect Facebook Business Manager

  1. Open the Meta sales channel in Shopify
  2. Click Start setup
  3. Click Connect account
  4. Log into Facebook with your Business Manager admin account
  5. Select the correct Business Manager
  6. Authorise the connection

Step 3: Choose Your Meta Pixel

  1. Under Data sharing, select Maximum (enables Conversions API)
  2. Choose your existing Meta Pixel from the dropdown — or create a new one
  3. Enter your customer information settings (email, phone, etc. — these get hashed)
  4. 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.

  1. In the Meta sales channel settings, find Customer data sharing
  2. Set to Maximum
  3. Confirm the consent settings match your privacy policy
  4. Click Save

Shopify now sends both browser pixel events AND Conversions API events for every purchase.

Step 5: Verify Events Are Firing

  1. Go to Meta Events Manager (events-manager.facebook.com)
  2. Select your pixel
  3. Click Test events
  4. Open your Shopify store in a new tab
  5. Add a product to cart, view cart, start checkout, and complete a test purchase
  6. Watch the Test Events panel — you should see ViewContent, AddToCart, InitiateCheckout, and Purchase events appear in real time
  7. Each event should show Browser AND Server as the source

If both sources appear, your tracking is complete.

Standard Events Shopify Sends Automatically

EventWhen It FiresWhy It Matters
PageViewEvery page loadBaseline traffic tracking
ViewContentProduct detail pageRetargeting product viewers
AddToCartItem added to cartMid-funnel optimisation
InitiateCheckoutCheckout startedHigh-intent retargeting
AddPaymentInfoPayment details enteredCart abandoners
PurchaseOrder completedSales optimisation event
SearchSearch bar usedSearch intent retargeting
All seven events get sent automatically with Shopify's Meta integration. You don't need to add custom code.

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:

  1. Purchase (always #1)
  2. InitiateCheckout
  3. AddPaymentInfo
  4. AddToCart
  5. ViewContent
  6. Search
  7. Subscribe (if applicable)
  8. 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

SourceWhat It CountsWhen to Trust It
Facebook Ads Manager7-day click + 1-day view attributionOptimising campaigns
Shopify ReportsLast-click attributionInternal revenue accounting
Conversions API matchedServer-verified purchasesHighest fidelity
UTM-tagged links + GA4Multi-touch attributionCross-channel comparison
Always report Facebook's number for Facebook campaigns. Always report Shopify's number for total revenue. They will not match exactly — that's normal.

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