
At a glance
How it works
1
MediaGo sends the click
A visitor clicks your ad. MediaGo opens your landing page URL with your tracking string attached and fills in its macros: the tracking ID, the cost of the click, the ad, the asset, the site and other details.
2
ClickFlare stores the MediaGo tracking ID
ClickFlare saves the value of
TRACKING_ID 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 MediaGo
ClickFlare fires the MediaGo postback, replacing
{external_id} with the stored tracking ID, {trackingField1} with the ad ID and {payout} with the revenue. MediaGo matches it to the original click.The mirror to keep straight: in the campaign URL you write ClickFlare’s parameter (
TRACKING_ID) and MediaGo’s macro (${TRACKING_ID}). The template does this for you. In the postback URL you write MediaGo’s parameter (trackingid) 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.
- Know your MediaGo account name. It goes into the postback, so MediaGo support can find your requests in their logs.
- Decide which conversion type MediaGo should count. MediaGo labels each conversion with a type (purchase, lead, registration…) and decides from a flag whether it counts in the main Conversions column. If your funnel has several steps, decide now which one is final. See Tracking several events.
Step 1 – Create the campaign and the MediaGo traffic source
- Go to Campaigns and click New.
- In Traffic Source, open the dropdown and click + New Traffic Source.
- Type
mediagoin the search box and select the MediaGo template. - Enter a Name, for example
MediaGo. - Leave Cost currency on USD unless your MediaGo account is billed in another currency.

