Skip to main content
Fires when a visitor views a product or content page. This event is critical for remarketing audiences and conversion attribution.
Shopify: Automatically tracked when viewing product detail pages.

JavaScript

window._upstack('track', 'view_content', {
  items: [
    {
      id: 'SKU_12345',
      name: 'Classic Cotton Tee',
      price: 34.99,
      brand: 'Example Brand',
      category: 'Apparel/T-Shirts'
    }
  ],
  value: 34.99,
  currency: 'USD'
});
Minimal example:
window._upstack('track', 'view_content', {
  items: [{ id: 'SKU_12345', name: 'Classic Cotton Tee', price: 34.99 }],
  value: 34.99,
  currency: 'USD'
});

Properties

PropertyTypeRequiredDescription
itemsarrayYesProducts viewed (see Item Object)
valuenumberYesProduct price
currencystringYesISO 4217 currency code (e.g., 'USD')

When to Fire

  • Product detail page load
  • Quick view modal open
  • Collection page load (with collection products)