
At a glance
How it works
1
TrafficJunky sends the click
A visitor clicks your ad. TrafficJunky opens your ClickFlare campaign URL and fills in its macros: the click ID in
ACLID, plus the campaign, site, spot, location, banner and ad creative.2
ClickFlare stores the TrafficJunky click ID
ClickFlare saves the value of
ACLID as the visit’s External ID 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 TrafficJunky
ClickFlare fires the TrafficJunky postback, replacing
{external_id} with the stored TrafficJunky click ID. TrafficJunky matches it to the original click and credits the conversion to your tracker.The mirror to keep straight: in the campaign URL you write ClickFlare’s parameter (
ACLID) and TrafficJunky’s macro ({ACLID}). The template does this for you. In the postback URL you write TrafficJunky’s parameter (aclid, lowercase) and ClickFlare’s token ({external_id}).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 tracker in TrafficJunky. Its
aandmember_idvalues go into the postback URL. You create it in Step 2. - Decide which conversions TrafficJunky should receive. If your funnel has several steps (sign-up, then sale), decide now whether to send one event or several. See Tracking several events.
Step 1 – Create the campaign and the TrafficJunky traffic source
- Go to Campaigns and click New.
- In Traffic Source, open the dropdown and click + New Traffic Source.
- Type
trafficjunkyin the search box and select the TrafficJunky template. - Enter a Name, for example
TrafficJunky. - Leave Cost currency on USD unless your TrafficJunky account is billed in another currency.

SiteName and SpotID are the ones you will use most: TrafficJunky sells by spot, so they tell you which sites and spots convert and where to raise or drop your bids. AdID tells you which creative wins.
The template has no Cost row: TrafficJunky passes no cost macro. See Cost.
To pass more TrafficJunky data, click Add Parameter, give it a name and parameter, and enter the TrafficJunky macro as the TS Token. ClickFlare assigns the next free tracking field. Ten of the twenty tracking fields are still free. Check which macros your TrafficJunky account offers before adding them.
Step 2 – Set up the postback
The postback is what sends conversions to TrafficJunky. It lives on the traffic source, so every campaign that uses this TrafficJunky traffic source sends conversions the same way.Create a conversion tracker in TrafficJunky
- In TrafficJunky, open Tools and go to Conversion Tracker. Click New Tracker.
- Enter a name, for example
ClickFlare, and select the event type you want to track. - Click Add Tracker.
- Find the tracker in the list and click View in its Invocation Code column.
- Open the Postback URL tab. TrafficJunky generates the postback for this tracker, in this format:
- Copy the values of
aandmember_id. You need both.
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. The template’s postback appears:
{external_id}) in TrafficJunky’s aclid parameter. It does not send a payout.

