Meta Ads + Detectly
Connect your Meta ad accounts to Detectly for accurate ROAS tracking, CAPI purchase events, and campaign-level attribution on every Shopify order.
What you get
- Auto-import ad spend from Meta Ads Manager
- True ROAS per campaign, ad set, and individual ad
- Server-side CAPI purchase events for better match rates
- Automatic fbclid capture and attribution
- First-touch and last-touch attribution models
- Cross-device tracking via Shopify customer identity
How to set it up
- 1 Install Detectly from the Shopify App Store
- 2 Go to Integrations and click Connect Meta Ads
- 3 Authorize via OAuth and select your ad account
- 4 Enable Conversions API (CAPI) for server-side events
- 5 Detectly begins attributing orders within minutes
Why Meta Ads Attribution Breaks on Shopify
If you run Facebook or Instagram ads for your Shopify store, you have probably noticed the numbers do not line up. Meta says you made $10,000 from a campaign. Shopify says your total revenue for the day was $7,500 across all channels. Something is wrong, and you cannot figure out where to cut spend or scale.
The problem is that Meta uses modeled conversions and broad attribution windows (up to 7 days after a click, 1 day after a view). It counts sales that may have come from email, organic search, or direct visits. For Shopify merchants spending real money on ads, this gap between reported and actual performance makes budget decisions nearly impossible.
Detectly solves this by attributing every Shopify order to the exact Meta campaign, ad set, and ad that drove the click — using first-party data your store already collects.
How the Meta Ads Integration Works
When a shopper clicks your Facebook or Instagram ad, Meta appends a fbclid parameter to the URL. Detectly’s pixel captures this click ID along with all UTM parameters the moment the visitor lands on your store.
The data persists across sessions. If a customer clicks your ad on Monday, browses, leaves, and comes back on Wednesday to purchase, Detectly still attributes that order to the original Meta campaign. No guessing, no modeling — just deterministic, click-based attribution tied to real Shopify orders.
Ad Spend Import
Once you connect your Meta ad account via OAuth, Detectly automatically pulls your daily ad spend at the campaign, ad set, and ad level. This means you can see your true ROAS calculated from actual Shopify revenue divided by actual Meta spend — not the inflated numbers Meta reports.
You can view spend and ROAS in the Detectly dashboard, filter by date range, and compare performance across campaigns. This is the same data you would manually calculate in a spreadsheet, but it updates automatically every day.
Conversions API (CAPI) Events
iOS 14.5 and browser privacy changes have made pixel-based tracking unreliable. Detectly sends server-side purchase events back to Meta through the Conversions API, improving your event match quality and giving Meta’s algorithm better signal for optimization.
This is not a replacement for the Meta pixel — it works alongside it. Server-side events are more reliable because they bypass ad blockers and browser restrictions. Better data going back to Meta means better ad delivery and lower CPAs over time.
What You Can See in Detectly
With the Meta Ads integration connected, your Detectly dashboard shows:
- Campaign-level ROAS: Real return on ad spend for each campaign, calculated from Shopify order data
- Ad set performance: Which audiences and targeting combinations actually convert
- Individual ad attribution: Which creative drives the most revenue per dollar spent
- fbclid tracking: Every order linked to the specific click that drove it
- First-touch vs last-touch: Understand whether Meta introduced the customer or closed the sale
Every order in Detectly shows the full attribution trail. You can click into any order and see the exact UTM parameters, the fbclid, the campaign name, and the customer journey from first visit to purchase.
Common Questions
Does this replace the Meta pixel? No. Detectly complements your existing Meta pixel. The pixel handles retargeting audiences and standard events. Detectly adds server-side CAPI events and gives you accurate, order-level attribution data inside Shopify.
What about view-through conversions? Detectly focuses on click-based attribution because it is deterministic and verifiable. View-through conversions are modeled estimates. You will still see them in Meta Ads Manager, but Detectly shows you what actually drove a click and a purchase.
How quickly does data appear? Attribution starts immediately after installation. Ad spend data syncs daily. CAPI events are sent in real time as orders are placed.
Do I need UTM parameters on my Meta ads? Detectly captures fbclid automatically, but adding UTM parameters gives you richer data. Use our UTM Builder to generate tagged URLs for your campaigns in seconds.
Get Started
The Meta Ads integration is available on all Detectly plans, including the free tier. Connect your account in under two minutes and start seeing your true ROAS today.
Install Detectly free or view pricing to compare plans.
Related integrations
Email & SMS
Track revenue from Klaviyo, Omnisend, Mailchimp, and any email or SMS platform with UTM-based attribution on every Shopify order.
Google Ads
Track Google Ads performance on your Shopify store with gclid capture, keyword-level attribution, and true ROAS calculated from real order data.
Google Analytics
Understand how Detectly and Google Analytics GA4 work together to give you session-level insights plus order-level attribution on your Shopify store.
Try Detectly free today
Install in one click from the Shopify App Store. No code, no tracking pixels — see your true ROAS within 24 hours.