> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Traffic Company and ClickFlare Integration Guide

> Track Traffic Company offers in ClickFlare: fill the link's empty click_id, then map click_id, payout and txid in the Custom postback builder.

![Traffic Company and ClickFlare Integration](https://mintcdn.com/clickflare/DAqhaXBpNTVd1zBI/images/integrations/covers/traffic-company.png?fit=max\&auto=format\&n=DAqhaXBpNTVd1zBI\&q=85\&s=e498e4451e110c32a57aab8f190acc6a)

Traffic Company is a Dutch CPA network for mostly mobile traffic, running since 2012. Its in-house offers cover **mVAS** (carrier-billed subscriptions), **PIN API**, **Dating** (mainstream and adult) and **IVR / Click-to-Call**, paid on CPA, CPL, CPI or RevShare. You promote either a **direct link** to one offer from the **Offer wall**, or a **Smart link** that rotates the whole catalogue and picks the offer by country, carrier and device.

To track Traffic Company in ClickFlare, two links have to carry the ClickFlare click ID in both directions:

* **The offer URL** is your Traffic Company promotion link, with the ClickFlare click ID in its `click_id` parameter.
* **The postback URL** sends the click ID back to ClickFlare with every conversion, together with the payout and a unique conversion ID. Traffic Company builds it for you in a **postback builder**: you don't paste a URL.

> [!TIP]
>
> Only need the two values? The [Click ID & postback macros](/docs/en/integrations/click-id-and-postback-macros.md?q=traffic%20company) page has them ready to copy with your tracking domain.

***

## How the data flows

```text theme={null}
Ad click
  → https://trk.yourdomain.com/cf/r/CAMPAIGN?...
     (ClickFlare records the click and generates the click ID)
  → [optional lander → CTA uses the ClickFlare click URL]
  → https://RANDOM.blueviking.info/?p=12867&wid=142638&wid_hmac=...&click_id=CF_CLICK_ID
     (Traffic Company stores the ClickFlare click ID from click_id)
  → Visitor converts on the offer (or on the smart link, if rerouted)
  → Traffic Company fires your postback:
     https://trk.yourdomain.com/cf/cv?click_id=CF_CLICK_ID&payout=1.20&txid=TC_UNIQUE_ID
     (ClickFlare matches the conversion to the original click)
```

The two links mirror each other:

| Link | Built from | Traffic Company side | ClickFlare side |
| - | - | - | - |
| **Offer URL** (in ClickFlare) | Traffic Company's parameter + ClickFlare's token | `click_id` | `{cf_click_id}` |
| **Postback URL** (in Traffic Company) | ClickFlare's parameter + Traffic Company's variable | **click\_id**, **Reward**, **Unique conversion ID** | `click_id`, `payout`, `txid` |

> [!NOTE]
>
> **Offer URL = their parameter + your token. Postback URL = your parameter + their variable.** Both sides use the name `click_id`. In the postback you pick Traffic Company's value from a drop-down instead of typing a macro.

***

## What you'll need

* An active ClickFlare account with your **own tracking domain** set up. Shared domains get flagged by networks and blocked by browsers. See [Tracking domains](/docs/en/settings/tracking-domains.md).
* A Traffic Company publisher account at `controlpanel.trafficcompany.com`.
* Your account's postback. There is only one, so if another tracker uses it, switching it moves all your Traffic Company conversions to ClickFlare.

***

## What the Traffic Company template contains

ClickFlare has a **Traffic Company** affiliate network template. It fills in the Traffic Company macros ClickFlare needs.

![The Traffic Company template in ClickFlare: Click Id is \{click\_id}, Payout is \{reward} and Transaction ID is \{unique\_id}](https://mintcdn.com/clickflare/-EoEgxEc-bVjLb1R/images/integrations/traffic-company/clickflare-traffic-company-template-parameters.png?fit=max\&auto=format\&n=-EoEgxEc-bVjLb1R\&q=85\&s=08aa4e56f9aec1c2589d2ae363eeb230)

| Field | Traffic Company macro (AN Token) | Builder variable | ClickFlare parameter | What it does |
| - | - | - | - | - |
| **Click Id** | `{click_id}` | **click\_id** | `click_id` | Returns the value the offer URL put in `click_id`: the ClickFlare click ID. Pre-filled by the template. |
| **Payout** | `{reward}` | **Reward** | `payout` | Your payout for the conversion, in the currency you choose in the builder. Pre-filled by the template. |
| **Transaction ID** | `{unique_id}` | **Unique conversion ID** | `txid` | Traffic Company's ID for the conversion. Pre-filled by the template. See [why it matters](#why-the-transaction-id-matters). |
| **Event Type** | leave empty | none | `ct` | The conversion type. Traffic Company has no event variable to map, so leave it empty. |

You won't type these macros in Traffic Company. You pick the variables from a drop-down, and the builder writes the macros.

***

## Setup

Everything in ClickFlare is done from inside the campaign editor. Create the offer and the affiliate network inline as you go.

**1. Set up your own tracking domain**

Add a custom tracking domain before anything else, for example `trk.yourdomain.com`. The postback is built on this domain, so changing it later means updating your Traffic Company postback too. See [Tracking domains](/docs/en/settings/tracking-domains.md).

**2. Report conversions by postback time**

Go to **Settings → General Settings** and set **Conversion registration time reporting** to **Postback Timestamp**.

With the default **Visit Timestamp**, ClickFlare reports a conversion on the day of the original click. A conversion that comes in later then lands on a different date than in Traffic Company's statistics. See [Conversion registration time](/docs/en/settings/conversion-registration-time-reporting.md).

> [!NOTE]
>
> This is an account-wide setting. It changes the date conversions are reported on for every campaign.

**3. Create the campaign**

Go to **Campaigns → New Campaign**, choose **Redirect tracking**, pick your traffic source and select your tracking domain. See [Creating a campaign](/docs/en/campaigns/creating-a-campaign-in-click-flare.md).

**4. Create the Traffic Company affiliate network**

While creating the offer for the campaign, create a new affiliate network in its **Affiliate Network** field. You can also create it first under **Affiliate Networks → + New**. Either way:

1. Search for **Traffic Company** and pick the **Traffic Company** template.
2. Keep the name, or add your account to it if you run more than one.
3. Check the parameters: **Click Id** `{click_id}`, **Payout** `{reward}`, **Transaction ID** `{unique_id}`.
4. Leave **Event Type** empty.
5. Under **Conversion tracking**, select your own **Tracking Domain** and keep **S2S Postback URL** as the tracking method.
6. Set **Payout currency** to US dollars or euros. You'll choose the same currency in Traffic Company's postback builder, and they must match.

ClickFlare builds this postback URL from these fields:

```text theme={null}
https://trk.yourdomain.com/cf/cv?click_id={click_id}&payout={reward}&txid={unique_id}
```

![The Conversion tracking section of the Traffic Company network in ClickFlare, with the generated postback URL](https://mintcdn.com/clickflare/-EoEgxEc-bVjLb1R/images/integrations/traffic-company/clickflare-traffic-company-postback-url.png?fit=max\&auto=format\&n=-EoEgxEc-bVjLb1R\&q=85\&s=2f3d0766d076fc004dc177b97bc77d0a)

Save the network. You won't paste this URL into Traffic Company: its builder only takes the domain and path, and you rebuild the parameters there. Keep the URL to compare against the builder's result.

**5. Get the promotion link from Traffic Company**

Both kinds of link are under **Promotions** in the control panel.

* **Direct link**: choose the offer category, then the offer. Fill in **Promo info**, tick "I have read the promotion regulations", click **Create link** and then **Copy**.
* **Smart link**: choose the **mainstream** or **adult** smart link, tick the regulations box and click **Create link**.

The **Promotion URL** dialog has the tabs **Default URL**, **HTML link**, **Pop-under script** and **Redirect script**. Copy the **Default URL**. It looks like this:

```text theme={null}
https://126666f24951.blueviking.info/?p=12867&wid=142638&wid_hmac=...&click_id=
```

The subdomain is random and rotates. The link **already ends in an empty `&click_id=`**.

**6. Create the offer in ClickFlare**

In the offer form:

1. Name the offer.
2. Select the Traffic Company affiliate network you just created.
3. Paste the promotion link into **Offer URL** and type `{cf_click_id}` right after the existing `click_id=`:

```text theme={null}
https://126666f24951.blueviking.info/?p=12867&wid=142638&wid_hmac=...&click_id={cf_click_id}
```

4. Leave **Append Click ID to Offer Url** **off**. The link already has its `click_id` parameter, so the toggle would add a second one. See [The empty click ID on Traffic Company links](#the-empty-click-id-on-traffic-company-links).

   ![The ClickFlare New Offer form with the Traffic Company affiliate network selected and click\_id=\{cf\_click\_id} in the Offer URL](https://mintcdn.com/clickflare/-EoEgxEc-bVjLb1R/images/integrations/traffic-company/clickflare-traffic-company-offer-url.png?fit=max\&auto=format\&n=-EoEgxEc-bVjLb1R\&q=85\&s=47abe5aaa80cbd9af9f414adde3d4856)

> [!WARNING]
>
> Write `{cf_click_id}` with braces. Without them Traffic Company stores the literal text `cf_click_id`, the postback returns that text, and the conversion cannot be matched to a click.

Set the payout to **Auto** so ClickFlare uses the `payout` value from the postback. See [Payouts and the smart link](#payouts-and-the-smart-link).

**7. Build the postback in Traffic Company**

Click your profile icon, open **Account** and go to the **Postback** tab (next to **Account details**, **Login details**, **Access-tokens** and **Subscriptions**). Click **Edit postback settings**.

The postback is a builder, not a free URL field. Choose the **Custom** platform card, not **Voluum** or **WeCanTrack**, and fill it in:

| Builder field | What to enter |
| - | - |
| **Currency** | **US Dollar** or **Euro**. The same currency as **Payout currency** in ClickFlare. |
| **Postback domain** (under **Domain**) | Only `https://trk.yourdomain.com/cf/cv`. No `?` and no parameters: the builder adds them. |
| **Map URL Parameters** | Three rows, one per parameter. Use **Add URL parameter** to add rows. |

The three rows pair a **URL Parameter** you type with a **Variable** you pick from the drop-down:

| URL Parameter | Variable |
| - | - |
| `click_id` | **click\_id** |
| `payout` | **Reward** |
| `txid` | **Unique conversion ID** |

Type the URL parameter names in lowercase, exactly as shown: they are ClickFlare's parameter names.

Save the settings. The page then shows the postback's **Status**, **Currency**, **Platform** and the final **Postback URL**. Check two things:

* **Status** reads **Enabled**.
* The **Postback URL** matches the one ClickFlare generated: `https://trk.yourdomain.com/cf/cv?click_id={click_id}&payout={reward}&txid={unique_id}`. The order of the parameters may differ. That's fine.

> [!NOTE]
>
> The postback is global: it applies to all your Traffic Company offers, direct links and smart links alike. There's one per account, and we found no per-offer postback.

**8. Add a lander (optional)**

If you send traffic through a lander before the offer, the lander's CTA must use the **ClickFlare click URL**, not the Traffic Company link. ClickFlare then adds the click ID when it redirects to the offer. See [Paths with landers and offers](/docs/en/campaigns/campaign-s-path-destination-to-landers-offers.md).

**9. Save the campaign and launch**

Save the campaign, copy the campaign URL from the **Tracking** tab and use it in your ads. Before you spend money on traffic, run the checks in [Verify the setup](#verify-the-setup).

***

## The empty click ID on Traffic Company links

Every promotion link Traffic Company generates ends in `&click_id=` with no value. That matters for the **Append Click ID to Offer Url** toggle, which adds `click_id={cf_click_id}` to the end of the offer URL. On a Traffic Company link that gives:

```text theme={null}
...&wid_hmac=...&click_id=&click_id={cf_click_id}
```

The URL now carries `click_id` twice, once empty. Traffic Company doesn't document which of the two it reads, so the click ID may not be stored.

Use one of these two ways, not both:

| Way | What to do | Toggle |
| - | - | - |
| **Fill the existing parameter** (recommended) | Type `{cf_click_id}` right after the existing `click_id=` | **Off** |
| Let ClickFlare add it | Delete the trailing `&click_id=` from the link, then turn the toggle on | **On** |

The first way is easier to check, because you see the full link in the **Offer URL** field.

Expect every new link to end the same way: Traffic Company may add `click_id=` automatically once a postback is configured.

***

## Payouts and the smart link

Use `payout` → **Reward** in the postback and payout **Auto** in ClickFlare. A fixed payout in ClickFlare will often be wrong, for three reasons:

* **Direct-link payouts vary.** The control panel warns that a direct link's payout can differ from the listed one if your targeting is wrong, and recommends the **reward** parameter.
* **The smart link picks the offer**, so each conversion can come from a different offer at a different payout.
* **The conversion optimizer reroutes traffic.** It's a toggle at the top of **Promotions → Offer wall**. When it's on, traffic with the wrong targeting, or traffic sent to a disabled offer, goes to your smart link instead. A conversion can then come from an offer you didn't link, at its payout.

**Reward** is sent in the currency you chose in the builder. Set ClickFlare's **Payout currency** to the same one, or every payout is recorded in the wrong currency.

***

## Why the transaction ID matters

By default ClickFlare keeps **one conversion per click ID**. If several postbacks arrive with the same click ID and no transaction ID, ClickFlare treats them as the same conversion, and you only see one of them (the last one received). The `txid` parameter tells ClickFlare that each postback is a separate conversion.

Map `txid` to **Unique conversion ID**. As its name says, it identifies one conversion, so:

* If Traffic Company resends the same conversion, it carries the same ID, and ClickFlare doesn't count it twice.
* If a click produces a second conversion, it gets its own ID and ClickFlare counts it separately.

That second case matters for **RevShare** and **mVAS** subscription offers, which can earn more than once on the same visitor. Traffic Company doesn't publicly document whether subscription rebills fire a postback. If they do, the unique conversion ID keeps each one apart. Ask your affiliate manager how recurring revenue is reported if you run these offers.

> [!NOTE]
>
> Voluum's guide uses `{transaction_id}`, from Traffic Company's separate **Voluum** platform card. In the **Custom** builder, **Unique conversion ID** is written as `{unique_id}`, as in ClickFlare's template.

***

## Pending and rejected conversions

Traffic Company shows the last 5 days of revenue as **pending**, to allow for delayed conversions. We found no status variable or per-status option in the builder.

ClickFlare counts conversions as Traffic Company sends them. Compare the two once the pending window has passed, and adjust in ClickFlare if conversions were removed.

***

## Verify the setup

**1. Click through the campaign**

Open the ClickFlare campaign URL (with a lander, also click the CTA). When the offer loads, the first request goes to Traffic Company's `blueviking.info` domain. In the address bar or your browser's network tab, check that there is **one** `click_id=` followed by a real ClickFlare click ID, not the literal text `{cf_click_id}` and not an empty value.

**2. Generate a test conversion**

We found no postback test tool in the control panel. Ask your affiliate manager whether they can fire a test conversion on your click. Its statistics are real-time, so you can check that your click arrived with its `click_id`. To check the ClickFlare side on its own, open the postback URL in your browser with the click ID from the previous step and real values in place of the macros.

**3. Check the conversion in ClickFlare**

The conversion should appear on the campaign with the payout from Traffic Company. In **Logs → Event Logs**, check that it has a payout and a `txid`.

***

## Troubleshooting

> **Conversions show in Traffic Company but not in ClickFlare**
>
> * **The postback isn't enabled.** Open **Account → Postback** and check that **Status** reads **Enabled**.
> * **The Postback domain has parameters in it.** The field takes the base URL only: `https://trk.yourdomain.com/cf/cv`. Remove anything from `?` onward and map the parameters in **Map URL Parameters** instead.
> * **The URL parameter names are wrong.** They must be ClickFlare's names, in lowercase: `click_id`, `payout`, `txid`.
> * **The click ID didn't reach Traffic Company.** The offer URL still ends in an empty `click_id=`, carries `click_id` twice (the toggle is on as well), or the lander CTA links straight to Traffic Company instead of using the ClickFlare click URL.
>
> See [Troubleshooting S2S postbacks](/docs/en/tracking/troubleshooting-s2s-postback-url-in-clickflare.md) for the general checks.

> **ClickFlare receives a literal cf\_click\_id or an empty click ID**
>
> A literal `cf_click_id` means the token lost its braces. An empty value means Traffic Company read the empty `click_id=` from the link. See [The empty click ID on Traffic Company links](#the-empty-click-id-on-traffic-company-links).

> **The payout differs from the offer's listed payout**
>
> That's expected with direct links when targeting is off, with the smart link, and with the conversion optimizer on. If amounts look converted, the builder's **Currency** and ClickFlare's **Payout currency** don't match. Check that `payout` is mapped to **Reward** and that the offer's payout is **Auto** in ClickFlare. See [Payouts and the smart link](#payouts-and-the-smart-link).

> **Only one of several conversions shows in ClickFlare**
>
> The postback has no `txid`, or `txid` is mapped to a variable that repeats. Map `txid` to **Unique conversion ID**. Conversions that were already merged are not restored.

***

## FAQ

> **Can I pass more data to Traffic Company?**
>
> The postback builder notes that custom parameters can be added to your promotion URL to track any data you like. Other trackers pass `sub_id` and `pi`. The details are in Traffic Company's technical documentation, which is behind the login, so check there or ask your affiliate manager before relying on a parameter. Keep `click_id` for the ClickFlare click ID.

> **My account stopped working**
>
> Traffic Company suspends accounts after 2 months of inactivity. Ask your affiliate manager how to get it reactivated.

> **Can I send the conversion back to my traffic source?**
>
> Yes. Once ClickFlare records the Traffic Company conversion, it can send it to the traffic source through the traffic source's postback or conversion API integration. Nothing changes on the Traffic Company side.

***

## Related

> **[Macro reference](/docs/en/integrations/click-id-and-postback-macros.md)**
>
> Every network's values

> **[Postback parameters](/docs/en/tracking/click-flare-parameters-in-postback-urls.md)**
>
> click\_id, payout, txid

> **[Postback issues](/docs/en/tracking/troubleshooting-s2s-postback-url-in-clickflare.md)**
>
> Troubleshoot S2S


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.