Built for Shopify & WooCommerce · Tracking checked every 30 minutes.

How to fix "Cart data needs attention" in Google Ads

Abir Molla
Abir MollaNov 20, 2026 · 9 min read
How to fix "Cart data needs attention" in Google AdsVideo · 4:48 · plays from YouTube

"Cart data needs attention" in Google Ads usually means the product IDs sent with your purchases don't match the product IDs in your Google Merchant Center feed. The fix is to send an items array whose IDs are exactly the same as Merchant Center's, in both your Google Ads purchase tag and your GA4 purchase tag. You can build that array inside Google Tag Manager, without editing your site's code, and the warning clears within 24 to 48 hours.

The video above shows the fix on a Shopify store, plus a real client account where only half of it had been done. This post is the written version: the same steps, the two other causes of the warning (missing cart data and cost of goods sold), and how to check your work.

What "Needs attention" on cart data means

Conversions with cart data is the Google Ads feature that reads the products inside each purchase: their IDs, prices and quantities. Google matches those IDs to your Merchant Center feed, so it can report which products sold from which ad, and estimate profit if you give it your costs.

Google checks three things (Google Ads Help, conversions with cart data diagnostics):

  • Cart data is sent. Every purchase carries cart data.
  • Cart data is complete. Every product has an item ID, the price it sold at and the quantity.
  • Cart data matches your feed. Each item ID matches an item ID in Merchant Center.

Each purchase conversion action gets a status: Excellent, Good, Needs attention or Urgent. Needs attention means the action is recording conversions, but something in the cart data is wrong. You find it under Goals → Diagnostics. That card only shows up if you send cart data.

This is a different warning from the one on enhanced conversions. If your conversion action says enhanced conversions need attention, see how to fix "Needs attention" on Google Ads enhanced conversions instead.

The three causes, and the alert for each

Open Goals → Diagnostics and read the exact alert. Google names each problem (Google Ads Help, fix errors in conversions with cart data):

  • "Many (or some) recent conversions have sold item IDs that can't be matched to Merchant Center." The IDs are wrong, or the products sit in a Merchant Center account that isn't linked to Google Ads. This is the one the video fixes, and the most common.
  • "Many recent conversions don't have cart data", "had empty carts" or "have cart data with formatting issues". The items array is missing, empty, or has no ID, price or quantity.
  • "Cost of goods sold isn't available for all products sold in recent conversions." Merchant Center has no cost for some of the products that sold.

From the item ID alert, you can download the list of IDs Google couldn't match. Do that first. It tells you exactly what your site is sending.

What you need

  • Google Ads linked to the right Merchant Center account. The one that holds the products you sell. Google can only match IDs against a linked account.
  • A data layer that pushes a purchase event with an items array. Shopify, WooCommerce and most tracking apps do this. Each item should have a product ID, and ideally a variant ID.
  • A Google Ads purchase conversion tag and a GA4 purchase event tag in Google Tag Manager, both firing on that purchase event.

Step 1: see why the IDs don't match

Put two things side by side: the item ID in your data layer, and the product ID in Merchant Center.

For the data layer, open GTM Preview, place a test order and click the purchase event. In the Data Layer tab, look at ecommerce.items and the item_id of each product. For Merchant Center, open Products and look at the ID column.

On the store in the video, the data layer sent a plain product ID. Merchant Center used a longer ID built by Shopify's Google & YouTube app: shopify_US_, then the product ID, an underscore, and the variant ID. Google can't match those two, so every sale gets flagged.

Your format may be different. The country part can change with your market, and stores with a feed app often use the SKU. Copy whatever your Merchant Center actually shows.

Don't change the IDs in Merchant Center to fit your site. Google warns that this overwrites the product and its history (Google Ads Help). Change what your tags send instead.

Step 2: build a Merchant Center items variable in GTM

You don't need a developer for this. In GTM, go to Variables → New and choose Custom JavaScript. This variable reads your data layer's items and returns a copy where each ID is in the Merchant Center format.

In the video I use my own converter code, linked in the video description. The idea is simple enough to write yourself. Here's a short version for the Shopify format above:

function () {
  var items = {{DLV - ecommerce.items}} || [];
  return items.map(function (item) {
    var copy = {};
    for (var key in item) { copy[key] = item[key]; }
    var merchantId = 'shopify_US_' + item.product_id + '_' + item.variant_id;
    copy.id = merchantId;
    copy.item_id = merchantId;
    return copy;
  });
}

{{DLV - ecommerce.items}} is a Data Layer Variable that points at ecommerce.items. The field names product_id and variant_id are examples. Use the names your data layer has for the product ID and the variant ID, and the prefix your Merchant Center uses.

The code sets both id and item_id. Google Ads reads items.id when the conversion comes from the Google Ads tag, and items.item_id when it's imported from GA4 (Google Ads Help, set up conversions with cart data). Sending both covers either case. Price and quantity are copied as they are.

Save the variable, then check it in Preview. On the purchase event, the Variables tab should show your items with the new IDs, and they should match Merchant Center character for character.

Step 3: add it to the Google Ads purchase tag

Open your Google Ads Conversion Tracking tag for the purchase. Tick Provide product-level sales data, choose Custom Fields as the data source, and put your new variable in Items. In the video, I add it as the items parameter of the tag. It's the same thing.

The same section has optional fields for Merchant Center ID, Feed country and Feed language. You only need them if the same product sits in more than one Merchant Center account or feed, and you have to tell Google which one to use.

