Redirect tracking
David Rolenc avatar
Written by David Rolenc
Updated over a week ago

Before proceeding with the integration, make sure you have the redirect landing page properly set up in your offers, you'll find more details about how them up in this article.

The following applies only for offers with redirect landing pages.

When using the redirect tracking, you are provided with the CID when user lands on the landing page (CID is present in visitor's URL when he lands).

Save a CID from redirect landing page URL

Save the CID parameter from the URL you created on your side (database, local storage, cookie). You will need the parameter for next steps. We will refer to this parameter as "OUR_CID" from now on.

Create a conversion

In order to create a conversion fo redirect tracking, you can use either GET or POST postbacks. Details on each method are provided below.

GET postback

Fixed amount

In order to send a GET postback for an offer with fixed amount following URL is used to create a conversion:

https://YOUR_TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=sale&cid=OUR_CID

Instead of YOUR_TENANT_ID use your actual tenant ID.

Make sure to replace "OUR_CID" with the CID you saved previously.

Note that if you are using a different conversion type than sale, value "sale" needs to be changed.

Revenue share

To use revenue share, you also need to provide the amount of revenue when creating the conversion. Amount is used in the system to calculated commission of the affiliate depending on the offer settings.

Here is the GET postback URL to create a conversion for revenue share scenario:

https://YOUR_TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=sale&cid=OUR_CID&amount.value=YOUR_VALUE

Instead of YOUR_TENANT_ID use your actual tenant ID.

Make sure to replace "YOUR_VALUE" with the amount you want to prorate to the system.

Make sure to replace "OUR_CID" as described in the above variants.

Note that if you are using a different conversion type than sale, value "sale" needs to be changed.

POST postback

Fixed amount

In order to send a POST postback for an offer with fixed amount following endpoint is used to create a conversion:

https://YOUR_TENANT_ID.trackdesk.com/tracking/conversion/v1

Instead of YOUR_TENANT_ID use your actual tenant ID.

Body of the request is following:

{
"cid": "OUR_CID",
"conversionTypeCode": "sale"
}

Make sure to replace "OUR_CID" with the CID you saved previously.

Note that if you are using a different conversion type than sale, value "sale" needs to be changed.

Revenue share

To use revenue share, you also need to provide the amount of revenue when creating the conversion. Amount is used in the system to calculated commission of the affiliate depending on the offer settings.

Body of the request in the scenario of revenue share changes into following:

{
"cid": "OUR_CID",
"conversionTypeCode": "sale",
"amount": {
"value": "CONVERSION_AMOUNT"
}
}

Make sure to replace "CONVERSION_AMOUNT" with the amount you want to prorate to the system.

Make sure to replace "OUR_CID" as described in the above variants.

Note that if you are using a different conversion type than sale, value "sale" needs to be changed.


Did this answer your question?