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

# WooCommerce

> How to connect your WooCommerce site to Nemu Dashboard

### Setting Up Webhooks in Nemu Dashboard

1. In the Nemu panel, go to **Settings** > **Webhooks**.

2. Search for **WooCommerce** and click on **Connect**.

<img src="https://mintcdn.com/nemu/SJ5KcESvhmBfB5BO/assets/pages/integracoes/woocommerce/1.png?fit=max&auto=format&n=SJ5KcESvhmBfB5BO&q=85&s=997d87485ed7b63aa9717897fa27745b" alt="" width="3000" height="1584" data-path="assets/pages/integracoes/woocommerce/1.png" />

3. Define a **name** for the webhook and click on **Save**.

<img src="https://mintcdn.com/nemu/TOxL1Pd1rY3qR2KE/assets/pages/integracoes/woocommerce/2.png?fit=max&auto=format&n=TOxL1Pd1rY3qR2KE&q=85&s=9e927bdc743a50ba484bc0a045c45a15" alt="" width="1124" height="738" data-path="assets/pages/integracoes/woocommerce/2.png" />

4. Click the button to **copy** the **webhook URL** generated by Nemu.

<img src="https://mintcdn.com/nemu/TOxL1Pd1rY3qR2KE/assets/pages/integracoes/woocommerce/3.png?fit=max&auto=format&n=TOxL1Pd1rY3qR2KE&q=85&s=92fc78f0da346e58f297f816ec18812b" alt="" width="1008" height="650" data-path="assets/pages/integracoes/woocommerce/3.png" />

### Setting Up Webhooks in WooCommerce

<Info>
  To ensure orders are tracked correctly, you need to create **two webhooks** in WooCommerce: <br />

  * One for the **"Order Created"** event
  * Another for the **"Order Updated"** event
</Info>

1. Access the **WordPress panel** and go to **WooCommerce > Settings**.
2. Click on the **Advanced** tab and then on **Webhooks**.
3. Click on **Add Webhook**.

<img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/5.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=fd5824050f9edb4abd00a1a2fe12d897" alt="" width="1366" height="645" data-path="assets/pages/integracoes/woocommerce/5.png" />

4. Fill in the **Name** field for the integration.
5. In the WooCommerce panel, **paste the connection URL** copied in the [previous step](#setting-up-webhooks-in-woocommerce) in the **Delivery URL** field.
6. Select the corresponding event:

* **For the first webhook**, select **"Order Created"**
* **For the second webhook**, select **"Order Updated"**

7. Mark the status as **"Active"**.
8. Click on **Save Webhook** to finalize the configuration.

<img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/6.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=be4aac2ca203c6a03fd2ca92a1d6f2d9" alt="" width="1366" height="645" data-path="assets/pages/integracoes/woocommerce/6.png" />

<Tip>
  Repeat this process twice, once for each event.
</Tip>

### Installing the UTMs plugin for WooCommerce

1. Download the plugin [by clicking here](https://github.com/nemu-brazil/woocommerce-nemu-utms/releases/download/v1.0.0/woocommerce-nemu-utms.zip)

<Info>
  This file is in `.zip` format, ready to be imported into the WordPress panel.
</Info>

2. Access the WordPress panel

* Log in to the **administrative panel** of your WordPress site.
* Go to **Plugins → Add New**.
* Click on the **"Upload plugin"** button at the top of the page.

<img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/plugin/1.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=806f406595497dbec20d706c25a89e36" alt="" width="1366" height="652" data-path="assets/pages/integracoes/woocommerce/plugin/1.png" />

3. Import and activate the plugin

* Click on **"Choose file"** and select the `.zip` file you downloaded.
* Click on **"Install now"**.
* After installation, click on **"Activate plugin"**.

<Frame caption="Selecting the .zip file">
  <img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/plugin/2.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=91a30595fcf09a7183e1015ef832ab7b" width="1366" height="652" data-path="assets/pages/integracoes/woocommerce/plugin/2.png" />
</Frame>

<br />

<Frame caption="Activating the plugin">
  <img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/plugin/3.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=cdad3797c34232e836cb5b66bf00da39" width="1366" height="652" data-path="assets/pages/integracoes/woocommerce/plugin/3.png" />
</Frame>

<br />

<Frame caption="Ativando o plugin">
  <img src="https://mintcdn.com/nemu/qp0Cmmo404vEldVC/assets/pages/integracoes/woocommerce/plugin/3.png?fit=max&auto=format&n=qp0Cmmo404vEldVC&q=85&s=cdad3797c34232e836cb5b66bf00da39" width="1366" height="652" data-path="assets/pages/integracoes/woocommerce/plugin/3.png" />
</Frame>
