> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Configure MGID Destination in Upstack Data

> Add the MGID destination in Upstack Data: pick a Tracking Method, enter your Client ID, and check that events reach MGID.

> [!TIP]
>
> * In Upstack, open **Destinations**, click **New Destination**, then click **Connect** next to **MGID**.
> * Enter your **Client ID**.
> * Leave **Tracking Method** on **Browser + Server**, and turn on **Send Revenue Value**.
> * Click **Create Destination**.

## Which Tracking Method should I pick?

Pick **Browser + Server**. The postback doesn't depend on the visitor's browser, so MGID still gets checkouts and purchases when an ad blocker stops the MGID pixel.

| Tracking Method | What Upstack does |
| - | - |
| **Browser + Server** (default) | Loads the MGID pixel on your store and also sends `upstackcheckout` and `upstackpurchase` postbacks from Upstack's servers |
| **Server** | Sends postbacks only. The MGID pixel doesn't load on your store. |
| **Browser** | Loads the MGID pixel on your store only |

## How do I add the MGID destination?

1. Sign in to [Upstack Data](https://app.upstackdata.com) and open **Destinations**.
2. Click **New Destination**.
3. Under **Available**, find **MGID** and click **Connect**.
4. Enter your **Client ID**. See [How to Find your MGID Client ID](https://docs.upstackdata.com/destinations/catalog/mgid/how-to-find-mgid-client-id.md).
5. Under **Tracking Method**, leave **Browser + Server** selected.
6. Turn on **Send Revenue Value** to include the order value in `upstackpurchase` postbacks. It shows when **Tracking Method** includes **Server**, and is off by default.
7. Click **Create Destination**.

Then create the goals in MGID. See [How to Create MGID Goals in MGID Ads](https://docs.upstackdata.com/destinations/catalog/mgid/how-to-create-mgid-goals.md).

> [!WARNING]
>
> Connect one MGID destination per store. With two MGID destinations on the same store, Upstack loads only the first one's MGID pixel, and sends every postback for both.

## How do I check the MGID destination is working?

1. Click one of your live MGID ads and check that the landing page URL contains `adclid`.
2. Place a test order on that page.
3. In Upstack, open the **Events Debugger** and check that the order shows **MGID Server Event Tracked**.

| What you see | What it means |
| - | - |
| The landing page URL has no `adclid` | Upstack has no MGID click ID, so it sends pixel events and no postbacks. Check that the ad links straight to your store and not through a redirect that drops URL parameters. |
| **Tracking Method** is **Browser** | Upstack sends no postbacks, only MGID pixel events. |
| A purchase has no MGID entry, though the visitor came from an MGID ad | The order is a draft order, a subscription renewal, a Loop, Returnly or Happy Returns exchange, a Matrixify import or a POS order, or the destination's order source or order tag filters exclude it. Upstack doesn't send these. |
| The **Events Debugger** shows **MGID Server Event Track Failed** | MGID refused the postback. Upstack doesn't resend refused postbacks. It retries rate limits and MGID outages. |
| Upstack shows **MGID Server Event Tracked**, but MGID shows nothing | Check that the campaign has a postback goal named exactly `upstackcheckout` or `upstackpurchase`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.