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
Example: share of ecommerce events that carry an items array before and after a fix. Numbers are illustrative.
- Product pageview_item fires
- Add to cartevent sent, items missing
- Checkoutno product detail
- Purchaseitem reports empty
The funnel still runs, but the event reaches GA4 without products.
How to check if your site has it
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.
Run the funnel
View a product, add it to the cart, start checkout and, if you can use a test order, place one.
Open each ecommerce event
Click the event in DebugView and look for the
itemsparameter. It should list your product with item_id, item_name, price and quantity.Inspect the dataLayer
In your browser console type
dataLayerand look at the ecommerce pushes. Check thatecommerce.itemsis a non-empty array.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.
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
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
}]
}
});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.
Test for conflicts
If two plugins send GA4 events, one may send events without items. Turn one off, then retest in DebugView.
Update the plugin and theme
Custom theme templates can drop product data. Update, or ask the developer to restore the plugin's dataLayer hooks.
Use the Google & YouTube app or Customer events
In Shopify admin go to Settings > Customer events and check which pixels are active. Duplicate or custom pixels may send events without items.
Review custom pixel code
If you wrote a custom pixel, build the items array from the event data, for example from
event.data.checkout.lineItems, and include it in each gtag call.
Open the GA4 event tag
In the GA4 event tag, under Ecommerce, tick Send Ecommerce data and set the source to Data Layer.
Check the trigger
Make sure the Custom Event trigger name matches the dataLayer event exactly, such as
add_to_cart.Test in Preview mode
Open the event in Tag Assistant, go to the Data Layer tab and confirm
ecommerce.itemsis filled before the tag fires. If the tag fires first, adjust the trigger or tag sequencing.
Check the Ecommerce tracking setup
Webflow has no built-in GA4 items output for every event, so most sites use custom code or GTM. Check that your script builds items from the product data on the page.
Add the items to custom code
In Project settings > Custom code, or page-level code, make sure each gtag or dataLayer call includes an items array.
Check the Google Analytics connection
In Wix go to Marketing & SEO > Marketing integrations and review the GA4 connection. Reconnect it if ecommerce events look incomplete.
Review custom events
If you added events through Custom code or Velo, add the items array to each one.
Check the GA4 connection
Squarespace sends its own ecommerce data to Google Analytics when connected. Review Settings > Marketing > Google Analytics, or the Developer Platform settings if you use them.
Fix custom code
If you added tracking in Code Injection, make sure those events include items built from the product on the page.
Find the event calls
Search your code for
gtag('event'anddataLayer.pushcalls tied to ecommerce events.Add items to each call
Build the array from your product or cart data on the server or in the browser. Include at least item_id or item_name, plus price and quantity.
Use the same helper everywhere
One shared function that builds items reduces the chance that a single event is missed.
How to confirm it's fixed
- DebugView shows an
itemsparameter 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: nullbefore each new ecommerce push. - After 24 to 48 hours, Reports > Monetisation shows item names rather than empty values.
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
- 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.
Related issues
- TRK-084items missing item_id or item_nameFix guide
- TRK-085item price sent as string or with currency symbolFix guide
- TRK-086quantity missing or 0Fix guide
- TRK-091ecommerce object not cleared in dataLayer (items leak into next event)Fix guide
- TRK-092Old UA enhanced ecommerce schema pushed instead of GA4 schemaFix guide
- TRK-095Currency on items differs from event currencyFix guide