Example
window._upstack('track', 'order_shipped', {
// Standard parameters
orderId: '10421',
orderName: '#1042',
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'
}],
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
trackingNumber: '1Z999AA10123456784',
trackingCompany: 'UPS',
trackingUrl: 'https://example.com/track/1Z999',
estimatedDelivery: '2026-11-08'
});
Don’t send
transactionId on this event. It gives the event the same ID as the purchase, and one of them is dropped as a duplicate.Standard parameters
* Required if you send
value.
Item parameters
| Name | Type | Required | Example value | Description |
|---|---|---|---|---|
id | string | Yes | 8012345678 | Product ID. Must match the ID in your product catalogs. |
name | string | Yes | Classic Cotton Tee | Product name. |
price | number | Yes | 34.99 | Unit price. |
quantity | number | Yes | 2 | Quantity. |
variant | string | No | 44120033 | Variant ID, not a name. Must match your catalogs. |
variantName | string | No | Blue / Medium | Variant name. |
sku | string | No | TEE-BLU-M | SKU. |
brand | string | No | Example Brand | Brand. |
category | string | No | Apparel | Product category. |
url | string | No | https://example.com/products/classic-tee | Product page URL. |
imageUrl | string | No | https://example.com/images/classic-tee.jpg | Product image URL. |
discount | number | No | 3.50 | Discount on this line. |
value | number | No | 69.98 | Line total. |
content_type | string | No | product | product or product_group. |
User data
* Required if you have it.
Custom data
Examples for this event. See how custom data works.| Name | Type | Example value | Description |
|---|---|---|---|
trackingNumber | string | 1Z999AA10123456784 | The carrier tracking number. |
trackingCompany | string | UPS | The carrier name. |
trackingUrl | string | https://example.com/track/1Z999 | The tracking page URL. |
estimatedDelivery | string | 2026-11-08 | Estimated delivery date. |