addresses array, as part of user data. Send one object per address.
Sample payload with every address parameter:
window._upstack('track', 'add_shipping_info', {
// Standard parameters
value: 69.98,
currency: 'USD',
items: [{ id: '8012345678', name: 'Classic Cotton Tee', price: 34.99, quantity: 2 }],
// User data
email: 'jane@example.com',
addresses: [{
firstName: 'Jane',
lastName: 'Smith',
company: 'Example Co',
address1: '123 Main St',
address2: 'Apt 4B',
city: 'Austin',
province: 'Texas',
provinceCode: 'TX',
country: 'United States',
countryCode: 'US',
zip: '78701',
phone: '+15551234567'
}]
});
| Name | Type | Example value | Description |
|---|---|---|---|
firstName | string | Jane | First name. |
lastName | string | Smith | Last name. |
company | string | Example Co | Company name. |
address1 | string | 123 Main St | Street address. |
address2 | string | Apt 4B | Apartment, suite or unit. |
city | string | Austin | City. |
province | string | Texas | State or province name. |
provinceCode | string | TX | State or province code. |
country | string | United States | Country name. |
countryCode | string | US | ISO 3166-1 alpha-2 country code. |
zip | string | 78701 | Postal code. |
phone | string | +15551234567 | Phone number in E.164 format. |