Skip to content

Commit 8e73406

Browse files
committed
add missing dl_cart_updated event to analytics events
1 parent fc46f85 commit 8e73406

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

docs/campaign-cart/analytics/events.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,43 @@ Cart page view.
297297

298298
---
299299

300+
### dl_cart_updated
301+
302+
Cart state changed (generic cart update event).
303+
304+
**When it fires:** When cart contents change (add, remove, quantity change, package swap, coupon application, etc.)
305+
306+
**Auto-tracked:** Yes (fires on every cart state change)
307+
308+
**Note:** This is a high-frequency event that fires on any cart modification. It provides a cart summary rather than detailed item information. For specific add/remove actions, see `dl_add_to_cart` and `dl_remove_from_cart`.
309+
310+
**Example:**
311+
312+
```javascript
313+
{
314+
event: 'dl_cart_updated',
315+
cart: {
316+
total_value: 199.99,
317+
total_items: 2,
318+
currency: 'USD',
319+
items: [
320+
{
321+
package_id: 123,
322+
quantity: 1,
323+
price: 99.99
324+
},
325+
{
326+
package_id: 456,
327+
quantity: 1,
328+
price: 99.99
329+
}
330+
]
331+
}
332+
}
333+
```
334+
335+
---
336+
300337
### dl_begin_checkout
301338

302339
Checkout process initiation.
@@ -681,6 +718,7 @@ All events follow this GA4-compliant structure:
681718
| `dl_add_to_cart` | Add to cart | Yes | `next.trackAddToCart()` |
682719
| `dl_remove_from_cart` | Remove from cart | Yes | `next.trackRemoveFromCart()` |
683720
| `dl_view_cart` | Cart page view | No | Manual |
721+
| `dl_cart_updated` | Cart state changed | Yes | Manual |
684722
| `dl_begin_checkout` | Checkout start | Yes | `next.trackBeginCheckout()` |
685723
| `dl_add_shipping_info` | Shipping entered | Yes | Manual |
686724
| `dl_add_payment_info` | Payment entered | Yes | Manual |

0 commit comments

Comments
 (0)