Tracking

Google Ads profit reporting: COGS and cart data

How Google Ads reports gross profit per product: conversions with cart data plus cost of goods sold in Merchant Center, the setup, and the errors to fix.

·8 min read·By the ROASaurus team

Key takeaways
  • 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 ACampaign B: Product B
Price per unit$80$50
Cost of goods per unit$56$15
Units sold from the campaign100100
Revenue$8,000$5,000
Ad spend$2,000$2,000
ROAS shown by Google Ads4.02.5
Gross profit (revenue − COGS)$2,400$3,500
Gross profit after ad spend$400$1,500
Example store, one month. The campaign with the higher ROAS earns less than a third of the other's profit.

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.
Gross profit per item=(price − cost_of_goods_sold) × quantity
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.

COGS for a period=starting inventory + purchases − ending inventory

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

  1. Link Google Ads and Merchant Center

    Make sure the Merchant Center account that holds your Shopify products is linked to the Google Ads account.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

A purchase with cart data (example values, parameters from Google's documentation)
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.

AlertWhat it meansFix
Cart data reporting stoppedRecent purchases no longer carry cart parametersCheck the tag still sends items, for example after a checkout or app change
Many or some recent conversions don't have cart dataPart of your purchases arrive without itemsTest orders through every checkout flow and payment method
Recent conversions had empty cartsThe items array is sent but holds no item ID, price or quantityThe cart is read too early or from the wrong place; fix the data source
Cart data with formatting issuesParameters are present but malformedCheck types: price as a number, quantity as an integer
Sold item IDs can't be matched to Merchant CenterIDs in conversions differ from the feed, or the products sit in an unlinked accountDownload the flagged IDs, compare with the feed, align the format
COGS isn't available for all products soldSome sold items have no cost in the feedAdd cost_of_goods_sold to those products
Cart data alerts from Google's troubleshooting page and what to do about each.

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.

The ROASaurus Mac app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
Profit › Products in the public demo: per product the revenue, refunds, COGS, shipping and fees, net profit, ad spend, profit after ads and POAS. In ROASaurus: Profit › Products. Public demo with a fictional store and simulated data.

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

  1. Google Ads Help: About conversions with cart data
  2. Google Ads Help: Conversions with cart data parameters
  3. Google Ads Help: Set up and test reporting with conversions with cart data
  4. Google Ads Help: Fix discrepancies and errors in conversions with cart data setup
  5. Merchant Center Help: Cost of goods sold [cost_of_goods_sold]

In ROASaurus

Keep reading

MarketingBFCM tracking checklist: can you trust your ad results?A Black Friday tracking checklist: test a real purchase, find duplicate conversions, choose which orders count, check consent and judge ads on profit.AdvertisingHow to spread ad spend across Meta, TikTok and GoogleOptimise Shopify ad spend across Meta, TikTok and Google Ads: clean tracking per platform, budgets moved on marginal return, seven steps to more sales.ProfitProduct profit in Google Ads: revenue, COGS and net profitGoogle Ads shows cost and ROAS per product, not what each product earns after COGS, shipping, fees and refunds. Here is how to see net profit per product.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How does Google Ads calculate profit with cart data and COGS?

For each item in a purchase with cart data, Google subtracts the cost_of_goods_sold from your Merchant Center feed from the item's revenue. It adds these up into gross profit and gross profit margin per campaign, ad group and product.

Why do I need both cart data and COGS?

Cart data says which items were sold but not what they cost. COGS in the feed says what items cost but not which were sold. Profit appears only when both are present and the item IDs match.

Does adding COGS in Merchant Center show profit in Google Ads?

No. The cost stays in the feed until purchases arrive with cart data and matching item IDs.

What happens if some products have no COGS?

Google leaves them out of the cost and margin calculations, and the cart data diagnostics show a COGS alert for them.

Why can't Google match my item IDs to Merchant Center?

The ID format in your purchase tag differs from the id attribute in the feed, for example a variant ID against a shopify_US_product_variant ID, or the products sit in a Merchant Center account not linked to Google Ads.

Does missing COGS affect Smart Bidding?

Not directly: purchases are still counted and bidding still runs on your conversion values. You lose the gross profit reporting, not the conversions.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.