Measuring the product page in GA4: view_item and add_to_cart
Contents
The product page is measured with view_item when someone opens it and with add_to_cart when they add the product to the cart; remove_from_cart and add_to_wishlist complete the picture. The relationship between views and additions shows how many pages make someone want to buy.
This article is part of the GA4 ecommerce guide. It is written for those who decide what to measure; the technical detail appears under "For the technical team". CookingMetrics offers audits and support and does not sell tools. The Google pages consulted on November 16, 2026 show no update date.
In summary
- The product page (PDP, for product detail page) is where the purchase is decided.
view_itemmeasures the view;add_to_cart, the addition;remove_from_cart, the removal;add_to_wishlist, saving to favorites.- For the first three, Google's table marks
currencyandvaluewith a note (currencyis required ifvalueis sent), anditemsis required. - According to Google,
view_itemvalues do not add to revenue. - The useful questions are answered with your own counts and without external benchmarks.
- A view in a pop-up window (modal) and a full-page view are not the same thing; it is worth telling them apart.
What problem it solves
Many stores know how much they sell, but not how many product pages are viewed without anyone adding the product to the cart. That gap is the first place to look: it may be due to price, stock, information or a technical fault. Measuring the product page lets you see the problem by product and not only in the total.
What data each event carries
According to the official GA4 reference:
view_item,add_to_cart,remove_from_cartandadd_to_wishlistcarryitemsandcurrency;valueis the usual choice andcurrencyis required ifvalueis sent.- Each product needs an
item_idor anitem_name; Google recommends both.priceis the discounted unit price; the discount goes indiscount;quantityis 1 if it is not sent. - When more than one unit is added to the cart,
quantitymust reflect it andvaluemust be consistent with price times quantity. This is a reasonable consequence of how Google describes the amounts, not a literal sentence from the pages consulted.
Questions you can answer
These questions are answered with your own counts in GA4; there is no "normal" value to compare against:
- What proportion of product page views ends in an addition to the cart, by product and by category?
- Are there products with many views and almost no additions?
- Does that proportion change by device or by the origin of the visit?
- Which products are saved to favorites but not purchased?
These ratios are a clue, not a verdict: an expensive product may naturally have few additions. It is better to compare the same product over time than different products against each other.
Product pages in pop-up windows
Many stores show the product page in a pop-up window (quick view) as well as on the full page. In his original guide, Martín Garay proposes a custom parameter, view_type, to tell them apart. It is a custom parameter, not a Google one; for it to appear in reports it has to be registered as a custom dimension in GA4, a step we do not cover here.
For the technical team: example of add_to_cart in the data layer.
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: "add_to_cart",
ecommerce: {
currency: "USD",
value: 80.0,
items: [{ item_id: "SKU-001", item_name: "Taza de cerámica", price: 40.0, quantity: 2 }]
}
});
- Send
view_itemonce per product page view, without repeating it on every page refresh. - With
view_item, keep in mind that Google states its values do not add to revenue. - If the same button adds products from several pages, the event must be the same on all of them.
- On a product page with variants (size, color),
item_variantidentifies the chosen variant.
Limits and risks
- A view is not reading.
view_itemrecords that the product page loaded, not that someone read it. - No benchmarks. There is no "good" percentage of additions.
- Official pages without a date. It is worth rereading them before implementing.
view_typeis custom. Using it is a judgment call.- Consent: what can be measured depends on the visitor's consent.
What to do next
Pick ten product pages, go through them in the store and check that each one sends view_item with the right data. To continue the path, read Measuring the checkout process. To also improve the content and structure of the page itself, see the guide on how to improve an ecommerce product page. If you would like us to review your measurement, learn about our Google Analytics audit service.
Frequently asked questions
What is the difference between view_item and add_to_cart?
The first records that the product page was opened; the second, that the product was added to the cart. The relationship between the two shows how many pages lead to an addition.
Does view_item add to revenue?
No. Google states that the values of this event do not add to revenue.
How do I tell a pop-up product page from a full page?
With a custom parameter, such as the view_type proposed in the original guide, registered as a custom dimension. It is not a Google parameter.
What percentage of additions to the cart is good?
There is no universal value. Compare the same product over time, not different products against each other.