Example
window._upstack('track', 'order_fulfilled', {
// 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
fulfillmentStatus: 'fulfilled',
warehouseId: 'wh_02'
});
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 |
|---|---|---|---|
fulfillmentStatus | string | fulfilled | The fulfillment state, such as fulfilled or partial. |
warehouseId | string | wh_02 | Your ID for the warehouse that shipped it. |