- Replace the first
REPLACE(aftera=) with your tracker’savalue. - Replace the second
REPLACE(aftermember_id=) with yourmember_id. - To send the payout, add
&ctv={payout}. To send ClickFlare’s transaction ID, add&cti={txid}. The result:
- Compare it with the URL TrafficJunky generated. If TrafficJunky’s starts with
https://ads.trafficjunky.net/ctinstead of.../tj_ads_pt, change the start of the template URL to match it. Keep the parameters as above. - 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 TrafficJunky traffic source selected.
Step 3 – Finish the campaign and copy its URL
- Name the campaign.
- Set the Cost Model to CPC and enter your expected cost per visit. See Cost.
- Choose Redirect or Direct tracking. Redirect is the usual choice for TrafficJunky banners.
- 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.
ACLID={ACLID} and SpotID={SpotID}.
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 TrafficJunky.
See Creating a Campaign in ClickFlare.
Step 4 – Create the campaign in TrafficJunky
- In TrafficJunky, start a new campaign and fill in the required details: format, spots, targeting and bids.
- Paste the ClickFlare campaign URL as the ad’s Target URL.
- Save the campaign. It runs once your account has funds and the campaign passes TrafficJunky’s approval.
{...} macro when the ad is clicked.
Step 5 – Test the integration
There is no TrafficJunky test tool that fires a test conversion, so test with the first live clicks.- Launch the campaign with a small budget.
- In ClickFlare, check that visits arrive and that the Spot ID and Site Name columns are filled. If they show
{SpotID}or are empty, the URL in TrafficJunky was edited. - Complete the offer the way a real visitor would, or wait for the first real conversion.
- In ClickFlare, go to Logs → Postback Status and filter by the campaign. A successful request to
ads.trafficjunky.netconfirms ClickFlare sent it. Check thata,member_idandaclidall carry real values. - In TrafficJunky, check the campaign’s conversion stats for the tracker. The conversion appears once TrafficJunky has processed it.
Tracking several events
In TrafficJunky, each conversion tracker has its own invocation code. To track a sign-up and a sale separately, create one tracker per step and send each event to its own tracker:- In TrafficJunky, create a conversion tracker for each step and copy each tracker’s
avalue from its invocation code. - In ClickFlare, create a custom conversion for each step, for example
signupandpurchase. - On the TrafficJunky traffic source, click + Another postback URL once per extra event.
- Map each postback to its ClickFlare event: the
signupcustom conversion to the sign-up tracker’s URL,purchaseto the sale tracker’s URL. - Test each event with live traffic and check Logs → Postback Status for each.
Rules for multi-tracker postbacks
Rules for multi-tracker postbacks
- One postback per tracker. The
avalue decides which tracker TrafficJunky credits. member_idis the same in every postback. Onlyachanges.- Add
&ctv={payout}only to events that carry revenue. - Compare each URL with the tracker’s own invocation code before you save.
Sending only one event
Sending only one event
If TrafficJunky should only see your final sale, keep a single postback and map it to that event. Earlier steps (sign-ups, add to carts) still show in ClickFlare. They just don’t reach TrafficJunky.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 no cost. TrafficJunky has no cost macro in the template’s set, so ClickFlare can’t read the price of each click from the URL. On the campaign, set the Cost Model to CPC and enter your cost per visit. TrafficJunky bids on CPM, so work it out from your stats: your spend divided by the number of visits. For formats where one impression is about one visit, your CPM bid divided by 1,000 is a good start.Don’t use Not Tracked with this template. With no cost in the URL and no cost integration, every visit is recorded at zero cost, and your ROI looks better than it is.
Delayed revenue
If revenue reaches ClickFlare hours or days after the click, for example from a search feed or rebills, you can still pass it to TrafficJunky once it arrives. See Sending Delayed Revenue to Traffic Sources.Troubleshooting
TrafficJunky shows no conversions
TrafficJunky shows no conversions
- One or both
REPLACEplaceholders are still in the postback. Check Logs → Postback Status for the URL ClickFlare actually sent. - The
avalue belongs to a different tracker, or was copied with extra characters. - The campaign URL in TrafficJunky is missing
ACLID={ACLID}, or the macro was edited. Copy the URL from ClickFlare again. - The postback uses TrafficJunky’s
[ACLID]instead of ClickFlare’s{external_id}. ClickFlare sends[ACLID]as literal text. - The
externalIdrow was removed from the traffic source.
Conversions show in ClickFlare but not in TrafficJunky
Conversions show in ClickFlare but not in TrafficJunky
- Traffic source postback URL is off on the TrafficJunky traffic source.
- Disable sending postbacks to traffic source is on in the campaign.
- The postback is mapped to a different event than the one the conversion logged. Check Logs → Event Logs to see which event was recorded.
- Your TrafficJunky invocation code uses
https://ads.trafficjunky.net/ctand the template’stj_ads_ptpath is not accepted. Switch the start of the URL to match the invocation code. - Check Logs → Postback Status: a failed request shows the status code TrafficJunky returned.
TrafficJunky shows conversions with no value
TrafficJunky shows conversions with no value
The template’s postback sends no payout. Add
&ctv={payout} at the end of the postback.Cost column shows zero
Cost column shows zero
The campaign’s Cost Model is Not Tracked, and the template passes no cost. Switch to CPC with your cost per visit, or upload your TrafficJunky spend with a manual cost upload.
Spot or site columns are empty
Spot or site columns are empty
The macros were not replaced, usually because the URL was edited or the macro names lost their exact capitalization. Keep each macro’s capitalization exactly as the template writes it, for example
{SpotID}, not {spotid}. Paste the campaign URL from ClickFlare unchanged. See Traffic Source Tokens Arriving Empty.FREQUENTLY ASKED QUESTIONS
Q1: Can I use the same TrafficJunky traffic source for all my TrafficJunky campaigns?A1: Yes. The postback is set once on the traffic source and every campaign using it sends conversions to the same tracker. Create a second TrafficJunky traffic source only if some campaigns should report to a different tracker.
Q2: TrafficJunky’s default is a tracking pixel. Do I need it?A2: No. The pixel is for sites where you can place TrafficJunky’s code. With ClickFlare you use the Postback URL tab of the same invocation code instead, and ClickFlare calls it server to server. Don’t run both, or conversions can count twice.
Q3: Why is itA3: They are two halves of the same value. ClickFlare reads TrafficJunky’s click ID from its ownACLIDin the campaign URL andaclidin the postback?
ACLID parameter. TrafficJunky expects it back in its own aclid parameter. Keep both exactly as the template writes them.
Q4: Should I use Redirect or Direct tracking with TrafficJunky?A4: Redirect is the usual choice and works with every TrafficJunky format. Use Direct only if TrafficJunky must see your lander’s domain as the destination. See Direct Campaign Tracking.
Q5: Do I need to send the payout?A5: It is optional, but recommended. With
&ctv={payout}, TrafficJunky shows the value of each conversion next to your spend, so you can judge spots inside TrafficJunky as well as in ClickFlare.
Related
Traffic source postbacks
Every token you can use in a postback.
Custom conversions
Split sign-ups and sales into separate events.
Cost models
How CPC, CPA and RevShare costs are calculated.
Manual cost upload
Correct spend when no cost is passed.