← All resources Guide

Cart data and profit in Google Ads conversions

A normal purchase conversion tells Google Ads one thing: an order of 120 euros came in. Conversions with cart data add what was in that order. With the items attached, Google Ads can report which products your ads sold, how big the carts were and, once it knows your cost prices, how much gross profit a campaign brought in. At the end of this article you know what to send, how to test it, which reports you get and what the step from profit reporting to profit bidding looks like.

Part of the Google Ads measurement series. It follows tracking phone calls and lead forms and builds on conversion value, which covers the order total itself.

What cart data adds to a conversion

Conversions with cart data is an extension of the purchase conversion you already have, not a new conversion action. The same tag sends the same order, plus a list of items with an ID, a price and a quantity each. Google matches those IDs to the products in your Merchant Center feed, and that match is what turns a list of codes into product reports.

Google names three benefits: revenue and profit measured per campaign, reporting on items sold, cart size and average order value, and for Shopping ads a detailed view of cross-selling, meaning the products people bought after clicking an ad for a different one.

What you need before you start

The Merchant Center feed does not have to feed a running Shopping or Performance Max campaign. Google uses it to recognise the products that were sold, also after a click on a Search ad.

The parameters

Google's reference lists these for a purchase sent straight to Google Ads:

ParameterNeededWhat it holds
itemsRequiredOne entry per product in the order
items.idRequiredThe product's ID as it is in Merchant Center
items.priceRequiredThe price of one unit, without tax, shipping and order-level discounts
items.quantityRequiredHow many units were sold
discountOptionalA discount on the whole order
aw_merchant_idOptionalYour Merchant Center ID. Send it when a product sits in more than one Merchant Center account
aw_feed_countryOptionalThe country of the feed, as a CLDR territory code such as NL
aw_feed_languageOptionalThe language of the feed, as an ISO 639-1 code such as NL

In code, Google's example looks like this, here with placeholder IDs:

gtag('event', 'purchase', {
  'send_to': 'AW-123456789/AbCdEfGhIjKlMnOp',
  'transaction_id': '10482',
  'value': 53.50,
  'currency': 'EUR',
  'discount': 1.50,
  'aw_merchant_id': 98765,
  'aw_feed_country': 'NL',
  'aw_feed_language': 'NL',
  'items': [
    { 'id': 'P12345', 'quantity': 2, 'price': 12.50 },
    { 'id': 'P67890', 'quantity': 1, 'price': 30.00 }
  ]
});

The three Merchant Center parameters are optional, but Google says they improve data quality, most of all when you have several feeds or accounts. Note the price rule: one unit, net of tax and shipping. The order total in value follows its own rules: see the article on conversion value.

Sending it from Tag Manager or from GA4

With a Google Ads conversion tag in Tag Manager, the item list comes from your data layer. Open the purchase conversion tag, switch on its option for product-level sales data and point it at the data layer or at your own variables. The tag keeps the fields it already had: conversion ID, label, value, currency and transaction ID. If your shop already pushes a GA4 purchase with an items array, most of the work is done; what is left is making sure the IDs in it are the feed's IDs.

With purchases imported from GA4, the names shift a little. Google reads item_id from the GA4 items, and the feed is named with aw_feed_label where the Ads tag uses the feed country. The order-level discount is not supported on this route. The imported purchase has to be a primary action in Google Ads. GA4 e-commerce tracking covers the purchase event itself.

Test it

Google's own test uses the browser. Open the developer tools, go to the Network tab and keep it open through a test order. On the confirmation page, filter on /conversion for a Google Ads tag, or on collect for GA4. Click the request and look for these in its query string:

One good test order does not prove every order is right. Google advises watching the conversion action's diagnostics for seven days afterwards. Item IDs that do not match the feed show up there, and they are the thing to fix first: an unmatched item is missing from every product report.

The reports you get

The new figures appear as columns in the Conversions group, on the Campaigns, Ad groups and Products pages. The main ones:

