Shopify: Automatically tracked when using standard Shopify cart functionality.
JavaScript
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| items | array | Yes | Products added (see Item Object) |
| value | number | Yes | Total value of items added |
| currency | string | Yes | ISO 4217 currency code |
When to Fire
- Add-to-cart button click
- Quantity increase in cart
- “Buy Now” button click (before checkout)
Related Events
- view_content — View product before adding
- product_removed_from_cart — When removing from cart
- view_cart — When viewing cart
- initiate_checkout — When starting checkout