SITE_ID and PUBLISHER_NAME show which placements convert, so you can block or bid on sites in MediaGo. AD_ID and ASSET_ID show which creatives work.
To pass more MediaGo data, click Add Parameter, give it a name and parameter, and enter the MediaGo macro as the TS Token. ClickFlare assigns the next free tracking field. MediaGo also offers ${CAMPAIGN_NAME}, which the template leaves out.
Step 2 – Set up the postback
The postback is what sends conversions to MediaGo. It lives on the traffic source, so every campaign that uses this MediaGo traffic source sends conversions the same way.What MediaGo’s postback expects
MediaGo documents one postback endpoint with these parameters:
MediaGo’s conversion types:
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}), the ad ID ({trackingField1}) and the payout ({payout}), all as ClickFlare tokens.
-
Replace the three
REPLACEvalues:conversiontype=REPLACE: the number for your conversion, for example8for Purchase or10for Lead.includeintotalconversion=REPLACE:1for your final conversion.accountname=REPLACE: your MediaGo account name.
- 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 MediaGo traffic source selected.
Step 3 – Finish the campaign and copy its URL
- Name the campaign.
- Set the Cost Model to Not Tracked, so ClickFlare uses the cost MediaGo passes. See Cost.
- Choose Redirect or Direct tracking. Redirect is the usual choice for MediaGo.
- 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.
TRACKING_ID=${TRACKING_ID} and SITE_ID=${SITE_ID}.
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 MediaGo.
See Creating a Campaign in ClickFlare.
Step 4 – Create the campaign in MediaGo
MediaGo takes the URL in two parts. Its Tracking field cannot contain?, @, #, /, spaces or line breaks, so you split the ClickFlare campaign URL at the ?.
- In MediaGo, click Create Ad in the navigation bar and set up the campaign as usual.
- In the Landing page URL field, paste the part of the ClickFlare campaign URL before the
?. - On the Create Ad Set page, scroll to the Tracking field at the bottom and paste the part after the
?. Don’t include the?itself. - Save the campaign and submit it for review.
CPC=${CPC} and TRACKING_ID=${TRACKING_ID}, joined by &. Check that the tracking string still contains TRACKING_ID=${TRACKING_ID} after pasting.
MediaGo adds the tracking string to the landing page URL and replaces each ${...} macro when the ad is clicked.
Step 5 – Test the integration
- Once the ad is live, click it yourself and look at the URL that opens. No
${...}text should remain, andTRACKING_IDshould hold a long alphanumeric value. - In ClickFlare, check that the visit shows up in the campaign with the cost and tracking fields filled.
- Complete the offer the way a real visitor would.
- In ClickFlare, go to Logs → Postback Status and filter by the campaign. Open the postback to
sync.mediago.ioand check thattrackingidholds the tracking ID, and thatconversiontype,includeintotalconversionandaccountnamehold your values, notREPLACE. - In MediaGo, check that the conversion appears in the dashboard under the expected conversion type, and in the total if you sent
1.
Tracking several events
MediaGo can record several funnel steps, for example a lead and a purchase. Each step needs its own postback with its ownconversiontype. Send intermediate steps with includeintotalconversion=0 and only the final step with 1. Otherwise every step counts as a conversion in MediaGo and your conversion rate is inflated.
- In ClickFlare, create a custom conversion for each step, for example
leadandpurchase. - On the MediaGo traffic source, click + Another postback URL once per extra event.
- Map each postback to its ClickFlare event:
leadto theconversiontype=10URL,purchaseto theconversiontype=8URL. - Test each event and check it in Logs → Postback Status.
Rules for multi-event postbacks
Rules for multi-event postbacks
- One postback per event. Don’t combine types in one URL.
- Use the numbers from MediaGo’s conversion type table. Other values are not documented.
- Only the final step gets
includeintotalconversion=1. Intermediate steps still show in their own conversion type column. - Keep
trackingid={external_id}in every postback.
Sending only one event
Sending only one event
If MediaGo 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 MediaGo.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 per click. The Cost row sends MediaGo’s${CPC} macro, the CPC of the ad, 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.
For exact spend, add ClickFlare’s MediaGo cost integration. It pulls cost from MediaGo’s API every hour. You need a MediaGo API token, which you request from your MediaGo account manager or support. Once the integration exists, select it under Cost Integration on the MediaGo traffic source, and set the integration’s timezone to match your MediaGo account. See MediaGo Cost Integration.
Don’t create several cost integrations with the same MediaGo API token. Parallel requests can hit MediaGo’s API rate limit.
Delayed revenue
If you run search arbitrage (RSOC or AFD) behind MediaGo, the feed reports revenue hours or days after the click. To pass that revenue to MediaGo once it arrives, see Sending Delayed Revenue to Traffic Sources.Troubleshooting
MediaGo doesn't record the conversion
MediaGo doesn't record the conversion
- The tracking string in MediaGo’s Tracking field is missing
TRACKING_ID=${TRACKING_ID}, or the macro was edited. Copy it from the ClickFlare campaign URL again. - The postback uses MediaGo’s
${TRACKING_ID}instead of ClickFlare’s{external_id}. MediaGo’s macros only work in the click URL, not in the postback. - The External ID row was removed from the traffic source.
- A
REPLACEvalue is still in the postback.
Conversions show in ClickFlare but not in MediaGo
Conversions show in ClickFlare but not in MediaGo
- Traffic source postback URL is off on the MediaGo 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.
- Check Logs → Postback Status: a failed request shows the status code MediaGo returned.
Conversions appear under a type column but not in the total
Conversions appear under a type column but not in the total
The postback sends
includeintotalconversion=0. Change it to 1 for your final conversion.MediaGo rejects the tracking string, or macros stay unreplaced
MediaGo rejects the tracking string, or macros stay unreplaced
- The Tracking field contains a
?,/,#,@or space. Paste only the part of the campaign URL after the?, and put the rest in Landing page URL. - The URL was edited after copying. Paste it from ClickFlare unchanged. See Traffic Source Tokens Arriving Empty.
Times in the BID_TIME_STAMP column look off
Times in the BID_TIME_STAMP column look off
${BID_TIME_STAMP} is in UTC+8. Convert it before comparing with ClickFlare’s visit times.FREQUENTLY ASKED QUESTIONS
Q1: Can I use the same MediaGo traffic source for all my MediaGo campaigns?A1: Yes. The postback is set once on the traffic source and every campaign using it sends conversions the same way. Create a second MediaGo traffic source only if a campaign needs a different postback, for example a different conversion type.
Q2: Why is itA2: They are two halves of the same value. ClickFlare reads MediaGo’s tracking ID from its ownTRACKING_IDin the campaign URL andtrackingidin the postback?
TRACKING_ID parameter. MediaGo expects it back in its own trackingid parameter. Change neither.
Q3: Do I need both the ${CPC} macro and the cost integration?
A3: No. The macro gives you cost per click as soon as traffic starts. The integration pulls spend from MediaGo’s API every hour and is the more exact of the two. Use the integration if you can.
Q4: Should I use Redirect or Direct tracking with MediaGo?A4: Redirect is the usual choice. Use Direct only if MediaGo must see your lander’s domain as the destination. See Direct Campaign Tracking.
Q5: What if I leave accountname out?
A5: MediaGo marks it as recommended, not required. The conversion still counts. MediaGo support uses it to find your requests in their logs, so keep it if you can.
Related
MediaGo cost integration
Pull your MediaGo spend into ClickFlare automatically.
Traffic source postbacks
Every token you can use in a postback.
Custom conversions
Split leads and sales into separate events.
Conversions not showing
The general checklist when postbacks don’t arrive.