Meta Ads Integration Testing

Hi everyone,

I’m currently working on integrating Meta (Facebook Ads) with a Shopify store and want to make sure I’m doing it the right way, especially from a server-side tracking and data perspective.

What I’m trying to achieve:

  • Proper integration of Meta Ads with Shopify

  • Setup of Conversion API (CAPI) for server-side event tracking

  • Ensure events like Purchase, Add to Cart, etc. are tracked accurately

  • Pull data from Meta Marketing API into my system (for analytics/dashboarding)

What I’ve done so far:

  • Connected Meta Ads account

  • Explored Pixel + basic event tracking

  • Looked into CAPI but unsure about correct implementation approach

  • Planning to build this into a Shopify app / backend system

Where I need help:

  1. What is the best practice setup for Pixel + CAPI together?

  2. How do I validate that events are firing correctly (both browser + server)?

  3. Any tips for deduplication of events?

  4. Best way to pull ads + conversion data via Meta API reliably?

  5. Common mistakes to avoid?

Bonus:

If you’ve built something similar (Shopify app or internal tool), I’d love to learn from your approach :raising_hands:

Thanks in advance!

  1. i mean you should use both together. pixel for browser events and CAPI for server side tracking. and you can set up both from Meta Ads Manager,
  2. Test events Tool which you can access in the Events Manager.
  3. i would say (from experience) use the same event_id for both fbq() pixel call and CAPI payload. this is because Meta matches on event_name + event_id
  4. you should try and use Marketing API from their side.
  5. avoid no event_id on pixel, or case mismatches on event names.

i haven’t built, but for meta ads conversion tracking, setting up pixels, and server-side tracking, i use AdNabu’s facebook pixel app. it is reliable and provides accurate insights.