Skip to main content
Fires when a visitor views their shopping cart. This helps track cart abandonment and build remarketing audiences for shoppers who haven’t completed checkout.
Shopify: Automatically tracked when the cart page or cart drawer is viewed.

JavaScript

window._upstack('track', 'view_cart', {
  items: [
    {
      id: 'SKU_12345',
      name: 'Classic Cotton Tee',
      price: 34.99,
      quantity: 2
    },
    {
      id: 'SKU_67890',
      name: 'Running Socks',
      price: 14.99,
      quantity: 1
    }
  ],
  value: 84.97,
  currency: 'USD'
});

Properties

PropertyTypeRequiredDescription
itemsarrayYesProducts in cart (see Item Object)
valuenumberNoTotal cart value
currencystringNoISO 4217 currency code

When to Fire

  • Cart page load
  • Cart drawer/sidebar open
  • Mini-cart expansion