WebmasterID logoWebmasterID
Event tracking

The view_cart event

view_cart is one of GA4's recommended retail/e-commerce events. You send it when a user opens or displays their shopping cart, with an items array plus currency and value parameters so reports can attribute cart-viewing behavior. It sits between product-list events and begin_checkout in the standard purchase journey, and like all recommended events it has a documented name and parameter shape GA4 understands without custom configuration.

Verified against primary sources

What this means

view_cart is a GA4 recommended e-commerce event. Recommended events have predefined names and parameters that Google documents, so populating them unlocks standard reports (here, the e-commerce funnel) without bespoke setup. You fire view_cart when the cart UI is shown.

The event expects an items array describing each product in the cart, alongside currency (an ISO 4217 code) and value (the total monetary value of the items).

Parameters and sequence

Each entry in items can carry fields such as item_id, item_name, price, and quantity. The currency and value parameters at the event level summarise the cart. In the canonical journey, view_cart follows add_to_cart and precedes begin_checkout, so it is the natural place to read cart abandonment from the cart screen itself.

How it appears in analytics and logs

A view_cart event means a shopper displayed their cart contents. A drop between view_cart and begin_checkout points to friction at the cart-to-checkout transition.

Diagnostic use case

Measure how many sessions reach the cart view and which products are in those carts, as a mid-funnel step before checkout.

What WebmasterID can help detect

WebmasterID can record a cart-view event first-party so you see the cart step in your funnel without depending on third-party cookies.

Common mistakes

Privacy and accuracy notes

Send only non-PII item and value parameters — product IDs, names, prices, currency. Never place emails, names, or addresses in event parameters. This page is educational, not legal advice.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.