Skip to main content

Pixel Image as Conversion

Sasha Gerold avatar
Written by Sasha Gerold
Updated over 2 weeks ago

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.

Pixel Integration (Postback Replacement)

Instead of sending a server-side GET request, insert the following <img> tag on the final confirmation (“thank you”) page.

Pixel Structure

<img
src="POSTBACK_URL"
width="1"
height="1"
alt=""
/>

Fixed Amount Conversion

Use this pixel if your postback integration does not send a revenue value.

<img
src="https://{YOUR TENANT ID}.trackdesk.com/tracking/conversion/v1
?conversionTypeCode=sale
&cid={CLICK_ID}"
width="1"
height="1"
alt=""
/>

Make sure to replace YOUR TENANT ID with your actual Tenant ID.
Make sure to replace CLICK ID with your Trackdesk click ID (CID).

Revenue Share (Dynamic Amount)

If your postback integration includes a revenue value, include the same parameter in the pixel.

<img
src="https://{YOUR TENANT ID}.trackdesk.com/tracking/conversion/v1
?conversionTypeCode=sale
&cid={CLICK_ID}
&amount.value={AMOUNT}"
width="1"
height="1"
alt=""
/>

Make sure to replace YOUR TENANT ID with your actual Tenant ID.
Make sure to replace CLICK ID with your Trackdesk click ID (CID).

Make sure to replace AMOUNT with the conversion revenue value.

Did this answer your question?