Shopify revenue attribution for Meta ads
Clicks are what an ad platform can see. Orders are what your store knows. Revenue joins the two: install one script, connect Shopify's order webhook, and every paid order arrives signed from your store, matched to the visit and the campaign that produced it.
The ledger behind the campaign
Every order, and the visit that produced it.
Revenue
Shopify connectedRevenue
$24,180
Orders
186
From ads
71%
AOV
$130.00
Transactions
Last 7 daysIllustrative preview with sample data. Verified orders are Shopify's own signed statement about money it processed; an order that never passed your storefront carries no visitor id and is credited to no campaign.
Setup
Two changes in Shopify, then it runs on its own
- 01
Install the script once
Add the tracker to theme.liquid before the closing head tag. It measures storefront visits and writes the visitor id into the cart — no extra code, and the attribute stays hidden from your customers at checkout.
- 02
Point Shopify's webhook at Revenue
Create an Order payment webhook in Shopify Settings using the URL shown in Revenue settings, then paste the signing secret back. Add a Refund create webhook to the same URL if you want refunds subtracted.
- 03
Watch the orders land
Shopify copies the cart attribute onto the order, so each sale arrives credited to the visit and the campaign that produced it. Retries of the same order never count twice.
Shopify's checkout will not run this script, or any other — checkout.liquid closed in August 2025 and Additional Scripts stopped running on the thank-you and order-status pages in August 2026. That is why orders come from the webhook rather than a page. Data starts only after the script is installed and the required analytics consent is granted.
The AdRiseLab workflow
From account data to your next campaign
- 01
Understand performance
Review spend, delivery and response in your connected Meta account.
- 02
Decide what to do next
Ask the AI agent to investigate a change and explain the evidence behind a proposed action.
- 03
Build the next creative
Turn a product input and test hypothesis into visual and copy concepts.
- 04
Publish to Meta
Review the campaign settings and confirm launch, then follow the results in reporting.
- 05
Measure the revenue
Connect your store and credit each order back to the visit and the campaign that produced it.
Verified, not browser-reported
Shopify orders are the store's own signed statement about money it processed. Website-reported orders from the tracker's purchase call are labelled unverified, so you always know where a number came from.
The visit behind the sale
Every order carries the journey that produced it — the source, the campaign, the pages in between. Attribution stops being a platform claim and becomes a record on your own side.
Meta comparison on the same screen
Your website ledger sits above Meta's own reported conversions. It is a separate measurement, shown side by side rather than merged, so a gap between the two is visible instead of averaged away.
One currency, one timezone
Currencies are never added or silently converted. Choose the same currency and timezone as your Meta ad account when you register the site and both sides of the comparison stay readable.
Honest about what it cannot credit
A point-of-sale sale, a draft order or some subscription apps never pass the storefront, so they carry no visitor id. They count as revenue and are credited to no campaign, rather than inflating one.
Works beyond Shopify
Any platform that lets you run code after a successful order can report one with the tracker's purchase call, and a payment backend can send a signed server event instead of trusting the browser.
Close the loop on orders, not clicks
Connect your store and your Meta account, and judge each campaign against the revenue your own store confirmed.
Get StartedPlans from $39/mo · Cancel any time · Review settings before confirming launch
Frequently Asked Questions
How do I connect Shopify orders to my Meta ads?
Do I need to add tracking code to the Shopify checkout?
What is the difference between verified and unverified revenue?
Why does revenue not match what Meta Ads Manager reports?
Can I use revenue analytics without Shopify?
Which orders cannot be credited to a campaign?
Does revenue tracking need cookie consent?
Explore Other Modules
Continue through the AdRiseLab workflow without returning to the home page.
Creative Generation
Turn URLs into AI-generated ad creatives
AI Ad Copy
Claude-powered ad copywriting
Campaign Builder
3-step Meta campaign creation
Account Analytics
Connected Meta account performance
Performance Reports
Campaign results and creative-health review
Competitor Intelligence
AI-powered Ad Library analysis
AI Video Ads
UGC avatars and cinematic product videos
AdFlow UGC
AI creator-style UGC ads, no creators
AI Media Buyer
Investigate results and review next actions
See It Applied to Your Setup
How teams like yours run Meta ads, and what it costs to start.