window._upstack('track', 'purchase', {
// Standard parameters
orderId: '10421',
transactionId: '10421',
value: 81.17,
currency: 'USD',
items: [{
id: '8012345678',
variant: '44120033',
variantName: 'Blue / Medium',
name: 'Classic Cotton Tee',
sku: 'TEE-BLU-M',
price: 34.99,
quantity: 2,
brand: 'Example Brand',
category: 'Apparel',
url: 'https://example.com/products/classic-tee',
imageUrl: 'https://example.com/images/classic-tee.jpg'
}],
orderName: '#1042',
price: 81.17,
subtotalPrice: 62.98,
tax: 5.20,
shipping: 12.99,
discount: 7.00,
coupon: 'SAVE10',
paymentType: 'credit_card',
shippingTier: 'Express',
affiliation: 'Example Store',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
addresses: [{
address1: '123 Main St',
city: 'Austin',
provinceCode: 'TX',
countryCode: 'US',
zip: '78701'
}],
// Custom data
salesChannel: 'web',
loyaltyTier: 'gold',
giftOrder: false
});