Black Friday came early.Early-access pricesuntil Nov 8.Black Friday: early-access prices until Nov 8.Early-access price ends in0d00h00m00sClaim the deal
The MGID template captures the click ID, click price and teaser, widget and campaign macros. ClickFlare posts conversions with revenue to a.mgid.com for up to three goals per campaign, and the cost integration pulls actual spend by campaign, content and publisher.
widget_id shows which publisher placements convert, so you can block them or adjust their bids in MGID.
Cost from the first click
click_price passes each click's cost in the URL, so ROI shows as soon as traffic starts.
Exact spend when it matters
MGID discounts some clicks after the fact. The cost integration pulls actual spend from MGID's API and takes priority over the URL value.
How it works
From ad click to profit per campaignattributed revenueattributed salesa matched conversion
01
Your ad
Visitor clicks
Ad on MGID
02
ClickFlare
Click recorded
A unique cf_click_id is created
03
Your offer
Conversion
Lead, sale or custom event
04
ClickFlare
Sent back to MGID
Through the Conversion API or postback
05
Cost API
Spend pulled in
MGID cost matched to each campaign
01
Your ad
MGID click
Macros fill the tracking URL
02
ClickFlare
Click recorded
Zone, site and device data stored
03
Offer or lander
Visitor converts
On your page or the offer
04
ClickFlare
Conversion logged
With payout and event type
05
Postback
Reported to MGID
So its optimization sees the result
01
Your ad
Visitor clicks
Any traffic source
02
ClickFlare
Click recorded
A unique cf_click_id is created
03
Your article
Keyword block
Click ID passed to the feed
04
Results page
Paid click
Conversion fired to ClickFlare
05
MGID API
Revenue matched
Pulled on a schedule and reconciled
01
Your ad
Visitor clicks
Any traffic source
02
ClickFlare
Click recorded
cf_click_id passed to the offer
03
MGID
Offer or call
The network tracks the action
04
MGID
Conversion
Lead, sale, call or rebill
05
Postback
Payout in ClickFlare
Matched to the original click
01
Your ad
Visitor clicks
Any traffic source
02
ClickFlare
Click recorded
A unique cf_click_id is created
03
MGID
Store or funnel
Click ID kept through checkout
04
Events
View, cart, checkout
Each step tracked
05
ClickFlare
Purchase recorded
Order value matched to the ad
Native ad network
Client ID and goal name: the two values you replace
The postback URL MGID gives you holds your client ID after /postback/ and the goal name in e. Put both into the ClickFlare template. ClickFlare then sends the stored click ID in c and the payout in r.
A main goal plus two additional goals
Unique or non-unique counting per goal
Test clicks come from the ad preview
Today, one campaign
example
Spend pulled from MGID
cost
$412.30
Conversions recorded
today
38
Sent back to MGID
per event
38/38
Profit
campaign
$227.70
Example numbers. Cost and conversions sit in the same report row.
From the MGID template in ClickFlare. Use them as report columns and rules.
Revenue for one click
example
Paid click
day 0
$0.00
First revenue pull
+1h
$0.41
Scheduled updates
next days
$0.58
Final pull
last sync
$0.62
Example amounts. Sync timing for MGID is in the facts above.
Events for one click
example
Lead
day 0
$0.00
Sale
day 0
+$40.00
Upsell
day 1
+$15.00
Refund
day 9
−$15.00
Example events. Each one arrives by postback and is matched to the click.
One visitor's path
example
Product view
step 1
—
Add to cart
step 2
—
Checkout
step 3
—
Purchase
step 4
$68.00
Example order. Each event is tied to the ad that brought the visitor.
3
Goals per campaign
7
Tracking fields captured
2.3B
Events tracked
Setup
Connected in four steps
You need an MGID account with a conversion goal, your MGID email, password, Client API ID and access token for cost, and a ClickFlare account.
Add a goal in MGID In the MGID campaign, open Conversion tracking, choose Postback on the Tracking settings tab and add a goal such as purchase. Click Get Postback URL and note the client ID and goal name.
Add the MGID traffic source In the campaign editor, add a traffic source from the MGID template and set Cost currency to your MGID currency. Turn on the postback and replace YOUR_CLIENT_ID and REPLACE_EVENT_NAME.
Launch and test Paste the campaign URL into each MGID ad, with click_id appearing only once. Click the ad from MGID's preview, convert, and check the Test conversions column after 5 to 15 minutes.
Pull actual spend Add the MGID cost integration with your email, password, Client API ID, access token and a matching timezone. Select it on the traffic source and keep Cost Model on Not Tracked.
{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Does ClickFlare integrate with MGID?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. ClickFlare has an MGID traffic source template with an S2S postback and per-click cost, plus a cost integration that pulls spend from MGID's API."}}, {"@type": "Question", "name": "How many conversion goals can I send to MGID?", "acceptedAnswer": {"@type": "Answer", "text": "Up to three per campaign: a main goal and two additional ones. Each goal needs its own postback with its name in e."}}, {"@type": "Question", "name": "Why click_id in the URL and c in the postback?", "acceptedAnswer": {"@type": "Answer", "text": "They carry the same value. ClickFlare reads MGID's click ID from click_id, and MGID expects it back in c. Change neither."}}, {"@type": "Question", "name": "Why doesn't my cost match MGID?", "acceptedAnswer": {"@type": "Answer", "text": "click_price is an estimate and doesn't account for clicks MGID discounts later. Connect the MGID cost integration and match its timezone to your account."}}, {"@type": "Question", "name": "Do I keep the click_price row if I use the cost integration?", "acceptedAnswer": {"@type": "Answer", "text": "There's no harm in keeping it. With Cost Model on Not Tracked, the integration takes priority. If you disconnect it, the URL cost takes over again."}}, {"@type": "Question", "name": "Can I rename my MGID goals later?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, but update the e value in the ClickFlare postback at the same time, or it stops matching."}}]}
Your MGID campaigns, tracked widget by widget.
Goal-level postbacks and actual spend. Free 14-day trial and free migration from any tracker.