Three ready-made reports sit under Campaigns › Insights and reports › Report editor, in the template gallery: cart items advertised, cart items sold and cart items cross-sold. The second one is the quickest way to see what a campaign really sells.

Two things to keep in mind while reading them. The same metric gives a different number depending on whether you look at advertised products or sold products. And with purchases imported from GA4, Google warns that the figures can differ from what Analytics shows, because the two calculate differently.

Cost of goods sold and gross profit

Gross profit needs one more input: what each product costs you. That goes into the Merchant Center feed as the cost_of_goods_sold attribute, a number with a currency, such as 29.00 EUR, with a period as the decimal sign. You can add it in the main feed, in a supplemental feed or through the API. Google then calculates profit per product as revenue minus cost of goods sold.

Google does not ask for precision here. Its Merchant Center page asks for a rough estimate, an average when the cost varies, and the same currency as the prices in your conversions. If you have no cost prices at hand, Google's own suggestion is to start with an approximation, for example 80% of the product price, so the profit columns fill at all. Without the attribute, cost of goods sold and gross profit stay empty or wrong.

Know what this number leaves out. It is gross profit on the products: no shipping costs, no payment fees, no returns, and no ad spend.

From profit reporting to bidding on profit

The gross profit columns are reports. Google's cart data pages describe measurement, not a bidding target, and Smart Bidding keeps optimising for the conversion value your purchase action sends. That value is what you define: Google's bidding guidance says the value to maximise can be sales revenue or profit margins, and lists target ROAS as the strategy for a goal of more profit.

So there are two ways to let profit steer your bidding. The first is to use the reports: find the campaigns and products with a high revenue and a thin margin, and set their ROAS targets or their place in your campaign structure accordingly. The second is to send profit as the conversion value, so every order arrives with what it earned. If you do that, remember that profit is a smaller number than revenue. A ROAS target that fitted revenue is far too high for profit, so lower it in step with your margin, or start with a separate secondary action and compare the two for a few weeks before you switch.

Measurebase has a power-up for the second way. Profit Tracking looks up the cost price of every item on your tagging server, takes off order costs such as shipping and payment fees, and adds the result to the purchase as mb_profit, which your Google Ads tag can send as its value. Your cost prices stay on the server.

When you run this through a server container

The Merchant Center side does not change: the feed, the item IDs and the cost prices are the same wherever the tag runs. What changes is where the purchase tag reads its data. Google's server-side setup guide says the server tag takes the transaction ID, the value and the currency from the event. It does not describe the cart data parameters, so after moving the purchase tag to your server container, check the action's diagnostics and the cart reports before you rely on them. Google Ads conversion tracking through your server container covers the rest of that move.

Frequently asked questions

Do I need Shopping campaigns to use conversions with cart data?

No. You need a Merchant Center account linked to Google Ads, because Google uses its feed to recognise the products that were sold. The feed does not have to be running Shopping or Performance Max ads, and sold products are also reported for clicks on Search ads.

Why are my products missing from the cart data reports?

Nearly always because the item ID your site sends is not the same as the id attribute in the Merchant Center feed, for example a variant ID against a SKU. Check the conversion action's diagnostics for unmatched items and make the two IDs the same.

Should the item price include VAT?

No. Google asks for the price of one unit without tax, shipping and order-level discounts. A discount on the whole order goes in the separate discount parameter.

Does Google Ads bid on gross profit when I add cost of goods sold?

Not by itself. The cost of goods sold attribute fills the gross profit reports. Smart Bidding optimises for the conversion value your purchase action sends, so to bid on profit you send profit as that value.

Can I use cart data with purchases imported from GA4?

Yes. Google reads the item_id of each GA4 item, and the imported purchase has to be a primary action. The order-level discount parameter is not supported on this route, and the feed is named with aw_feed_label.

Continue reading

Ready to improve your tracking setup?

Start free, no credit card required. Live in about 15 minutes.

Start free