All networks
MGID logo
Tracking reference · Native

MGID tracking tokens & macros

On MGID, your spend is spread across thousands of publisher widgets, and the network already passes a click id back to your tracker on every visit. Append the macros below to your destination URL and ValidVisit attributes every visit to the exact widget that served it, then scores that traffic 0-100 for quality.

Cross-check any macro against the network’s official documentation. MGID official docs →

4
MGID macros mapped to attribution
2
required for attribution
no-hop
one script, no link rewriting
0–100
quality score on every visit

MGID fills the curly-brace macros at click time, so attribution is just a matter of which tokens you append. The required {click_id} gives each visit a unique, network-issued identifier that ValidVisit ties back to MGID, while {widget_id} is the token that actually names the publisher widget your click came from. Add {campaign_id} (required) to separate campaigns and {teaser_id} if you also want to see which creative pulled the click. These are plain URL parameters, so MGID's macros resolve to real values automatically once the link goes live.

Granularity at the {widget_id} level is what makes the data actionable: instead of an average across the whole campaign, you see a 0-100 quality score for each individual widget, so the invalid traffic and bots hiding inside one or two bad widgets stop dragging down the rest. ValidVisit only reports and scores after the click arrives, it never blocks or auto-excludes anything. When a widget scores poorly you act in MGID yourself, opening the campaign's Widgets tab and using Stop / Block widget to shut off the worst sub-sources (or blacklist the whole site).

MACRO MAP

MGID macro → ValidVisit param

Campaign ID *campaign
MGID macro
{campaign_id}
ValidVisit param
vv_campaign_id
Example
55501
Teaser (Creative)creative
MGID macro
{teaser_id}
ValidVisit param
vv_creative_id
Example
99012
Widget (Publisher)publisher
MGID macro
{widget_id}
ValidVisit param
vv_publisher_id
Example
33044
Click ID *click
MGID macro
{click_id}
ValidVisit param
vv_click_id
Example
ck_77

* required for MGID attribution.

TRACKING URL

Ready-to-use MGID tracking URL

mgid tracking URL
https://yoursite.com/landing
?utm_source=mgid
&utm_medium=native
&vv_campaign_id={campaign_id}
&vv_creative_id={teaser_id}
&vv_publisher_id={widget_id}
&vv_click_id={click_id}

Append these params to your landing-page URL — MGID fills the macros at click time, so every visit arrives attributed and ready to score. No funnel hop.

Found a bad widget? Exclude it in MGID

Buyer checks the offending widget UIDs in the Widget optimization tab and clicks the pause/stop icon to exclude them, or bulk-uploads a CSV of UIDs via Import → Widget Blocklist (max 1,000 widgets per import).

Campaign → Widget optimization tab (MGID Ads dashboard); also Rules-Based Optimization for auto-blocking
Step-by-step →
FAQ

MGID tracking token FAQs

Which token tells me which publisher the traffic came from?+

{widget_id}. MGID widgets are the publisher placements your ads run on, so {widget_id} is the token ValidVisit scores when you want to judge a sub-source. {teaser_id} identifies the creative and {campaign_id} the campaign, but the widget is the unit you act on.

Do I need a funnel hop or click tracker to use these?+

No. These are ordinary URL parameters appended to your destination link. MGID substitutes the real values into the curly-brace macros at click time, so {click_id} and {widget_id} arrive populated without any extra hop.

Where do I act once ValidVisit flags a bad widget?+

In MGID, not in ValidVisit. ValidVisit only reports the score; you open the campaign's Widgets tab and choose Stop / Block widget for the widgets scoring poorly, or blacklist the whole site if needed.

Is MGID traffic real? See how ValidVisit scores every MGID click for bots and invalid traffic.
arb-traffic.example25
zone 830266
home-journal.example93

Score every MGID click — and find the fake ones.

See which MGID publishers and placements send real buyers vs. bots.

Just your email · no card · unsubscribe anytime · privacy policy

Free trial at launch · just your email

One script · no cookies · no fingerprinting · raw IP never stored