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

# How to track conversions with RedTrack

*This guide is for Redtrack only. If you want to know the generic steps for S2S tracking, please check the* [*Advertisers section*](/advertisers/conversion-tracking/conversion-tracking.md#using-conversion-tracking-api---s2s-recommended)*.*

This guide consists of two sections:

a) How to set up conversion tracking in Redtrack. This section will focus on knowing how to set up the Postback URL in Redtrack, how to notify conversions to Redtrack and how to display these conversions in both Redtrack and ExoClick.

b) How to integrate Exoclick in Redtrack via API. This section will show how to edit ExoClick's campaigns from Redtrack and how to match your campaign costs in both platforms.

If you want to receive additional information, please check [RedTrack's integration guide](https://help.redtrack.io/knowledgebase/kb/partner-templates-channels/integrations-traffic-channels-9777/exoclick/).

## How to set up conversion tracking in Redtrack.

ExoClick gives you access to global traffic sources, targeting features, big data and statistical analytical tools to filter results and optimise your campaigns. This manual explains how to track conversions on the ExoClick network when you are using tracking software Redtrack.

{% stepper %}
{% step %}

### Create the Goal ID for your Postback URL.

Log into your ExoClick Admin Panel and go to **Campaigns > Conversions tracking**. This allows you to create the **Goal ID** and get the structure to be used in your **postback URL**:

<figure><img src="/files/0U4GJm0MmFVFCfXoF5Ba" alt=""><figcaption></figcaption></figure>

Click "New Conversion Goal". There are three fields you must complete: **Name**, **Conversion Value** and **Order**. In **Name**, simply add a name for the goal, for example: "Postback".

The available Conversion Values are:

* **No Value:** value is 0
* **Fixed:** you determine the payout of the conversion manually when setting up the Goal.
* **Dynamic:** the value of the payout will be passed through the Postback URL. Dynamic value passing will be explained in detail later during the guide.

**Order** is used to organize the different goals you have created in your account. If you have created multiple Conversion Goals, the Order will help you organize how these goals are displayed in your Statistics and in the Campaigns List.

Once you have added all these fields, click on the "Create" button. The Admin Panel will display the structure of the Postback URL as well as the **Goal ID** corresponding to the Goal you just created. It should look something similar to this:

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=
```

You can also check our [Conversions Tracking](/advertisers/conversion-tracking/conversion-tracking.md) page to find out more details about our Goal creation process.
{% endstep %}

{% step %}

### Add ExoClick as traffic source in Redtrack and configure the Postback

To track conversions on ExoClick you will need to add a dynamic tracker to your campaign URL **{conversions\_tracking}** which identifies each click uniquely.

You must store this tracker on Redtrack and get it to notify ExoClick’s API each time a user generates a conversion. This is achieved in Redtrack by configuring ExoClick as the traffic source, using the pre-defined template.

Click the “Traffic sources” tab, then click "New From Template":

<figure><img src="/files/3HFDGQIfjLzk6iCDTrfz" alt=""><figcaption></figcaption></figure>

Select "ExoClick". Redtrack will pre-populate the traffic source settings from the template.

Select the same **currency** as your ExoClick account. Then, in the Postback URL field replace the word “REPLACE”, with the **goal ID** value you generated in Step 1.

<figure><img src="/files/jd59G6gzaubREuwLgrzl" alt=""><figcaption></figcaption></figure>

Your postback URL should now look like the following:

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag={ref_id}
```

**Note**: If you selected **Dynamic** value when setting up your Goal in ExoClick, then you will also have to add **\&value={offer\_payout}** at the end of the Postback URL so as to pass the value of the conversion. In this case, your postback URL will look like the following:

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag={ref_id}&value={offer_payout}
```

Once you have made these edits, you can go ahead and save the Postback.
{% endstep %}

{% step %}

### Set up an Affiliate Network on redtrack

Click the "Offer sources", then click on "New from template". If you can't find your affiliate platform or if you are running a custom offer, click on "New from scratch":

<figure><img src="/files/3XbqpzfEmYUAPB2JTztw" alt=""><figcaption></figcaption></figure>

When setting up the Offer source, the only compulsory parameter is the "Name". However, if you want to send conversions to the affiliate platform and track the payout of each conversion, then you will have to add all the "Postback parameters" from this page:

<figure><img src="/files/idtM7L9WG4yvMrCvs5s9" alt=""><figcaption></figcaption></figure>

Copy the Postback URL from this page and add it to the corresponding section from the affiliate platform.

**Note:** Remember that the Posbtack URL you see here corresponds to the Affiliate Platform. This is not the same postback URL as the one you used in Traffic Source settings.

For ExoClick, the most important parameter in this page is the **Sum**. Make sure that you are using the right token from your affiliate platform in order to track the payout from the associated offers. You need to make sure that the value from this token **reaches the postback URL from Exoclick**.

If your Affiliate platform cannot pass payout information through tokens, then you can specify the payout in the **Offer** settings. We will cover this in the next section.

For more information on how to set up the Affiliate network in Redtrack, please check their [manual](https://docs.redtrack.io/knowledgebase/adding-offer-source/).
{% endstep %}

{% step %}

### Create an Offer in Redtrack.

Click the ”Offers” tab, then click "New" .

<figure><img src="/files/Csb7jk7M0OTsF1ARG0aV" alt=""><figcaption></figcaption></figure>

Select the **Offer source** and put a "Name" to the Offer. If you did not add a parameter for **Sum** in the "Offer Source" settings, then you need to add a **"Payout"** to the Offer.

Then, add the URL of your product to the Offer URL. For instance:

```json
http://mypage.com/?a=14030&c=64375&s1
```

<figure><img src="/files/rIhalDOYN6f11rZyFr39" alt=""><figcaption></figcaption></figure>

"Save Changes" to finish setting up the Offer.
{% endstep %}

{% step %}

### Create a campaign in Redtrack.

Click the "Campaigns" tab, then click "New"

<figure><img src="/files/n8jlvXiJ5hpRwfFEI3wu" alt=""><figcaption></figcaption></figure>

Here is the process you must follow in order to create a campaign in Redtrack with ExoClick as the source:

1. Add a Name to the campaign and select **ExoClick** as your Source.
2. In Campaign cost, select the same **Price model** as your ExoClick Campaign.
3. Scroll down to make sure ExoClick's **Postback URL** is correct.
4. In "Funnels", add your **Offer**. If you also created Landing Pages for this offer, select "Single Landing" or "MultiLanding". Otherwise, click "Only Offer"
5. If possible, enable **"auto update costs"** to fetch the data from your campaign via API. API integration is explained [in this section](#exoclick-api-redtrack-integration)
6. Save the campaign.

Your settings should look something similar to this:

<figure><img src="/files/kE5vfftcIN9EuAiSlMke" alt=""><figcaption></figcaption></figure>

Click "Save". Redtrack will provide you with your Campaign URL. You can find it next to your campaign in the Campaign list and in your Campaign settings:

Example campaign URL:

```json
https://nie9x.rdtk.io/62388a866807c500011af2ee?sub1={variation_id}&sub2={src_hostname}&sub3={category_id}&sub4={campaign_id}&sub5={country}&sub6={site_id}&sub7={zone_id}&sub8={format}&ref_id={conversions_tracking}&cost={actual_cost}
```

<figure><img src="/files/zq20rNfZXrlkZM6ntYAx" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create the campaign in Exoclick

Copy the campaign URL created from the previous section and paste it as your "Variation" in your campaign in Exoclick. Make sure it contains the **{conversions\_tracking}** tag to send the conversion details to Redtrack.

<figure><img src="/files/pchlqjt5hQQ5KTXYHcsn" alt=""><figcaption></figcaption></figure>

Finish the campaign set up. You can find a **detailed guide on how to create a campaign in Exoclick** [**here**](/advertisers/campaigns/creating-a-campaign/create-campaign-step1.md).

If the set up has been done correctly, you will start seeing conversions both in Redtrack and ExoClick. Do not forget to enable the corresponding Goal column in your [Campaigns List](/advertisers/campaigns/campaigns-list.md) and your [Statistics](/advertisers/advertiser-statistics.md)
{% endstep %}
{% endstepper %}

## ExoClick API Redtrack integration

By integrating Redtrack with ExoClick via API, you will be able to manage certain aspects of your ExoClick campaigns while at the same time make use of Redtrack's reporting tools.

Each change you make in Redtrack will have an instantaneous effect in ExoClick. Here are some of the actions you can make through API Redtrack integration

* **Synchronize costs**: The "auto update cost" feature will allow you to fetch cost data from your ExoClick account.
* **Add automation rules** This allows you to pause campaigns, variations or zones automatically based on conditions from your choice.

### Requirements

Before you can integrate with Redtrack, you need to generate an **API Token** in ExoClick.

Login to your Exoclick account, then click on your username to access your Profile. Click on New API Token, give a name to that token, then hit Save. You will see the API token under the "Token" column:

<figure><img src="/files/tPcs4SdKTmObniZZcGJU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jCgn8gpUqTmgu1yVO13X" alt=""><figcaption></figcaption></figure>

### Instructions

In order to integrate ExoClick API, add your API token to the "API key" section from your Traffic Source settings:

If the API token is valid, then the "Active" label will appear next to the API key section.

Then, you can go to "Campaigns" in Redtrack, select the campagin where you want to enable the automized rules, then click on "Rules". An extensive description of how rules are set can be found [here](https://docs.redtrack.io/knowledgebase/auto-rules/)

If you need further guidance on how to set up Conversion tracking or API Integration in Redtrack, please don't hesitate to contact [Redtrack support](https://docs.redtrack.io/). You can also contact [ExoClick's Customer Success](https://www.exoclick.com/contact/) to review these steps.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.exoclick.com/advertisers/conversion-tracking/tracking-manuals/redtrack-tracking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
