# MGID tracking tokens and postback URL

> Every MGID tracking token, the click ID, the cost macro and the S2S conversion postback, ready to copy into any tracker.

HTML version: https://www.proferex.com/tracking-tokens/mgid

MGID sells native and video ads. (Source: https://www.mgid.com/advertisers)

## Click ID

Macro: `{click_id}`. Pass it as `externalid` and send it back in the postback.

## Cost per visit

Macro: `{click_price}`, passed as `cost`.

## Tracking tokens

| What it tracks | Parameter | Macro |
|---|---|---|
| Campaign ID | `campaign_id` | `{campaign_id}` |
| Teaser ID | `ad_id` | `{teaser_id}` |
| Widget ID | `widget_id` | `{widget_id}` |
| Category ID | `category_id` | `{category_id}` |

## Example tracking link

```
https://track.yourdomain.com/your-campaign?externalid={click_id}&cost={click_price}&campaign_id={campaign_id}&ad_id={teaser_id}&widget_id={widget_id}&category_id={category_id}
```

## Conversion postback

```
https://a.mgid.com/postback/YOUR_CLIENT_ID?c={externalid}&e=YOUR_EVENT_NAME&r={payout}
```

`{externalid}` is the click ID; `{payout}` is the conversion value.
Replace `YOUR_CLIENT_ID` and `YOUR_EVENT_NAME` with your MGID account values.

Where to find it in MGID: In MGID go to Campaign > Tracking settings > Conversion tracking > Postback, create a goal (its name becomes YOUR_EVENT_NAME), choose Manual setup and click Get Postback URL to see your client ID.

## FAQ

### What ad formats does MGID sell?

MGID sells native and video ads. Every format uses the same tracking tokens and postback.

### What is the MGID click ID macro?

It's {click_id}. Add it to your tracking link, and your tracker sends it back to MGID in the postback when the visitor converts.

### Does MGID pass the cost of each visit?

Yes, in {click_price}. Add it to your link and your tracker can show profit without importing spend.

### What is the MGID postback URL?

https://a.mgid.com/postback/YOUR_CLIENT_ID?c={externalid}&e=YOUR_EVENT_NAME&r={payout}. Replace YOUR_CLIENT_ID and YOUR_EVENT_NAME with the values from your MGID account. In MGID go to Campaign > Tracking settings > Conversion tracking > Postback, create a goal (its name becomes YOUR_EVENT_NAME), choose Manual setup and click Get Postback URL to see your client ID.

### How do I track MGID in Proferex?

In Traffic Sources, click New and pick MGID from Templates. The click ID, tokens and postback are filled in for you. Then create a campaign and copy its link into MGID.

## Set it up in Proferex

In Traffic Sources, click New and pick MGID from Templates: the click ID, tokens and postback are filled in. Then create a campaign and copy its link into MGID.

All traffic sources: https://www.proferex.com/tracking-tokens/index.md
