For growth marketers and agency analysts
Every platform says it won.
Your orders decide who did.
Spend from the ad platforms, revenue from your own transactions, and a straight answer on whether more budget in a channel would actually buy more of it.
Which channel should next month's budget go into?
- ·Platform-reported conversions total 1,840. Your order table has 1,312. The channels are claiming the same orders, so revenue is taken from your rows and spend from theirs.
- ·Email carries no spend line, which would make its return infinite. Ranked on contribution instead, with the reason shown next to it rather than hidden.
- ·Spend is in the platform's currency. Converted at the rate on the spend date, not today's, which over a quarter is worth more than most of the report.
WITH rev AS ( -- revenue from YOUR orders
SELECT channel, order_date,
SUM(revenue) AS revenue, COUNT(*) AS orders
FROM orders
WHERE channel IS NOT NULL
GROUP BY 1, 2
), spd AS ( -- spend, converted on the spend date
SELECT channel, spend_date, SUM(spend * fx_rate) AS spend
FROM ad_spend
GROUP BY 1, 2
)
SELECT r.channel,
SUM(r.revenue) AS revenue,
SUM(s.spend) AS spend,
ROUND(SUM(r.revenue) / NULLIF(SUM(s.spend), 0), 2) AS roas,
ROUND(SUM(s.spend) / NULLIF(SUM(r.orders), 0), 0) AS cpa
FROM rev r
LEFT JOIN spd s
ON s.channel = r.channel
AND s.spend_date = r.order_date
GROUP BY r.channel
ORDER BY roas DESC NULLS LAST;Email returns most per rupee but is saturated: spend and conversions correlate at r = 0.11. Google Ads runs at 2.8x with r = 0.74.
Channel totals recomputed from the raw order and spend tables without the join; both agree
Put the money into Google Ads, not Email. Email's return is high because it is almost free, not because more of it would produce more, and the correlation is the part that tells you which.
What this answer cannot tell you: Whether the channels help each other. This ranks them one at a time. A channel that looks weak alone can be what makes another one convert, and separating that needs a holdout test, not a query.
What the monthly review finds out too late.
×Meta claims one number, GA4 another, and neither ties to the bank
✓Revenue taken from your orders, spend from the platforms, and the gap between them stated
×Wasted spend surfaces at the monthly review, after the budget is gone
✓A campaign whose CPA breaks its own pattern is flagged the week it happens
×The channel report is a pivot-table afternoon before every standup
✓Ranked channels, the chart, and the query, pinned to recompute on fresh data
Six things it does that a platform dashboard will not
Mostly because they make the platform look worse.
Return per channel, computed from your revenue
Spend comes from the platform because only the platform knows it. Revenue comes from your orders, because the platform's guess at it is the thing you are trying to check.
Saturation, not just ranking
Correlation between spend and conversions per channel. A high return with a weak correlation means the channel is cheap, not scalable, and moving budget there buys nothing.
The double-counting, quantified
Platform conversions summed against your real order count, with the overlap reported as a figure rather than quietly divided away.
CPA drift per campaign and creative
Trended against its own history, so a fatiguing creative is caught in week two. A flat threshold would either scream every Monday or catch nothing.
Currency handled on the spend date
Converted at the rate on the day the money left, not today's rate. Over a quarter of volatile currency that difference is larger than most of the optimisations in the report.
The channels with no spend line, kept honest
Email, organic and referral have no cost row, so their ROAS is infinite and meaningless. Ranked on contribution instead, with that reason printed beside them.
Reads Meta Ads, Google Ads, GA4, Shopify, Stripe, HubSpot, Google Sheets and any platform export. What each one pulls.
Drop last quarter's export.
The demo runs on a sample campaign set, so you can read the ranking and the saturation test before uploading your own.