On this page
What this issue is
view_item is the GA4 ecommerce event that says a visitor looked at one product. It is meant to fire when a product detail page loads and carry an items array with the product's item_id, item_name, price and similar fields.
It goes missing for a few common reasons: the theme or plugin never sends it, the dataLayer push happens after the tag has already run, the GTM trigger listens for the wrong event name, or a consent setting blocks the tag. Product pages that load content with JavaScript can also miss it.
Why it costs you leads or sales
Without view_item, GA4 cannot show which products people look at, and the ecommerce funnel (view item, add to cart, begin checkout, purchase) starts with a gap. You cannot tell if a product has a traffic problem or a conversion problem.
It also affects ads. Audiences such as 'viewed a product but did not buy' and dynamic remarketing feeds depend on this event. If it is missing, those audiences stay small or empty and you lose cheap retargeting.
- Ad or search clickVisitor lands on site
- Product page loadsPage is visible to the visitor
- view_itemNo push or no trigger
- Item reportsViews and funnel empty
- Remarketing audienceProduct viewers not built
The product page loads, but no view_item is sent, so the item-level funnel is blind from the first step.
How to check if your site has it
Open a product page with GA4 DebugView
In GA4 go to Admin > DebugView. Use Google Tag Assistant or the GA debug extension, then load a product page. Look for a view_item event in the stream.
Or use GTM PreviewGoogle Tag Manager
In Google Tag Manager click Preview, enter the product URL, and look for a view_item entry in the left event list. Open it and check the Data Layer tab for an ecommerce object with items.
Check the dataLayer in the browser
Open DevTools, go to the Console and type dataLayer. Look for an object with event: 'view_item'. If it is not there, your site is not pushing it.
Check the network request
In DevTools > Network, filter by 'collect'. A GA4 hit for a product view has en=view_item in the request. No such hit means the tag did not send it.
Test a few product types
Try a simple product, a variable product and one reached from a collection or search page. Some themes fire the event only on one template.
| What you see | Likely cause |
|---|---|
| No view_item in dataLayer | Site or plugin never pushes it |
| view_item in dataLayer, not in GA4 | GTM trigger or tag missing, or consent blocking |
| view_item sent with empty items | Push runs before product data is ready |
| Fires only on some products | Template-specific code or lazy-loaded content |
How to fix it
The fix depends on whether the data is pushed and the tag is missing, or the push itself is missing. Use the tab that matches your platform. After any change, test with GTM Preview before you publish.
Create a Custom Event trigger
Go to Triggers > New > Custom Event. Set Event name to view_item exactly (it is case sensitive). Leave it as 'All Custom Events' unless you need to restrict it.
Create or edit the GA4 Event tag
Add a GA4 Event tag with your Measurement ID, event name view_item, and under More Settings > Ecommerce tick 'Send Ecommerce data' with the source set to Data Layer.
Attach the trigger and test
Attach the Custom Event trigger, open Preview, load a product page and confirm the tag fires once.
Check the native Google & YouTube app
In Shopify admin go to Sales channels > Google & YouTube and confirm your GA4 property is connected. The app sends product view events for you.
Avoid double setups
If you also paste a GA4 tag into theme.liquid or Customer events, make sure only one method sends view_item, or you will get duplicates.
Use Customer events for custom tags
Under Settings > Customer events, a custom pixel can subscribe to product_viewed and send view_item to GA4 with the product's id, title and price.
Check your GA4 plugin
On WooCommerce, plugins such as Google Site Kit or a dedicated GA4 ecommerce plugin can send view_item. Open its ecommerce settings and make sure product views are enabled.
Clear caching
Purge page cache and any JavaScript minify or delay settings, which can stop the push from running on product pages.
Or push it from the template
If you manage tracking yourself, output the dataLayer push in the single product template, using the code sample below.
Add a push on CMS product pages
In Project settings > Custom code, or in the page's custom code for a product template, add a dataLayer push using CMS field embeds for the id, name and price.
Add the GTM trigger
Create the view_item Custom Event trigger and GA4 tag in GTM as described in the Google Tag Manager tab.
Use the Google Analytics integration
In Marketing & SEO > Marketing Integrations, connect Google Analytics with your GA4 Measurement ID. Wix Stores sends standard ecommerce events when connected this way.
Check for a second tag
If you also added a custom GA4 snippet in Settings > Custom code, remove one of the two to avoid duplicates or conflicts.
Connect GA4 in Settings
Squarespace's built-in Google Analytics connection may not send every GA4 ecommerce event. If view_item is missing, add your own push via Code Injection and send it with GTM.
Use product page code injection
Add the dataLayer push on the product page's Advanced > Page Header Code Injection, or in the site footer with a check for product URLs.
Push the event on product page load
Clear the previous ecommerce object, then push view_item with an items array once the product data is available. Use the sample below.
Place it before or with the GTM load
GTM can read pushes made after it loads, so order is not critical, but the push must run on every product template and for every product.
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ ecommerce: null }); // clear previous ecommerce data
window.dataLayer.push({
event: 'view_item',
ecommerce: {
currency: 'USD',
value: 49.00,
items: [{
item_id: 'SKU-1234',
item_name: 'Trail Running Shoes',
item_category: 'Shoes',
price: 49.00,
quantity: 1
}]
}
});
</script>Before
- Product pages load with no view_item
- Item views report is empty
- Funnel starts at add_to_cart
- Viewed-product audience stays at zero
After
- One view_item per product page load
- items array with id, name and price
- Full view > cart > checkout > purchase funnel
- Remarketing audience fills with product viewers
How to confirm it's fixed
- GTM Preview shows view_item once when a product page loads
- The GA4 tag fires on that event and its status is 'Succeeded'
- DebugView shows view_item with item_id, item_name and a numeric price
- The event does not fire twice on one page load
- It works on simple, variable and collection-linked products
- After 24-48 hours, Reports > Monetization > Ecommerce purchases shows item views
How to prevent it happening again
Product tracking tends to break when a theme is updated, a plugin is swapped, a template is edited or a cookie banner is reconfigured. None of these changes look like tracking changes, so nobody checks.
- Test a product page in GTM Preview after every theme, plugin or consent banner change
- Keep one owner for ecommerce tracking so two setups do not overlap
- Document which tool sends view_item: platform app, plugin or GTM
- Use a GTM workspace and version names so you can roll back
- Schedule an automated check of a product page rather than relying on memory
Day 0
Theme update replaces the product template and drops the dataLayer push.
Day 1
Sales continue as normal, so nothing looks wrong.
Week 3
Someone notices item views are zero in GA4 and the retargeting audience has stopped growing.
Week 3
Push restored and confirmed in Preview. Tracking resumes, but three weeks of data are gone.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor opens your product page on a schedule, from the EU or the US, and checks whether a GA4 view_item hit is sent to Google Analytics. If it is missing, the failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause.
The test visit is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent) so you can filter it out of reports. The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial. A free read-only website audit is also available.
Questions people ask
Why is my GA4 view_item event not firing on product pages?
Usually the site is not pushing a view_item event to the dataLayer, or your GA4 tag has no trigger listening for it. Other causes are a consent banner blocking the tag, a cached or delayed script, and the push running before the product data exists. Use GTM Preview or GA4 DebugView to see which step fails.
How do I test if view_item is working in GA4?
Open GA4 Admin > DebugView, load a product page with Tag Assistant or the debug extension on, and look for a view_item event. In GTM Preview you can also check that the event appears and your GA4 tag fires. In DevTools Network, filter by 'collect' and look for en=view_item.
What parameters does the GA4 view_item event need?
It should include an items array with at least item_id or item_name, plus price and quantity. Adding currency and value at the event level is recommended so GA4 can report item value. Send price and value as numbers, not text.
Why does view_item fire twice on my product page?
Two setups are probably sending it, for example a platform app plus a manual GTM tag, or a theme script and a plugin. It can also happen if the push re-runs on page re-render. Keep one source and make the trigger fire once per page load.
Does a missing view_item affect my sales?
It does not stop anyone buying. It hides which products get attention, leaves a gap at the top of your ecommerce funnel, and weakens audiences for retargeting people who viewed but did not purchase. The loss is in decisions and ad efficiency.
Does the GTM trigger need to match the event name exactly?
Yes. A Custom Event trigger matches the dataLayer event name exactly and is case sensitive, so view_item will not match View_Item or viewItem. Copy the name from your dataLayer push into the trigger.
Can a cookie banner stop view_item from being recorded?
Yes. If analytics consent is denied, GA4 tags may be blocked or send limited data, depending on your consent setup. Check that the banner and Consent Mode settings let GA4 fire once the visitor has agreed.
How can I be alerted if view_item stops firing?
FunnelGuard checks your product page on a schedule and looks for the GA4 view_item hit. If it is missing, it re-checks from a second region and sends one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty.
Related issues
- TRK-083items array missing from ecommerce eventsFix guide
- TRK-084items missing item_id or item_nameFix guide
- TRK-085item price sent as string or with currency symbolFix guide
- TRK-088add_to_cart missing or fires on page loadFix guide
- TRK-089begin_checkout missingFix guide
- TRK-091ecommerce object not cleared in dataLayer (items leak into next event)Fix guide