Skip to main content
For shipping and billing information. Pass as an array of address objects.

Address Array Structure

window._upstack('track', 'purchase', {
  transactionId: 'ORD-12345',
  value: 149.99,
  currency: 'USD',
  addresses: [
    {
      firstName: 'Jane',
      lastName: 'Smith',
      address1: '123 Main St',
      address2: 'Apt 4B',
      city: 'San Francisco',
      province: 'California',
      provinceCode: 'CA',
      country: 'US',
      zip: '94102'
    }
  ],
  items: [/* ... */]
});

Address Properties

PropertyTypeDescription
firstNamestringFirst name
lastNamestringLast name
companystringCompany or organization name
address1stringStreet address line 1
address2stringStreet address line 2
citystringCity
provincestringState or province
provinceCodestringState/province code (e.g., CA, NY, ON)
countrystringCountry name
countryCodestringISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
zipstringZIP or postal code

Privacy

Address fields (city, zip, country code, state code) are normalized and SHA-256 hashed before being sent to advertising destinations.
Use province for the full state/province name and provinceCode for the abbreviated code. Use zip for postal codes.