- Google Ads can report gross profit per campaign and product, but only when each purchase lists its items and your Merchant Center feed holds a cost for each item.
- Conversions with cart data send the items, prices and quantities of each order; the cost_of_goods_sold attribute in Merchant Center supplies the cost.
- Item IDs in the conversion must match the IDs in the feed exactly, or Google cannot pair a sale with its cost.
- Entering COGS in Merchant Center alone changes nothing in Google Ads reports: the costs only apply to purchases that carry cart data.
- Google's gross profit subtracts product costs only; shipping, payment fees and ad spend still have to come off elsewhere.
Google Ads reports profit, not just revenue, when two pieces of data meet. The purchase conversion has to say which items were bought, at what price and in what quantity: that is conversions with cart data. And your Merchant Center feed has to say what each of those items cost you: the cost_of_goods_sold attribute. Google matches the two by item ID and calculates revenue minus cost of goods sold for every item, which gives gross profit per campaign, ad group and product.
This guide explains why revenue-only reporting misleads, what cart data adds, why it still needs COGS, how to set both up on Shopify, how to fix the cart data errors Google shows, and what ROASaurus does with the same data.
Why revenue-only reporting misleads you in Google Ads
ROAS tells you how much revenue each dollar of ad spend brought in. It says nothing about what the products cost. Two campaigns with the same ad spend can have opposite results once costs are in. Take an example store with two products:
| Campaign A: Product A | Campaign B: Product B | |
|---|---|---|
| Price per unit | $80 | $50 |
| Cost of goods per unit | $56 | $15 |
| Units sold from the campaign | 100 | 100 |
| Revenue | $8,000 | $5,000 |
| Ad spend | $2,000 | $2,000 |
| ROAS shown by Google Ads | 4.0 | 2.5 |
| Gross profit (revenue − COGS) | $2,400 | $3,500 |
| Gross profit after ad spend | $400 | $1,500 |
On revenue, Campaign A looks better and gets more budget. On profit, Campaign B is the one to scale. The difference comes from margins: 30% on Product A, 70% on Product B. A single ROAS target for the whole account hides that. See Google Ads product profit and break-even ROAS for how margin sets the target.
What conversions with cart data solve
A standard purchase conversion carries an order value. With cart data, it also carries the list of items in the order. Google Ads then shows:
- What was actually sold after each ad click, not only the advertised product.
- Lead and cross-sell sales for Shopping ads: the advertised item versus other items in the same cart.
- Cart metrics such as the number of orders, items per order, average cart size and average order value per campaign, device or location.
- Revenue and gross profit per campaign and product, once costs are known.
Google builds these reports from biddable purchase conversions, and only for items from a Merchant Center account linked to your Google Ads account.
Why cart data alone cannot show profit
Cart data sends each item's ID, price and quantity. It has no field for cost. Google takes the cost from your Merchant Center feed, from the cost_of_goods_sold attribute of the product with the same ID. That has two consequences:
- No COGS, no profit. Without the attribute, Google shows revenue and cart metrics but leaves cost of goods sold and gross profit empty. Margin calculations include only products that have a COGS value.
- IDs must match exactly. If the conversion sends a variant ID and the feed uses
shopify_US_8123456789_44123456789, Google cannot pair them, and Google Ads lists the unmatched IDs in its diagnostics.
- price
- From the cart data in the conversion: the item's sale price without tax, shipping and order-level discounts.
- cost_of_goods_sold
- From the Merchant Center feed, for the item with the same ID.
An example order with 2 × Product B at $50 and a cost of $15: (50 − 15) × 2 = $70 gross profit, credited to the campaign that got the conversion.
What COGS is on Shopify
Cost of goods sold is the direct cost of the products you sold: the purchase price from your supplier or the cost to make them, plus inbound freight and duties if you include them in the landed cost. It does not include marketing, salaries, rent, software or the shipping you pay to send orders to customers.
For one order, it is simply the sum of each sold item's cost per item × quantity.
Shopify stores a Cost per item field on each product variant. You can fill it by hand, import it with a product CSV, or sync it from an inventory or accounting tool. Keep it current when supplier prices change: Google says COGS in the feed is for reporting and does not need to be exact, and recommends an average if a product's cost varies, but an outdated cost still gives you the wrong profit. Our guide to contribution margin shows where COGS sits among the other costs.
The Merchant Center misconception
Many merchants add cost_of_goods_sold to their Merchant Center feed and expect profit in Google Ads. It does not appear. Merchant Center stores the cost with the product; Google Ads applies it only to purchases that carry cart data with matching item IDs. Without cart data on the conversion, the cost stays in the feed and your reports stay on revenue.
In the feed, the value is a number with an ISO 4217 currency code, such as 10.01 USD, with a full stop as the decimal mark. Google recommends using the same currency for COGS as for the prices in your conversions, so currency conversion does not distort the result.
How to set up profit reporting with cart data
- Link Google Ads and Merchant Center
Make sure the Merchant Center account that holds your Shopify products is linked to the Google Ads account.
- Add COGS to the feed
Fill cost_of_goods_sold for every product, from Shopify's cost per item, with a feed app or a supplemental feed.
- Send cart data with each purchase
Add the items array to the purchase event, with the same item IDs as the feed, the price and the quantity. Add the feed parameters if you use more than one Merchant Center account or feed.
- Check the item ID format
Compare an ID from a test conversion with the id attribute of the same product in Merchant Center. They must be identical.
- Test an order
Place an order and confirm in the network request that the items are present and not empty. Then check the cart data diagnostics in Google Ads after a day.
gtag('event', 'purchase', {
send_to: 'AW-123456789/AbCdEfGhIjK',
transaction_id: '1042',
value: 95.00,
currency: 'USD',
discount: 5.00,
aw_merchant_id: 98765,
aw_feed_country: 'US',
aw_feed_language: 'EN',
items: [
{ id: 'shopify_US_8123456789_44123456789', price: 50.00, quantity: 2 }
]
});The items array with id, price and quantity is required. aw_merchant_id tells Google which Merchant Center account to read the cost from when an item is in more than one. aw_feed_country and aw_feed_language name the feed, and discount is the order-level discount.
Resolving cart data errors in Google Ads
Google shows cart data problems in a diagnostics card under Goals, with red issues for critical errors, yellow for errors to look at and blue for improvements.
| Alert | What it means | Fix |
|---|---|---|
| Cart data reporting stopped | Recent purchases no longer carry cart parameters | Check the tag still sends items, for example after a checkout or app change |
| Many or some recent conversions don't have cart data | Part of your purchases arrive without items | Test orders through every checkout flow and payment method |
| Recent conversions had empty carts | The items array is sent but holds no item ID, price or quantity | The cart is read too early or from the wrong place; fix the data source |
| Cart data with formatting issues | Parameters are present but malformed | Check types: price as a number, quantity as an integer |
| Sold item IDs can't be matched to Merchant Center | IDs in conversions differ from the feed, or the products sit in an unlinked account | Download the flagged IDs, compare with the feed, align the format |
| COGS isn't available for all products sold | Some sold items have no cost in the feed | Add cost_of_goods_sold to those products |
None of these alerts stops your purchases from being counted. They matter anyway: an ID mismatch breaks product-level reporting for Shopping and Performance Max, missing COGS leaves you judging campaigns on revenue, and empty carts mean the product insight you set up is not there. Run the tracking audit and the BFCM tracking checklist before peak season.
What Google's gross profit leaves out
How ROASaurus handles cart data and product profit
The Google Ads purchase that ROASaurus fires from Shopify's checkout carries an items list: each item's ID in the Merchant Center format by default (shopify_, the country code, the product id and the variant id, or your own Item ID template), its price and its quantity, with the order id as transaction ID. Enter your Merchant Center ID for conversions with cart data on the Google Ads destination and the purchase also carries aw_merchant_id, aw_feed_country and aw_feed_language (the feed country and language you set, else the checkout's) and the order discount, so Google can attach your Merchant Center costs to every purchase. You manage the Google Ads destination under Connections › Tracking & destinations; each delivery is listed under Data quality › Deliveries. The help article on cart data has the steps.

ROASaurus does not wait for Google's columns to show product profit. It takes COGS from Shopify's cost per item, adds shipping, payment fees, handling and refunds, and shows net profit, profit after ads and POAS per product under Profit › Products and per campaign under Marketing › Channels & campaigns › Profit per campaign. For bidding, ROASaurus can report margin instead of revenue to Google Ads: the checkout tag sends the order total times the store's average margin, the server upload follows the same value mode, and a conversion adjustment can restate each order's real margin afterwards. The Google Ads integration page lists the settings; the POAS calculator works it out on your own numbers.
Sources
- Google Ads Help: About conversions with cart data
- Google Ads Help: Conversions with cart data parameters
- Google Ads Help: Set up and test reporting with conversions with cart data
- Google Ads Help: Fix discrepancies and errors in conversions with cart data setup
- Merchant Center Help: Cost of goods sold [cost_of_goods_sold]