Checkmark

Thank you for your feedback

Exporting values from the Order Confirmation page

Learn how to export order variables for third-party applications.

Article ID: SLN19092

When using a 3rd Party tracking code, the order information below is available to be tracked via Javascript. Work with a Javascript developer at the 3rd Party Company to incorporate the tracking code to export the order information below.

  • subtotal
  • total
  • order number
  • number of items
  • items
  • quantity
  • price
  • tax
  • shipping
  • discount
  • options

Order JavaScript

Order information is presented in two different formats - flat variables and a JSON object. All checkout pages supply a JSON object named cartObj, while the Order Confirmation page also supplies the following variables:

  • orderSubTotal
  • orderTotal
  • orderNum
  • numOfItems
  • items
  • ids
  • codes
  • qtys
  • price
  • orderTax
  • orderShipping
  • orderDiscount