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

# Track conversions

> Fire window.thradTag("conversion", ...) on the order confirmation page.

A conversion is the moment that closes the loop — typically the order confirmation page.

## The call

Place this on your **order confirmation / thank-you page only**, with values rendered by your backend:

```js theme={null}
window.thradTag("conversion", {
  order_id: "order_123",
  value: 99.99,
  currency: "USD"
});
```

You only need to provide three fields. The Tag handles attribution automatically using the click parameters captured from the original ad landing URL.

> **Where to fire it** Place this on the confirmation page only. The server dedupes by `order_id`, so a retry of the same order won't double-count — but firing it on other pages risks sending the call without an `order_id` (no dedup key → real duplicates) or with the wrong one (misattribution).

## Fields

| Field      | Required    | Notes                                     |
| ---------- | ----------- | ----------------------------------------- |
| `order_id` | yes         | Unique per order. Used for deduplication. |
| `value`    | recommended | Total order value.                        |
| `currency` | recommended | 3-letter ISO (`USD`, `EUR`, …).           |

That's it for client-side conversions. If you'd rather send conversions from your backend (more reliable, survives ad-blockers), use the [Conversion API](/advertisers/attribution/server-api/conversions).
