Skip to content

Profit ROAS & COGS

E-commerceRetail

Measure Shopify profit ROAS after COGS and returns

A 4.40x gross ROAS bestseller can lose money every week once COGS and 28% sizing returns hit. Reconcile true Shopify contribution profit automatically.

Free monthly allowances included. No credit card to start.

6 min read~20 min active setupUpdated
Folded merino sweaters, waxed canvas jackets, fabric swatches, and kraft boxes on an apparel packing bench
Pair Shopify unit_cost and refund webhooks with daily ad spend so every SKU shows net contribution profit, not vanity gross ROAS.

Interactive preview · Shopify Product Costs & Returns Ledger

Stop scaling your highest-ROAS SKU when returns make it lose money.

Compare gross ad-platform ROAS against Apex's true contribution profit after Shopify unit_cost, return refunds, and shipping. Drag the Travel Pant return rate to watch profit flip in real time.

Illustrative fixture · Pine & Harbor Apparel
28% returns (−$1,140/mo net profit)

Even though Stretch Travel Pant reports 4.40x gross ROAS ($22,000 gross on $5,000 ad spend), a 28% sizing return rate swings contribution profit to −$1,140/mo.

Before · Gross Revenue ROAS

3.85x gross

Gross Shopify sales

$69,300

On $18,000 ad spend

"Best" SKU by gross ROAS

4.40x

Stretch Travel Pant (hides 28% returns)

Merino Crewneck Sweater

$7,000 spend · $26,600 gross

3.80x

Waxed Canvas Field Jacket

$6,000 spend · $20,700 gross

3.45x

Stretch Travel Pant

$5,000 spend · $22,000 gross

4.40x

Gross ROAS ignores Shopify unit_cost, return shipping, and sizing refunds, tricking ad teams into scaling money-losing SKUs.

After · Apex Contribution Profit ROAS

1.60x profit ROAS

Net profit after ads

+$10,760

After $10,092 returns + COGS

Travel Pant net profit

−$1,140

Losing cash on every sale

Merino Crewneck Sweater

7% returns · COGS $7,180

+$7,900

Waxed Canvas Field Jacket

10% returns · COGS $6,620

+$4,000

Stretch Travel Pant

28% returns · COGS $7,740

−$1,140

Apex syncs Shopify catalog unit_cost and refund webhooks automatically so you scale Merino Crewneck instead of burning margin on returns.

Because refunds arrive 10 to 25 days after checkout, Apex updates every order's profit automatically when Shopify emits a refunds/create webhook, with no manual end-of-month spreadsheet reconciliation.
SKU-level margin honesty

Order profit reconciliation

Active · COGS & Returns Synced

Chloe Ramirez

chloe.ramirez@example.com

$64 profit

Order #PH-4428 ($168 gross)

  1. Shopify order profit calculatedNov 30, 2026, 3:18 PM

    $64.00

  2. Shopify unit cost matchedNov 30, 2026, 3:18 PM

The complete playbook

Step-by-step setup, worked math, and real limits.

Follow the steps below, check how this interacts with tools you already run, and inspect live Apex pricing before turning anything on.

How it works without Apex

Ad platforms optimize strictly for gross Shopify checkout value because browser pixels never see your product unit cost or refunds arriving three weeks later. Apparel and multi-SKU brands routinely scale their highest gross-ROAS product while losing money on every returned box.

How Apex does it for you

Apex syncs Shopify catalog unit_cost, live order webhooks, and refunds/create adjustments automatically against Meta Ads and Google Ads spend so every SKU and campaign reports true net contribution profit ROAS.

How to set this up in 4 steps

  1. Connect Shopify, Meta Ads, and Google Ads

    Authorize your Shopify store and ad accounts so orders, catalog costs, refunds, and daily ad spend flow into one ledger.

  2. Confirm unit_cost across your top SKUs

    Verify Cost Per Item in Shopify (or fill missing SKUs in Apex Product Costs) so margin math is exact.

  3. Let refund webhooks adjust order profit automatically

    Whenever a buyer returns a size or requests a partial refund, Apex updates that order's net contribution automatically.

  4. Shift ad budget off high-return loss leaders

    Compare Gross ROAS vs Profit ROAS per SKU and reallocate spend into high-margin winners.

Why gross ROAS tricks Shopify stores into scaling money-losing SKUs

