# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trustedsite.com/docs/installation/conversion-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
