MGID Integration with Yampi (via webhooks)

MGID Settings

  1. In the MGID dashboard, to begin the process of setting up campaign tracking, click Create and then Campaign.

Yampi_NEW_1

2. After filling out the Campaign setup and the Budget and limits sections, proceed to the Conversion tracking section. Then, click Postback.

Yampi_NEW_2

Yampi_NEW_3

3. Insert the following Event Name and then click Get Postback URL.
  • webhook_main (for the main goal)

Yampi_NEW_4

Yampi_NEW_5

Two more goals can be added for additional conversions. Repeat the previous step and insert the following event names.

  • webhook_additional1 (for the additional goal 1)
  • webhook_additional2 (for the additional goal 2)
4. In the Tracking tags section, add the following macro.
  • utm_campaign={click_id}

Yampi_NEW_6

Then, press save


Yampi  Settings

1. In the Yampi admin page, go to Configurações (Settings) and then click Webhooks.

Yampi_NEW_7

Yampi_NEW_8

2. Click Novo webhook (New webhook).

Yampi_NEW_9

3. Name the Event that will be tracked, in this example Pedido Approved (Order Approved). Paste the URL provided from the MGID Dashboard and insert the vendor’s name at the end of the URL.

https://a.mgid.com/postback/webhook?e=webhook_main&vendor=yampi

Yampi_NEW_10

4. Select the Event Pedido Aprovado (Order Approved) mentioned above and click Ver Produtos (Check Products).

Yampi_NEW_11

Yampi_NEW_12

5. Select the desired product to apply the tracking configuration. Then, press Adicionar (Add) and Salvar (Save).

Yampi_NEW_13

Yampi_NEW_14

You are able to create three events with the provided postback URLs from the MGID Dashboard. Below is an example of configured events.

Event 1: Cliente Criado (Client Created)

URL: https://a.mgid.com/postback/webhook?e=webhook_additional1&vendor=yampi

Event 2: Pedido Criado (Order Created)

URL: https://a.mgid.com/postback/webhook?e=webhook_additional2&vendor=yampi

Lastly, contact your manager to perform test conversions and confirm that the tracking set up was successful.