Every ad platform optimizes for gross checkout revenue because that is the only number the browser pixel sees. On an apparel or multi-SKU Shopify store, gross ROAS hides two quiet margin killers: wide product cost differences across SKUs, and sizing returns that show up two weeks after delivery. Your ad account celebrates a 4.40x gross ROAS bestseller even while return shipping and refunds turn every order negative.

Apex connects directly to Shopify to pull per-SKU unit_cost from your product catalog, ingest real-time refunds/create webhooks, and match them against daily ad spend so every SKU shows its true Contribution Profit ROAS.

How SKU-level COGS and return reconciliation works

  1. Sync Shopify orders, catalog costs, and refunds automatically. Connect Shopify once so Apex pulls line-item revenue, standing inventory unit_cost, and live return/refund adjustments.

  2. Pull daily ad spend from Meta Ads and Google Ads. Connect Meta Ads and Google Ads so Apex pairs acquisition spend with every attributed order cohort.

  3. Update profit automatically as refunds arrive. When a buyer returns an item 18 days after purchase, Shopify's refund webhook deducts the refunded cash and updates that SKU's net contribution profit without any manual spreadsheet edit.

  4. Reallocate spend toward high-margin winners. Shift budget off high-return SKUs until sizing guidance improves, and scale the high-margin SKUs that actually add cash to the bank.

Worked Shopify profit ROAS math (illustrative)

In the Pine & Harbor Apparel example above, the store spends $18,000/mo across three hero SKUs generating $69,300 gross sales (3.85x gross ROAS):

  • Gross margin before ads: $69,300 gross minus $10,092 returns, $21,540 COGS, and $8,908 shipping & payment fees = $28,760 (1.60x profit ROAS).

  • Net contribution profit after ads: +$10,760/mo overall, masking a stark SKU split.

  • Hidden margin leak: Stretch Travel Pant looks best at 4.40x gross ROAS, yet its 28% sizing return rate drives -$1,140/mo net loss, while Merino Crewneck delivers +$7,900/mo net contribution profit.

Pricing & profit ledger cost

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for $18,000/mo Meta + Google spend ($69,300 gross Shopify sales)

$0 / month

Fully inside Apex's free monthly allowances (resets every calendar month).

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
~36,000 monthly events (storefront clicks, add-to-cart, Shopify orders, unit_cost sync & refund webhooks)
36,000 / mo1M / month$5 per 100K events$0
Attribution
420 paid-channel Shopify orders reconciled against Meta & Google spend
420 / mo1.5K / month$0.05 per attributed conversion$0

Shopify unit_cost sync, refund webhooks, Meta Ads & Google Ads spend sync, and unlimited seats carry no extra Apex fee. Individual event history stays queryable for 13 months without a card, 3 years with a card on file, and 7 years once you've paid an invoice. See the live pricing page.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
Meta Ads & Google Ads media spend$18,000 / mo illustrativePaid directly to Meta and Google.

Limits and when Apex is the wrong tool

  • Requires populating unit cost in Shopify or Apex. If your Shopify catalog leaves Cost Per Item blank across every SKU, Apex falls back to gross-minus-refund revenue until you fill in unit costs via Shopify or Apex's Product Costs screen.

  • Tracks contribution margin, not full corporate P&L overhead. Apex deducts ad spend, product COGS, refunds, and order fees; warehouse rent, payroll, and software overhead stay in your accounting ledger.

  • When Apex is the wrong tool: If you sell a single digital product with zero physical COGS and near-zero refunds, standard collected cash ROAS is already identical to contribution profit.

For your ecommerce lead or AI editor

Audit Shopify unit costs and SKU profit ROAS via Apex MCP.

Use Apex MCP to inspect missing product costs, upload standing COGS, and pull net SKU returns and margin in seconds.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Paste this prompt into your AI editor (scroll to read full prompt)

Inspect my Apex workspace Shopify catalog before changing anything. Propose a plan to: (1) list any Shopify SKUs missing unit_cost using list_product_costs, (2) pull SKU-level returns via get_ecommerce_returns, and (3) rank our top ad-supported products by true contribution profit ROAS.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

pine-harbor-shopify · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Scale the SKUs that actually put profit in your bank.

Sync Shopify unit_cost and return webhooks automatically so ad spend chases contribution margin instead of gross revenue.