Skip to main content

Web Pixels API: event.data.checkout.subtotalPrice.amount value change on the new /thank-you page and checkout events

The event.data.checkout.subtotalPrice.amount value in the Web Pixels API has been updated.

Previously, this value included the sum of all line item prices and product-level discounts, but not order-level discounts. Now, event.data.checkout.subtotalPrice.amount reflects the sum of all line item prices after applying both product and order-level discounts. This update aligns the definition with the event.data.checkout.subtotalPrice.amount field on the old /thank_you page.

The event.data.checkout.subtotalPrice.amount changes will affect the following events:

  • checkout_completed (on the new /thank-you page only)
  • checkout_started
  • checkout_address_info_submitted
  • checkout_shipping_info_submitted
  • checkout_contact_info_submitted
  • payment_info_submitted

If you use any of the above events, you should ensure that your pixel expects both product and order-level discounts to be included in this field.

Was this section helpful?