Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 items array missing from ecommerce events: how to fix it

TRK-083High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

GA4 ecommerce events carry a list of products in a parameter called items. Each entry in the list is one product, with fields such as item_id, item_name, price and quantity. The events that depend on it include view_item, view_item_list, select_item, add_to_cart, remove_from_cart, begin_checkout, add_payment_info and purchase.

Why it costs you leads or sales

Product data lost per funnel stepExample numbers
Product data lost per funnel step (example)view_item (before): 0 % of events with items; add_to_cart (before): 0 % of events with items; purchase (before): 0 % of events with items; purchase (after fix): 100 % of events with items03877000100view_item (before)add_to_cart (before)purchase (before)purchase (after fix)% of events with items

Example: share of ecommerce events that carry an items array before and after a fix. Numbers are illustrative.

Where the product data disappears
  1. Product pageview_item fires
  2. Add to cartevent sent, items missing
  3. Checkoutno product detail
  4. Purchaseitem reports empty

The funnel still runs, but the event reaches GA4 without products.

How to check if your site has it

Check your events for a missing items array
  1. Open GA4 DebugView

    In GA4 go to Admin > DebugView. Turn on debug mode with Google Tag Assistant or the GA debugger extension, then browse your own site.

  2. Run the funnel

    View a product, add it to the cart, start checkout and, if you can use a test order, place one.

  3. Open each ecommerce event

    Click the event in DebugView and look for the items parameter. It should list your product with item_id, item_name, price and quantity.

  4. Inspect the dataLayer

    In your browser console type dataLayer and look at the ecommerce pushes. Check that ecommerce.items is a non-empty array.

  5. Check the item reports

    In GA4 go to Reports > Monetisation > Ecommerce purchases. If purchases exist but item names are empty or "(not set)", items are missing.

Quick console check for the latest ecommerce pushjavascript
var pushes = window.dataLayer.filter(function (e) { return e.ecommerce; });
var last = pushes[pushes.length - 1];
console.log(last && last.ecommerce && last.ecommerce.items);
// Expect an array with at least one product, not undefined or []

How to fix it

Correct add_to_cart push with itemsjavascript
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null }); // clear the previous object
dataLayer.push({
  event: 'add_to_cart',
  ecommerce: {
    currency: 'USD',
    value: 29.99,
    items: [{
      item_id: 'SKU_123',
      item_name: 'Blue t-shirt',
      price: 29.99,
      quantity: 1
    }]
  }
});
Fix it on your platform
  1. Check your GA4 plugin settings

    If you use WooCommerce with a GA4 or tag plugin, open its ecommerce settings and make sure enhanced ecommerce or the dataLayer output is switched on for product, cart and checkout events.

  2. Test for conflicts

    If two plugins send GA4 events, one may send events without items. Turn one off, then retest in DebugView.

  3. Update the plugin and theme

    Custom theme templates can drop product data. Update, or ask the developer to restore the plugin's dataLayer hooks.

How to confirm it's fixed

Confirmation checklist
  • DebugView shows an items parameter on view_item, add_to_cart, begin_checkout and purchase.
  • Each item has item_id or item_name, a numeric price and a quantity.
  • The items match the product you actually used in the test.
  • The dataLayer shows ecommerce: null before each new ecommerce push.
  • After 24 to 48 hours, Reports > Monetisation shows item names rather than empty values.
What changes in GA4

Items missing

  • Events arrive with only value and currency
  • Item reports empty or "(not set)"
  • No product-level view of the funnel

Items present

  • Each event lists the product
  • Item revenue and items purchased fill in
  • Product-level funnel analysis works

How to prevent it happening again

Prevention habits
  • Retest the full ecommerce funnel in DebugView after theme, plugin or app updates.
  • Use one shared function or one GTM data layer variable set for all ecommerce events.
  • Keep a written list of required fields for each event and review it when you add new ones.
  • Avoid running two GA4 ecommerce setups at once, such as a plugin and a GTM tag.
  • Run automated checks on the funnel so a change that drops items is caught quickly.

How FunnelGuard handles this

Questions people ask

Why is my GA4 purchase event missing items?

The most common reasons are that the dataLayer push does not include ecommerce.items, the GTM tag reads an empty variable, or custom code only sends value and currency. Check the push in the browser console and in GA4 DebugView, then add the items array to the event.

What does the items array do in GA4?

The items array lists the products in an ecommerce event, with fields such as item_id, item_name, price and quantity. GA4 uses it to fill product reports like item revenue and items purchased.

How do I check if GA4 is receiving the items parameter?

Open Admin > DebugView, run through your funnel with debug mode on, and click each ecommerce event. The items parameter should appear with your product listed. You can also type dataLayer in the browser console to inspect the push.

Will GA4 still count revenue if items are missing?

Event-level revenue can still be recorded when a purchase has value and currency. But product-level reports will be empty, so you cannot see which products earned the revenue.

Why are my GA4 item names showing as (not set)?

It usually means the events arrived without an items array, or the items lacked item_name. Fix the push so each product has an item_name and item_id, then retest in DebugView.

Can an empty items array cause problems?

Yes. items: [] gives GA4 no product data, so it behaves much like a missing array. It often points to a variable that was read before the product data loaded.

Does FunnelGuard detect a missing items array?

Yes. It checks the GA4 hits during a scheduled run of your real journey and flags ecommerce hits that arrive without the items parameter. A failure is re-checked from a second region before you get one alert.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: params rules.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.