This article describes how to track conversions using a pixel (image-based integration) as a replacement for server-side postback integration.
The pixel uses the same conversion endpoint and the same parameters as a postback. The only difference is the delivery method: instead of sending the request from the server, the conversion request is triggered by loading an image on a web page.
Insert the following <img> tag on the final confirmation (thank-you) page, right before the closing </body> tag.
Pixel structure
<img
src="POSTBACK_URL"
width="1"
height="1"
alt=""
/>
Replace POSTBACK_URL with one of the conversion URLs below.
Fixed amount conversion
Use this pixel if your postback integration does not send a revenue value.
<img
src="https://TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=CONVERSION_TYPE&cid=CLICK_ID"
width="1"
height="1"
alt=""
/>
Replace these values:
TENANT_ID: your Tenant IDCONVERSION_TYPE: the code of your Conversion Type, for examplesaleCLICK_ID: the visitor's Click ID (CID), filled in by your page for each conversion
Revenue share (dynamic amount)
If your postback integration includes a revenue value, include the same parameter in the pixel.
<img
src="https://TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=CONVERSION_TYPE&cid=CLICK_ID&amount.value=AMOUNT"
width="1"
height="1"
alt=""
/>
Replace these values:
TENANT_ID: your Tenant IDCONVERSION_TYPE: the code of your Conversion Type, for examplesaleCLICK_ID: the visitor's Click ID (CID), filled in by your page for each conversionAMOUNT: the conversion revenue, for example100.50
Adding more parameters
The pixel accepts the same extra parameters as a standard postback. Common additions include:
AdvS1 to AdvS5: custom advertiser parameters for tracking IDs or traffic source labels.
Customer ID: a customer identifier.
External ID: an order or transaction ID, used for deduplication and refund handling.
Currency: the conversion currency, for revenue-share cases.
Status: the conversion status the conversion will be created with.
For the full syntax and examples, see the Add extra parameters section of the Redirect tracking article.
