
At a glance
How it works
1
TrafficFactory sends the click
A visitor clicks your ad. TrafficFactory opens your ClickFlare campaign URL and fills in its tokens: the click ID in
tag, the cost in cost, plus the campaign, category, site, zone and targeting details from the template.2
ClickFlare stores the TrafficFactory click ID
ClickFlare saves the value of
tag as the visit’s External ID, records the cost, and redirects the visitor to your lander or offer.3
The conversion reaches ClickFlare
Your affiliate network or store posts the conversion back to ClickFlare, matched on the ClickFlare click ID.
4
ClickFlare posts it back to TrafficFactory
ClickFlare calls TrafficFactory’s conversion URL for the goal, replacing
{external_id} with the stored click ID and {payout} with the revenue. TrafficFactory matches it to the original click and counts it under the goal.The mirror to keep straight: in the campaign URL you write ClickFlare’s parameter (
tag) and TrafficFactory’s token ({conversions_tracking}). The template does this for you. In the postback URL you write TrafficFactory’s parameter (tag) and ClickFlare’s token ({external_id}). The name is the same on both sides. The values that fill it are different.Before you start
- Set up your own tracking domain. Run the campaign and the postback on your own custom domain. Shared domains get flagged by networks and blocked by browsers. See Custom Domains.
- Have an offer ready in ClickFlare, and its affiliate network set up to post conversions back to ClickFlare. See Creating an Offer and Adding an Affiliate Network.
- Create a conversion goal in TrafficFactory. In your TrafficFactory account, go to Campaigns → Conversion Tracking and click NEW CONVERSION GOAL. Each goal has its own goal ID and conversion URL. See Step 2.
- Decide which conversions TrafficFactory should receive. One goal per event. If your funnel has several steps (lead, then sale), decide now whether to send one event or several. See Tracking several events.
Step 1 – Create the campaign and the TrafficFactory traffic source
- Go to Campaigns and click New.
- In Traffic Source, open the dropdown and click + New Traffic Source.
- Type
trafficfactoryin the search box and select the TrafficFactory template. - Enter a Name, for example
TrafficFactory. - Leave Cost currency on USD unless your TrafficFactory account is billed in another currency.

