MGID macros: the full list for tracking

November 19, 2026 · Hoplytic team · 2 min read

MGID fills in macros on every click, so your tracker knows which site, widget and campaign it came from. Here is the full list we use, where it comes from, and how to set it up.

Short answer: MGID's click ID macro is {click_id}. Other macros: {widget_id} (widget (placement)), {teaser_id} (ad).

MGID macros

Parameter on your linkMGID macroFilled with
click{click_id}Click ID
site{widget_id}Widget (placement)
ad{teaser_id}Ad

The parameter names on the left are your choice; the macros on the right must be copied exactly, brackets included.

https://go.yoursite.com/vpn-offer?click={click_id}&site={widget_id}&ad={teaser_id}

MGID replaces each macro when someone clicks. Your tracker stores the values, creates its own click ID, and passes it to the affiliate network's sub-ID so the sale can be matched back to this exact ad.

Sending conversions back to MGID

Paste MGID's postback URL into your tracker: each sale is reported back with the MGID click ID ({click_id}), so its bidding and auto-optimisation work on real sales.

Where this list comes from

Checked against MGID's own documentation (help.mgid.com "tracking link macros") in November 2026. Platforms rename macros now and then: if a value arrives empty or literal, check MGID's current list.

On Hoplytic

Pick MGID in the link maker and these macros are added for you. Reports can then group by any of them, for example campaign → ad → country, with cost, profit and ROAS. See every ad platform's macros or the guide to sub-ID tracking.

Questions people ask

What is the MGID click ID?

Put {click_id} in your tracking link. MGID replaces it with a unique ID for each click, which your tracker stores and sends back with the sale.

Why does my tracker show {click_id} literally instead of a value?

The ad platform didn't fill it in. Usually the macro is misspelled, uses the wrong brackets, or the ad was created before the parameter was added. Copy the macro exactly as MGID writes it and check a live click.

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy