---
title: "Nectar CRM Integration"
description: "Learn how to connect OneClick Tracking to Nectar CRM to record as conversions the opportunities that reach the funnel stages you choose."
---

> Learn how to set up OneClick Tracking on Nectar CRM.

**OneClick Tracking** records as conversions the Nectar CRM opportunities that reach the funnel stages you choose, and ties each one to the Meta ad that brought the customer. Your campaigns' CPA and ROAS then reflect your sales team's real sales.

:::caution[New integration]
The Nectar CRM integration is recent. If, a few days after setting it up, the opportunities that reached the chosen stages do not show up as conversions in OneClick, contact our support.
:::

---

:::tip[You can connect several platforms at the same time]
OneClick Tracking lets you connect **more than one platform to the same ad account** at the same time (for example, Hotmart and Eduzz together). Each platform has its own integration — with its own Webhook link or access credential — and they coexist without competing with each other; just repeat the **"New Integration"** steps for each one you want to connect.

Each sale is attributed to the right campaign by its **UTM**, not by the platform. So if one campaign sells through one platform and other campaigns sell through another, each conversion is automatically linked to the campaign it came from, regardless of which platform generated the sale. The recommended setup is **each campaign serving a single platform** — avoid having the same campaign sell on two platforms at once.
:::

## Before you start: UTMs in Nectar CRM

For OneClick to know which ad each opportunity came from, the UTMs must be in **opportunity custom fields** with these names:

- `utm_source`
- `utm_medium`
- `utm_campaign`
- `utm_content`
- `utm_term`

Create these fields in Nectar CRM and have your website form, or the tool that creates the opportunities, fill them in. An opportunity without UTMs stays in your Nectar CRM as usual, but it does not become a tracked conversion, because there is no ad to attribute it to.

---

## How to Connect OneClick Tracking to Nectar CRM

1. Log in to your OneClick Ads account.
2. Go to the "OneClick Tracking" tab, available in the left sidebar of [OneClick Ads](https://app.oneclickads.com.br/oneclick-tracking).

   ![The OneClick Tracking tab in the OneClick Ads sidebar, with the New Integration card](../../../../../public/oneclick-tracking/common/image-1.png)

3. Click "New Integration".

4. Select the "Lead Generation" product type and click Continue.

5. Select the "Nectar CRM" platform and click Continue.

6. Paste the Nectar CRM **API token** and click Connect.
   a. In Nectar CRM, open **Configurações → Integrações** (Settings → Integrations) and copy the API token.

7. Choose **which stages count as a conversion**.
   a. OneClick lists your account's funnels and the stages of each.
   b. Tick the stages that are a real conversion for your business (for example, "Proposta" or "Fechamento").

8. Copy the UTM Script generated in OneClick Tracking.

   ![The UTM parameters step of OneClick Tracking, with the parameter to copy](../../../../../public/oneclick-tracking/common/image-2.png)

   8.1. Paste it into the "URL parameters" field in ALL of your ads in Ads Manager, as shown below:

   ![The URL parameters field of an ad in Meta Ads Manager](../../../../../public/oneclick-tracking/common/image-3.png)

9. Add the **UTM Passthrough Script** to all your sales pages, so the UTMs are automatically carried into the card of each lead generated.
   a. You can install it on your website via Google Tag Manager or, preferably, directly in your website's header.

10. Set the Attribution Mode.
   - [Watch this video](https://www.youtube.com/watch?v=JgWkvv4ZNLY) to understand each model.
   - Click Continue.

   ![The Attribution Mode step of OneClick Tracking](../../../../../public/oneclick-tracking/common/image-4.png)

11. Set the Naming Convention that your campaigns, ad sets and ads will receive in your Ads Manager and click next.

:::caution[Campaign renaming depends on processed conversions]
The naming set here **will only be applied to the campaign name in Ads Manager once there is at least 1 processed conversion**. Receiving raw webhook data from the integrated platform is not enough — the system must have structured the conversion and attributed it to a campaign. If the webhook is arriving but the campaign name hasn't changed yet, wait for the first conversion to be recorded.
:::

![The Campaign Naming step of OneClick Tracking](../../../../../public/oneclick-tracking/common/image-5.png)
![Analysis periods and the Naming Convention preview](../../../../../public/oneclick-tracking/common/image-6.png)

11. Copy the **Webhook URL** generated by OneClick and create, in Nectar CRM, the webhooks that send the opportunities:

    11.1. Open **Configurações → Integrações → Webhooks** and click **Adicionar** (Add).

    11.2. Name the webhook (for example, "OneClick Tracking - Update"), choose the opportunity event **Atualizar** (Update) and paste OneClick's Webhook URL into the URL field. Save.

    11.3. Repeat step 11.2 with the opportunity event **Criar** (Create), for example "OneClick Tracking - Create", so an opportunity created directly in a chosen stage is sent too.

    The webhook needs no authentication.

---

## Important Notes

- Each stage you chose counts **once per opportunity**: the same opportunity moved to the same stage again does not create a duplicate conversion. If you choose more than one stage, an opportunity that goes through all of them counts once in each.
- **Lost** or **cancelled** opportunities never count as conversions.
- The value recorded is the opportunity's total value. Without it, the one-off value plus one month of the monthly value.
- If you change the token in Nectar CRM, reconnect the integration in OneClick with the new token.

---

## Done!

Wait at least 24 hours for the setup to take effect, and all your campaigns (those that receive conversions) will start recording conversions right inside Ads Manager.

![Campaigns with the OneClick Tracking prefix in Ads Manager](../../../../../public/oneclick-tracking/common/image-7.png)