Step 4: send the same items to GA4

This is the step many people miss. Open your GA4 purchase event tag, find the items parameter, and set its value to the same Custom JavaScript variable.

It matters because many accounts also count purchases through a conversion imported from GA4. That conversion takes its cart data from GA4, not from the Google Ads tag. If only one tag sends the matching IDs, the other conversion action keeps its warning.

One side effect: GA4's product reports will now show the Merchant Center IDs. For most stores that's fine, and it makes GA4 and Google Ads easier to compare.

Step 5: fix missing or empty cart data

If your alert says conversions have no cart data or empty carts, the items aren't reaching the tag. Google says every purchase must send an items array with an ID, price and quantity for each product (Google Ads Help, set up conversions with cart data).

The usual cause is the trigger. If the conversion tag fires on a page view of the thank-you page, it can fire before the purchase data is in the data layer, and the items variable comes back empty. Use a Custom Event trigger with the event name your data layer uses for the purchase, usually purchase.

Also check these in Preview:

  • Price is the price of one unit, as a plain number such as 12.50. Not the line total.
  • Quantity is a whole number, such as 1.
  • Discount, if you send it, is a positive number. Google ignores negative numbers, percentages and coupon codes (Google Ads Help).

Step 6: add cost of goods sold

The cost of goods sold alert isn't fixed in GTM. Google reads it from your product feed, in the Merchant Center attribute cost_of_goods_sold. The value is a number with a currency code, for example 10.01 USD, and it should be in the same currency as your prices (Merchant Center Help, cost of goods sold).

It doesn't have to be exact. Google says a rough estimate is fine, or an average if the cost changes. You can add it through your feed app or a supplemental data source in Merchant Center. Download the flagged products from the alert so you know which ones are missing it.

This one only affects profit reporting. If you don't need profit in Google Ads, the rest of your cart data still works without it. It's required if you use automated discounts.

Step 7: publish and wait

Submit and publish the GTM container. Nothing changes on your live site until you do.

Place a test order and check both tags in Preview: the Google Ads tag and the GA4 tag should both show the new IDs. Then leave it. Google says to allow 24 to 48 hours for the changes to sync and the alert to clear (Google Ads Help, conversions with cart data diagnostics).

Case study: one conversion fixed, one still flagged

The end of the video shows a US client's account from the week I recorded it. They had two purchase conversion actions. One was a GA4 purchase imported from Google Analytics. The other was a website purchase from the Google Ads tag in GTM.

The GA4 one showed Active, because the matching items array had already been added to the GA4 tag. The Google Ads tag one still said Needs attention. The client had added the new variable to their GA4 tag only. We attached it to the Google Ads tag as well, so both actions send IDs that match Merchant Center.

If you have two purchase conversions, fix both tags. That's the whole lesson.

Common mistakes

Changing the IDs in Merchant Center instead of the tag. It resets the product's history. Change what GTM sends.

Fixing one tag and not the other. As in the case study, a conversion imported from GA4 and one from the Google Ads tag each need the matching IDs.

Using the product ID when Merchant Center uses the variant. On Shopify, Merchant Center usually lists each variant as its own product. A shirt in three sizes is three IDs.

The wrong Merchant Center account is linked. If your products sit in a different account from the one linked to Google Ads, no ID will match. Link the right one.

Products missing from the feed. If something sells on your site but isn't in Merchant Center, its ID can't match. Google suggests adding every product, and using excluded_destination to keep it out of Shopping ads if you need to (Google Ads Help).

Checking too soon. The status takes up to 48 hours to update. Changing things again after a few hours only makes it harder to see what worked.

Questions people ask

Does "Cart data needs attention" stop my conversions from counting?

No. Google still records the purchases. What you lose is the product-level reporting, and Google's view of which products and profit came from each ad.

Is this the same as the enhanced conversions warning?

No. That one is about customer data, such as email and phone. This one is about the products in the cart. A conversion action can show either, or both.

I use Shopify's Google & YouTube app. Why are the IDs wrong?

The app creates the Merchant Center IDs. If you also track purchases through GTM or another app, that data layer may use a different ID, such as the plain product ID or the SKU. Google suggests contacting Shopify if the app's own IDs still don't match.

Does this work on WooCommerce?

Yes. The steps are the same. Only the ID format changes. Check what your feed plugin uses as the Merchant Center ID, often the product ID or SKU, and build that in the variable.

How long until the warning goes away?

Usually within 24 to 48 hours of the fix going live, once new purchases come in with matching IDs.

Where KiteTrack fits

KiteTrack sends each purchase to Google Ads, GA4, Meta and TikTok from your own tracking server, on your store's subdomain, so ad blockers and browser limits don't cost you sales. The items and customer details go with every purchase, and customer data is hashed before it's sent. KiteTrack also checks your tracking every 30 minutes, so a warning like this becomes an alert, not something you find weeks later. See how it works for Shopify and for WooCommerce.

Not sure what your Google Ads tracking is sending? Start with the free Tracking Check. It looks at your site in about two minutes, no signup. If you'd rather talk it through, book a call with me.

Sources

Get tracking tips by email

Short, practical fixes for Meta, Google Ads and GA4, from Abir.

You’re in. First tip lands soon.

Abir Molla
Written by Abir Molla

Tracking specialist. He builds and runs KiteTrack, and explains tracking on YouTube.

Keep reading

Let your ads see every sale.

30-day money-back guarantee · free migration · cancel any time