π΄ 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β
| Parameter | Required |
|---|---|
currency | required |
value | required β total merchandise |
items | required β all cart items |
value = Ξ£ (price Γ quantity) β global coupons.
Platformsβ
| Platform | Native event |
|---|---|
| GA4 | view_cart |
| Meta | β |
| Google Ads | β |
Pitfallsβ
- β Pushing on mini-cart drawer open β spam.
- β Forgetting an item β
valueinconsistent with UI total.