---
title: "Excofy Integration"
description: "Learn how to connect OneClick Tracking to Excofy via webhook to track real digital-product conversions in your Meta Ads campaigns."
---

> Learn how to set up OneClick Tracking on Excofy.

**OneClick Tracking** is a feature for Meta Ads advertisers who use Excofy as the checkout for digital products, such as courses, e-books and mentorships. It provides immediate and accurate conversion tracking.

This solution **fixes wrong attributions made by Meta**, delivering **real data based on UTMs** and enabling safer scaling decisions.

From your Excofy account's sales webhook, OneClick considers UTM data as well as Meta's, without duplicating conversions.

---

:::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.
:::

## How to Connect OneClick Tracking to Excofy

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 "Digital products" product type and click Continue.

5. Select the "Excofy" platform and click Continue.

6. Copy the Webhook URL generated by OneClick and register it in Excofy:
   a. Each ad account has a unique, automatically generated link.
   b. In the Excofy dashboard, open the integrations' **Webhooks** area and register the copied URL as the sales webhook.

   :::note[Only paid sales become conversions]
   Excofy sends the `SALE_UPDATED` event on every change to a sale. OneClick Tracking records **only sales with status `paid`**; open or pending sales are received without creating a conversion.
   :::

7. 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)

   7.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)

8. Add the **UTM Passthrough Script** to all your sales pages, so the UTMs are carried through to the final checkout page:
   a. You can install it on your website via Google Tag Manager or, preferably, directly in your website's header.
   b. The script must also be present on the landing page that comes before the Excofy checkout.

9. 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)

10. 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)

---

## 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)

---

## Important Notes

- OneClick Tracking records the sale at the **total amount paid** (`totalAmount`), order bumps included, in reais. Every product in the sale, order bumps included, is stored with the conversion.
- Each sale is recorded **only once**, by its Excofy sale id, even if the webhook is sent again.
- Attribution depends on the UTMs that reach the Excofy checkout (`utmParams`). A sale without UTMs is received, but cannot be linked to any campaign.
- **Were you using the n8n workflow with the Custom integration?** In Excofy, replace the webhook URL with this integration's URL and deactivate the workflow in n8n. If both stay active, each sale arrives twice, through two different integrations.
- Only campaigns created after setup will have access to the "Maximum Period" data. This **does not affect** OneClick Ads optimization of older campaigns in any way.
