The checkout_complete event is sent when a checkout has been completed and is counted as a conversion.

Parameters

KeyDescriptionTypeExample
valueBasket ValueDecimal72.00
item_quantityBasket QuantityNumber1
discount_valueDiscount ValueDecimal7.99
shipping_valueShipping ValueDecimal2.99
tax_valueTax ValueDecimal12.00
Note:
  • value should be the final basket value after discount.
  • discount_value can be 0 or omitted if no discount applies.
  • tax_value can be 0 or omitted if you do not wish to track tax.
  • In the example above, the product price is 79.99, with a 7.99 discount applied.

Revenue Calculations Based on Above Data

MetricCalculation
Purchase Revenuevalue
Shipping Revenueshipping_value
Tax Revenuetax_value
Discount Valuediscount_value
Total Revenuevalue + shipping_value

Example

nv_create_event({
  event_name: "checkout_complete",
  parameters: {
    value: 72.00,
    item_quantity: 1,
    discount_value: 7.99,
    shipping_value: 2.99,
    tax_value: 12.00
  }
});
If you are wanting to track conversion data at item level, see the Items Purchased event.