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

> Learn how to set up OneClick Tracking in Cakto.

**OneClick Tracking** is a feature for Meta Ads advertisers who use Cakto as their checkout and payment platform for digital products. It provides immediate and accurate conversion tracking.

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

**With OneClick Tracking you see the real volume of conversions per period right in your Ads Manager, making audits quick and clear, with no need for complicated dashboards that have to be kept up to date.**

Using the webhook from your Cakto account, OneClick takes into account both UTM data and Meta's data, without duplicating conversions.

Note: **OneClick Tracking** removes the need for extra tracking tools!

---

:::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 Plug OneClick Tracking into Cakto

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 "Cakto" platform and click Continue.

6. Copy the Webhook URL generated by OneClick and register it in Cakto following the steps below:
   a. Each ad account gets a unique, automatically generated link.
   b. This link is what connects your account to Cakto and tracks conversions by UTM.

   6.1. Open your Cakto account dashboard and go to **"Integrações"** (Integrations). Inside Integrations, click **Webhooks**.

   6.2. Click **"Adicionar"** (Add) to create a new webhook.

   6.3. Give the webhook a **"nome"** (name) (for example, "OneClick Tracking") so you can identify it later.

   6.4. In **URL**, paste the tracking URL provided by OneClick.

   6.5. Under **"eventos"** (events), check **"Venda Aprovada"** (Approved Sale). This is the event that generates the conversion.

   6.6. Under **"produtos"** (products), select the products that should send events to this URL.

   6.7. Save the webhook.

   :::note[The other events can stay checked without any problem]
   OneClick Tracking processes **only the approved sale**. If you also check events such as Abandono de Checkout (Checkout Abandonment), Pix Gerado (Pix Generated), Boleto Gerado (Boleto Generated), Venda Recusada (Declined Sale), Reembolso (Refund), Chargeback or the subscription events, they are received and simply ignored — they don't generate conversions or duplicate sales.
   :::

   :::tip[There is no token to give OneClick]
   Cakto sends a **secret** field with each webhook (and a signature in the header). You don't need to give them to OneClick: there is no field for them in our setup and there is nothing to configure on your side.
   :::

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 Cakto 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

- **Install and keep** the Meta pixel in your Cakto account settings.
- OneClick Tracking records the sale at the **amount charged on the approved order**, with any discount already applied, in your ad account's currency.
- **Works for producers, co-producers and affiliates.** Cakto sends a single webhook per sale, including each participant's share, and OneClick Tracking records the conversion whatever your role — you don't need to be the product's producer to track your ads. The recorded value is always the **order amount**, not your commission.
- Only the **first charge** of a subscription is recorded as a conversion. Later renewals are received and ignored, so the same sale isn't counted several times.
- The UTM pass-through script **must be present** on the landing page that comes before the Cakto checkout to ensure the UTM parameters are captured correctly.
- Only campaigns created after the setup will have access to the "Maximum Period" data. This **does not affect** OneClick Ads' optimization of older campaigns in any way.
- Keep at least one ad identifier (`ad.id`) in the UTM parameters — it is what allows OneClick Tracking to link the conversion to the correct campaign, ad set and ad. If the customer didn't come from a tracked link, Cakto sends empty UTMs and the sale cannot be attributed.
