Skip to main content
Checkout and pricing properties provide detailed order information for purchase and checkout events.

Properties

subtotalPrice

Subtotal before tax/shipping.

tax

Tax amount applied.

shipping

Shipping cost.

discount

Total discount amount.

coupon

Promo code used.

paymentType

Payment method.

shippingTier

Shipping speed selected.

Quick Reference

PropertyTypeDescription
subtotalPricenumberSubtotal before tax and shipping
taxnumberTax amount
shippingnumberShipping cost
discountnumberTotal discount amount applied
couponstringCoupon or promo code used
paymentTypestringPayment method used
shippingTierstringShipping tier selected
cartIdstringShopping cart identifier
affiliationstringStore or affiliate name

Example

window._upstack('track', 'purchase', {
  transactionId: 'ORD-12345',
  value: 134.99,
  currency: 'USD',
  subtotalPrice: 149.99,
  tax: 12.00,
  shipping: 8.00,
  discount: 35.00,
  coupon: 'SAVE25',
  paymentType: 'credit_card',
  shippingTier: 'express',
  items: [/* ... */]
});