Skip to main content

πŸ”΄ Phase 1 β€” CoreΒ Β·Β Cart visibility for funnel analysis.

view_cart

When to push​

When the cart page loads (full page yes, mini-cart drawer no).

Example​

window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: 'view_cart',
ecommerce: {
currency: 'EUR',
value: 109.00,
items: [
{ item_id: 'BIO-CRM-001', item_name: 'Day Cream', price: 42.00, quantity: 2 },
{ item_id: 'BIO-SER-002', item_name: 'Serum', price: 25.00, quantity: 1 }
]
}
});

Parameters​

ParameterRequired
currencyrequired
valuerequired β€” total merchandise
itemsrequired β€” all cart items

value = Ξ£ (price Γ— quantity) βˆ’ global coupons.

Platforms​

PlatformNative event
GA4view_cart
Metaβ€”
Google Adsβ€”

Pitfalls​

  • ❌ Pushing on mini-cart drawer open β†’ spam.
  • ❌ Forgetting an item β†’ value inconsistent with UI total.