> For the complete documentation index, see [llms.txt](https://docs.trustedsite.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustedsite.com/docs/installation/conversion-tracking.md).

# Conversion Tracking

Add the following code to your purchase confirmation page, filling out the bracketed content with the real values.

```html
<script src="https://cdn.ywxi.net/js/conversion.js"
   class="trustedsite-track-conversion"
   data-type="purchase"
   data-orderid="[1234]"
   data-amount="[74.99]"
   data-email="[john_doe@domain.com]"
   data-firstname="[John]"
   data-lastname="[Doe]"
   data-country="[US]"
></script>
```

{% hint style="info" %}
Please refer to the [country codes here](https://www.iban.com/country-codes) and the [two digit state codes here](https://pe.usps.com/text/pub28/28apb.htm).
{% endhint %}
