> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# value

> The monetary value of the event. Always pair with currency.

The monetary value of the event. Always pair with `currency`.

```javascript theme={null}
window._upstack('track', 'purchase', {
  value: 99.99,
  currency: 'USD'
});
```

| Type   | Required                          | Events                                                                                      |
| ------ | --------------------------------- | ------------------------------------------------------------------------------------------- |
| number | Yes for purchase, lead, subscribe | purchase, add\_to\_cart, view\_content, initiate\_checkout, lead, subscribe, trial\_started |

<Warning>
  For Purchase events, `value` should match the order total you want reported to ad platforms. Mismatched values between Shopify and your destinations are the most common attribution debugging issue.
</Warning>

## Related Properties

<CardGroup cols={2}>
  <Card title="currency" icon="dollar-sign" href="/pixel/events/properties/currency">
    ISO 4217 currency code — required with value.
  </Card>

  <Card title="subtotalPrice" icon="receipt" href="/pixel/events/properties/subtotal-price">
    Subtotal before tax and shipping.
  </Card>
</CardGroup>
