Quick answer: how do you set up profit-based optimisation with an AI Meta ads tool on Shopify?
Connect Shopify to your AI Meta ads tool and work out a profit value for each order. That value is revenue minus tax, product cost, shipping, fees and returns or RTO. Send it to Meta through the Conversions API, deduplicated by order ID. Then run value optimisation with a break-even target of 1.0 on profit, not your old revenue ROAS.
Meta optimises for the value you send, and Shopify sends revenue
Meta's value bidding chases whatever purchase value reaches it. On a default Shopify setup that number is order revenue, so Meta learns to find big orders, not profitable ones.
Example: one ₹6,000 order of a low-margin bundle earns you ₹900. Two ₹2,000 orders of a high-margin serum earn ₹1,200 each. Revenue bidding rates the bundle buyer higher (₹6,000 vs ₹4,000), even though the serum buyers bring ₹2,400 of profit against ₹900.
Third-party guides such as Profit-Bid report that Meta has no native POAS column (profit on ad spend, which is profit divided by ad spend), so in practice you have to build it. An AI Meta ads tool does that job: it sits between Shopify and Meta, works out profit for each order and writes it back. This article covers that setup only. For choosing the tool itself, see our complete guide to AI Meta ads tools for ₹10 lakh+ accounts.
Step 1: Fix the Shopify-to-Meta tracking before changing any value
A profit value is useless if purchases fire twice, or not at all. Run these checks before your tool sends a single profit number.
- Turn on the Conversions API (CAPI). CAPI is Meta's server-to-server connection. In Shopify's Facebook & Instagram app, Standard data sharing uses only the browser pixel. Enhanced and Maximum add CAPI and also send customer details. Older guides call the lowest level "Conservative" and say only Maximum uses CAPI. Check the current wording in Shopify Help.
- Remove extra pixels. Delete pixel code hard-coded in the theme, old Google Tag Manager tags and leftover app pixels.
- Deduplicate. The browser eventID must match the server event_id, and the event names must match. Use the Shopify order ID.
- Check Event Match Quality in Events Manager, and confirm that server events are arriving for Purchase.
- Test custom COD forms. If a COD app replaces Shopify checkout, Purchase events can stop firing correctly. Place a test order and confirm that exactly one Purchase arrives.
- See what value arrives today. Guides disagree on whether Shopify sends the subtotal or the full total with tax and shipping. Open Test Events and read the actual number.
Our Meta Pixel and Conversions API setup guide for Shopify walks through each screen.
Step 2: Define the profit number your tool will send
Send gross profit per order: revenue without tax, minus product cost, shipping, payment fees and discounts. Our rule of thumb is to leave out fixed costs such as salaries and rent, and never subtract ad spend. Meta compares the value against spend on its own.
Tax treatment changes by market
| Market | How prices show | What to remove from the value |
|---|---|---|
| India | GST included | GST portion |
| UK, EU, Gulf | VAT included | VAT portion |
| Australia | GST included | GST portion |
| US, Canada | Sales tax added at checkout | Check whether tax is in the value; remove it if so |
Two more checks. First, if you run several stores, keep the currency field correct for each one so Meta never mixes currencies. Second, sync product cost at SKU level from Shopify's cost-per-item field. Catalog and Advantage+ Sales ads mix products, so one blended margin will mislead them.
Turning a Shopify order into a profit value
Here is the calculation your tool should run on every order.
Worked example: a skincare brand spending ₹30 lakh a month in India
Step 1: Strip GST out of the order value
Example: the order total is ₹2,360 including 18% GST. ₹2,360 ÷ 1.18 = ₹2,000 of net revenue.
Step 2: Subtract per-order costs
Product cost is ₹600, shipping ₹120 and the payment gateway fee about ₹50.
Profit value sent to Meta
₹2,000 - ₹600 - ₹120 - ₹50 = ₹1,230 per orderStep 3: Translate your old target
If this brand saw a revenue ROAS of 2.5 (₹2,360 for every ₹944 of spend), the same orders now read as ₹1,230 ÷ ₹944 = 1.3 on profit. That leaves ₹286 of profit after every ₹944 of spend, 30% above break-even, not a weak result. Our break-even ROAS guide covers the revenue-side version of this maths.
Step 3: Pick one of three ways to send profit to Meta
There are three routes. They differ in how much learning you reset and in what your reporting columns mean afterwards.
| Option | How it works | Main trade-off |
|---|---|---|
| A: Meta's Profit margin value | Profit sent via CAPI; campaign set to Maximize value, Purchase goal, Profit margin as value | A test feature, so not every account has it |
| B: Profit replaces Purchase value | The tool overwrites the revenue value with profit | The ROAS column now shows POAS, and old history is not comparable |
| C: Separate profit or Delivered event | A new event carries profit; revenue Purchase stays for reporting | New event means new learning, and eligibility varies by account |
Option A comes from Stape's write-up of Meta's profit-margin test. If Stape's report is right, older guides that say Meta has no profit option at all are out of date. We could not confirm the feature or these settings on a Meta page. Under Option B, make sure the browser and server send the same value. If they differ, you cannot be sure which one Meta keeps after deduplication.
1. If you see Profit margin in campaign setup, test it in one campaign. 2. If more than about a third of your orders are COD, use Option C with a Delivered event. 3. Otherwise, use Option B and keep revenue reporting in Shopify.
Older guides also tell you to reset your value set for iOS 14.5+ measurement. Coverage of Meta's 2023 Aggregated Event Measurement changes says value sets are no longer needed for value optimisation. Only rebuild the ranges around your profit figures if Events Manager still shows this setting for your account.
Step 4: In COD markets, optimise on delivered profit
In COD (cash on delivery) markets, the checkout Purchase event pays Meta for orders that never arrive. RTO (return to origin) means the buyer refuses the parcel and it ships back to you. One source estimates that 50-70% of Indian orders are COD and that 25-60% of COD orders can end in RTO. One agency guide puts COD at roughly 60-75% of Shopify orders in Bangladesh, and Gulf stores report a similar pattern.
Example: the brand above gets 100 COD orders and 30 come back. Meta sees 100 × ₹1,230 = ₹1,23,000 of profit. The real figure is 70 × ₹1,230 = ₹86,100, minus about ₹240 of two-way shipping on each of the 30 returns. That leaves ₹78,900, about 36% less than Meta believes.
- Send a Delivered event with the profit value through CAPI, triggered by the courier or Shopify's fulfilment status. Send an RTO event too. Some Indian platforms already send both.
- Confirm before dispatch. One 2026 guide puts a WhatsApp COD confirmation at about ₹0.12 per message in India at Meta's utility rate (check Meta's current WhatsApp pricing). Either way it is far cheaper than one RTO.
- Track the RTO rate. One COD app guide suggests a well-run COD store in India or the Middle East should aim for below 12-15%.
Delivery can take several days after the click. Before you move optimisation to Delivered, check how many Delivered events Meta actually attributes. If too few match, keep Purchase for bidding and use delivered profit for budget decisions.
In prepaid markets such as the UK, US, Canada and Australia, RTO is rare. Subtract refunds and returns instead, at least in your reporting.
Step 5: Set bids at break-even on profit, not on old revenue targets
Use a sales campaign with Maximize value of conversions, optimising for Purchase or your profit event. Start on Highest value with no target. Once the account is spending steadily, add a target at 1.0, which is break-even when the value is profit.
Depending on your account and Help Center version, Meta calls this target ROAS goal or minimum ROAS. Both act as a limit on delivery: set the target too high and Meta spends less. Never copy a revenue target such as 3.0 onto a profit value.
Volume matters. One third-party reading of Meta's guidance suggests about 30 attributed purchases with at least 5 distinct values in 7-14 days. Others say 30-50 a week per ad set. These are guidance, not Meta policy, so merge thin ad sets.
Migrating a large account without breaking it
- Calculate profit values in your tool for 2 weeks before sending them to Meta.
- Duplicate one strong campaign and switch only the copy to profit values.
- Run the copy on Highest value while the original keeps spending.
- After 14 days, compare delivered profit per ₹1 of spend, not the reported ROAS.
- Move budget across in steps of 20-30%.
Expect the copy to go through a fresh learning phase. Our guide on exiting the learning phase faster explains how to shorten it.
What most guides get wrong about profit optimisation
Most guides judge profit with attribution rules that no longer exist. Industry reports citing Meta's October 2025 developer announcement say that on 12 January 2026 Meta removed the 7-day view and 28-day view windows. The 7-day click window remains. Several industry reports say that in March 2026 Meta also narrowed click-through to link clicks only and moved shares, saves and likes into a new engage-through category. We could not confirm this on a Meta page.
If those reports are right, your profit values now count only inside 7-day click or 1-day view. One report says some advertisers had 30-40% of their conversions in the window that disappeared. A lower reported POAS after January may be a counting change, not a real drop in results.
- "Meta has no profit option." This may be out of date. Stape reports that Meta is testing one with limited access, though Meta has not confirmed it publicly.
- "50 conversions a week is a Meta rule." Meta's pages only say you must meet the eligibility rules for value optimisation.
- "Use Google Tag Manager for the pixel." For most stores, the native app with CAPI on is simpler. Server-side tagging still suits advanced setups.
- "Trust the dashboard." Check every week against Shopify and your bank deposits. Read MER (marketing efficiency ratio: total revenue ÷ total ad spend) alongside POAS.
Checklist: what your AI tool must do for profit optimisation
Many tools show profit on a dashboard but never send it back to Meta. Ask for proof of each item below before you connect your store.
- Writes profit back to Meta through CAPI, deduplicated by order ID.
- Syncs product cost at SKU level and updates values when costs change.
- Removes GST, VAT or sales tax correctly for each market.
- Handles refunds, RTO and Delivered events for COD orders.
- Works alongside Shopify's native app without firing Purchase twice.
- Supports multiple currencies and stores.
- Shows Meta-reported profit next to Shopify and bank totals.
ScaleWin, for example, judges ads on break-even ROAS after product cost, shipping, GST and returns or RTO, rather than on platform ROAS. Whichever tool you test, use our 10 questions to ask before buying an AI ad tool.
Read next in this series
Key takeaways
- Meta bids on whatever purchase value you send. Shopify sends revenue by default, so Meta learns to chase big orders, not profitable ones.
- Fix the base first: one pixel, Conversions API on, event_id matched to the order ID, and good Event Match Quality.
- Strip GST or VAT out of the value, subtract product cost, shipping and fees, and in COD markets optimise on delivered orders, not placed orders.
- Once the value is profit, a ROAS target of 1.0 is break-even. Start on Highest value, then add a target.
- Industry reports say that since 12 January 2026 the widest standard window is 7-day click or 1-day view. Check it against Shopify and your bank every week.
Ai meta ads tool: frequently asked questions
Can Meta optimise for profit instead of revenue?
Should I replace the purchase value with profit or create a custom event?
What minimum ROAS should I set when optimising for profit?
Is Maximum data sharing on Shopify enough for Conversions API?
How do I stop Meta optimising for COD orders that get returned (RTO)?
Why did my Meta ROAS drop in January 2026?
Will switching to profit values reset the learning phase?
Sources
- Stape: Meta's Profit-Based Campaign Optimization
- Meta Business Help Center: About minimum ROAS
- Meta Business Help Center: About ROAS goal
- Meta Business Help Center: Value sets for iOS 14.5+
- Two Owls: Meta attribution window changes
- SmartBiz: Reducing RTO using Meta events
Let ScaleWin read your ad data every day
ScaleWin checks your Meta and Google Ads daily, judges every ad on profit and tells you exactly what to change.
Start free, no card



