Order

Order Completed

zlt.track('Order Completed', {
  email: '',
  billing_address_first_name: '',
  billing_address_last_name: '',
  billing_address_company: '',
  billing_address_zip: '',
  billing_address_phone: '',
  billing_address_address1: '',
  billing_address_address2: '',
  billing_address_city: '',
  billing_address_province: '',
  billing_address_province_code: '',
  billing_address_country: '',
  billing_address_country_code: '',
  shipping_address_first_name: '',
  shipping_address_last_name: '',
  shipping_address_company: '',
  shipping_address_zip: '',
  shipping_address_phone: '',
  shipping_address_address1: '',
  shipping_address_address2: '',
  shipping_address_city: '',
  shipping_address_province: '',
  shipping_address_province_code: '',
  shipping_address_country: '',
  shipping_address_country_code: '',
  order_id: '',
  checkout_id: '',
  payment_method: '',
  total: 17.50,
  subtotal: 12.50,
  revenue: 15.00,
  shipping: 2,
  tax: 3,
  discount: 2.5,
  coupons: [
    {
      coupon_id: '',
      amount: '',
      percentage: false
    }
  ],
  currency: 'USD',
  products: [
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    },
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    }
  ],
	created_at: '',
	updated_at: ''
});

Order Refunded

zlt.track('Order Refunded', {
  order_id: '',
  total: ,
  currency: 'USD',
  products: [
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    },
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    }
  ]
});

Order Cancelled

zlt.track('Order Cancelled', {
  order_id: '',
  total: 30,
  subtotal: ,
  revenue: 25.00,
  shipping: 3,
  tax: 2,
  discount: 2.5,
  coupon: '',
  currency: 'USD',
  products: [
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    },
    {
      product_id: '',
      variant_id: '',
      sku: '',
      name: '',
      price: ,
      quantity: ,
      category: '',
      product_type: '',
      on_sale: false,
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    }
  ]
});

Last updated