Fill in the Zone ID row
The template’s Zone ID row has a parameter but an empty TS Token. Fill it in:- In the
Zone IDrow, click the TS Token field. - Enter
{zone_id}. - Leave the TS Parameter on
zone_idand the ClickFlare Token on{trackingField10}.
{zone_id} is the ad zone where TrafficFactory showed the ad. It is the main row for blacklists and bid changes, so don’t leave it empty.
Each tracking field becomes a column you can group reports by. To pass more TrafficFactory data, click Add Parameter, give it a name and parameter, and enter the token as the TS Token. ClickFlare assigns the next free tracking field.
Step 2 – Set up the postback
The postback is what sends conversions to TrafficFactory. It lives on the traffic source, so every campaign that uses this TrafficFactory traffic source sends conversions the same way. The TrafficFactory template has no postback URL. When you turn on the postback, the field is empty. You build it from the conversion goal.Create a conversion goal in TrafficFactory
- In TrafficFactory, go to Campaigns → Conversion Tracking and click NEW CONVERSION GOAL.
- Set a Name, for example
Sale. - Choose a Conversion Type, for example Purchase - Credit Card or Lead - Single Opt In. TrafficFactory’s smart bidding uses it.
- Set Conversion Value to Dynamic, so TrafficFactory takes the value you send. Fixed uses one amount you enter. No Value records no revenue.
- Set Count: One Conversion counts one conversion per click, Every Conversion counts each one.
- Set the Conversion Window, how long after the click a conversion still counts. The default is 24 hours. Set it to match your offer, for example 7 or 30 days for a trial that converts later.
- Set the Order. It decides the goal’s column: order 1 shows as G1 in Statistics.
- Click Create.
- Under Select Conversion Tracking Method, choose Conversion Tracking API - S2S. Copy the conversion URL TrafficFactory shows. It has this shape:
CONVERSION_DOMAIN and GOAL_ID are filled in for you. The goal ID is 32 characters, letters a–f and digits.
Add it to the traffic source in ClickFlare
- Back in the New Traffic Source form, scroll to Passing conversion info to traffic source.
- Turn on Traffic source postback URL and paste the conversion URL from TrafficFactory.
- Replace
{conversions_tracking}with ClickFlare’s{external_id}, braces included. - Add
&value={payout}at the end, so TrafficFactory receives the conversion value. - In the dropdown on the left, choose the ClickFlare event that should fire the postback. Keep Conversions to send every conversion. If your final action is a custom conversion (for example
purchase), choose that instead. - Click Save. You are back in the campaign editor with the TrafficFactory traffic source selected.
Pixel tracking
TrafficFactory also offers Pixel Tracking: a script you paste on the page where the conversion happens. It only works on pages you control and doesn’t use ClickFlare’s data. With ClickFlare, use the S2S method. TrafficFactory recommends it too.Step 3 – Finish the campaign and copy its URL
- Name the campaign.
- Set the Cost Model to Not Tracked, so ClickFlare uses the cost TrafficFactory passes. On CPM campaigns, read Cost first.
- Choose Redirect or Direct tracking. Redirect is the usual choice.
- Click Next and, on Destination, add your lander (optional) and your offer.
- Save, open Tracking, select your own tracking domain and copy the campaign URL.
tag={conversions_tracking} and zone_id={zone_id}. If zone_id has no token, go back to Step 1.
If you use a lander, its call-to-action must link to the ClickFlare click URL, not to the offer directly. Otherwise the visit reaches the offer without a ClickFlare click ID, and the conversion cannot be traced back to TrafficFactory.
See Creating a Campaign in ClickFlare.
Step 4 – Create the campaign in TrafficFactory
- In TrafficFactory, create your ad (creative) first.
- Go to Campaigns and create a new campaign. Choose the campaign type, name it and set the bidding type.
- Paste the ClickFlare campaign URL as the ad’s destination URL.
- Add a target: name it, set the targeting options and enter your bid.
- Link your ad to the campaign and save.
tag={conversions_tracking} intact. When you set the destination, TrafficFactory may also offer + ADD TOKENS. You don’t need it: the ClickFlare URL already contains the tokens.
Step 5 – Test the integration
TrafficFactory has no test-conversion button. Test with a real click.- Run a small amount of traffic, or click your own approved ad.
- Complete the offer the way a real visitor would.
- In ClickFlare, open Logs → Event Logs and check that the visit has an External ID. It is a long string. If it is empty or reads
{conversions_tracking}, the campaign URL is wrong. - Go to Logs → Postback Status and filter by the campaign. Check the request to TrafficFactory’s
tag.php. - In TrafficFactory, open Statistics and show the goal’s column (G1, G2…) in the Goals section of the table.
Tracking several events
TrafficFactory tracks each event as its own conversion goal, for example a signup and a sale. Each goal has its own goal ID, so each event needs its own postback.- In TrafficFactory, create a conversion goal for each step. Give them orders 1, 2, 3… so they appear as G1, G2, G3 in Statistics.
- In ClickFlare, create a custom conversion for each step, for example
signupandsale. - On the TrafficFactory traffic source, click + Another postback URL once per extra goal.
- Map each postback to its ClickFlare event:
signupto the signup goal’s URL,saleto the sale goal’s URL.
Rules for multi-goal postbacks
Rules for multi-goal postbacks
- One postback per goal. The goal ID decides where TrafficFactory counts the conversion.
- Set each goal’s Conversion Value to Dynamic if you send
value={payout}. - Statistics can show eCPA per goal. Turn the goal columns on in the Goals section of the table.
- If Dynamic CPA pricing is enabled on your account, the conversion URL also takes your secret key (
skey) and acpavalue. Ask TrafficFactory before using it.
Sending only one event
Sending only one event
If TrafficFactory should only learn from your final sale, keep a single postback and map it to that event. Earlier steps (leads, add to carts) still show in ClickFlare. They just don’t reach TrafficFactory.To send a postback only for some conversions, for example only those above a certain payout, use Event filter under the postback to add conditions.
Cost
The template passes cost. TheCost row sends TrafficFactory’s {actual_cost} token, the actual CPM or CPC paid for each impression or click, and ClickFlare records it as the visit’s cost.
On the campaign, set the Cost Model to Not Tracked so ClickFlare uses the cost passed in the URL.
On CPM campaigns,
{actual_cost} may be a price per thousand impressions, which would make the cost per visit far too high. After launch, compare the Cost column with your TrafficFactory spend. If it doesn’t match, switch the Cost Model to CPC and enter your bid per click. For CPM buying, enter your CPM bid divided by 1,000 as the cost value. A popunder impression is roughly one visit.Delayed revenue
If you run search arbitrage (RSOC or AFD) behind TrafficFactory, the feed reports revenue hours or days after the click. Make sure the goal’s conversion window is long enough. To pass that revenue to TrafficFactory once it arrives, see Sending Delayed Revenue to Traffic Sources.Troubleshooting
TrafficFactory answers ERROR: Tag is invalid! or No tag data.
TrafficFactory answers ERROR: Tag is invalid! or No tag data.
- The campaign URL has no
tag={conversions_tracking}: the External ID row was changed or removed. Restore it and copy the campaign URL again. - The postback still contains
{conversions_tracking}instead of{external_id}. - The campaign URL in TrafficFactory was edited, or
{conversions_tracking}was removed.
Conversions show in ClickFlare but not in TrafficFactory
Conversions show in ClickFlare but not in TrafficFactory
- Traffic source postback URL is off, or still empty. The template has no postback URL: add it as shown in Step 2.
- Disable sending postbacks to traffic source is on in the campaign.
- The goal column is hidden in Statistics. Turn it on in the Goals section.
- The conversion came after the goal’s conversion window.
- The postback is mapped to a different event than the one the conversion logged. Check Logs → Event Logs to see which event was recorded.
- Check Logs → Postback Status for the request and TrafficFactory’s response.
TrafficFactory shows conversions with no value
TrafficFactory shows conversions with no value
&value={payout}is missing from the postback.- The goal’s Conversion Value is No Value or Fixed. Set it to Dynamic.
The Zone ID column is empty
The Zone ID column is empty
The Zone ID row’s TS Token is still empty. Enter
{zone_id} as shown in Fill in the Zone ID row, then copy the campaign URL again. If other columns are empty, the URL was edited or pasted where TrafficFactory doesn’t fill tokens. See Traffic Source Tokens Arriving Empty.FREQUENTLY ASKED QUESTIONS
Q1: Can I use the same TrafficFactory traffic source for all my TrafficFactory campaigns?A1: Yes. The postback is set once on the traffic source and every campaign using it sends conversions the same way. A goal can be used by several campaigns. Create a second traffic source only if a campaign needs different goals.
Q2: Why do I add the postback myself?A2: The template doesn’t include a postback URL. The conversion domain and goal ID come from your TrafficFactory account, so you build the URL once per traffic source in Step 2.
Q3: Why is it tag in both the campaign URL and the postback?
A3: TrafficFactory names its click ID parameter tag in the conversion URL, and the template uses the same name in the campaign URL. The postback side must stay tag.
Q4: Should I use Redirect or Direct tracking with TrafficFactory?A4: Redirect is the usual choice and works with every TrafficFactory format. Use Direct only if TrafficFactory must see your lander’s domain as the destination. See Direct Campaign Tracking.
Q5: TrafficFactory’s help points to EXADS documentation. Is that the same thing?A5: Yes. TrafficFactory’s advertiser platform runs on the EXADS ad server, so EXADS’ advertiser guides describe the same screens: conversion goals, the Conversion Tracking API and the campaign tokens.
Related
Traffic source postbacks
Every token you can use in a postback.
Custom conversions
Split leads and sales into separate events.
Cost models
How CPC, CPA and RevShare costs are calculated.
Conversions not showing
The general checklist when postbacks don’t arrive.