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

> Learn how to set up OneClick Tracking on Perfect Pay.

**OneClick Tracking** is a feature for Meta Ads advertisers who use Perfect Pay as the payment gateway for their 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 volume of real conversions per period right in your Ads Manager, making a quick and clear audit easy, without the need for complicated dashboards that have to be kept up to date.**

Using the webhook from your Perfect Pay account, OneClick considers UTM data as well as Meta's data, without duplicating conversions. Each ad account gets a unique link, and you can **link multiple products (order bumps, downsells or upsells)**.

Note: **OneClick Tracking** eliminates 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 Connect OneClick Tracking to Perfect Pay

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

6. Copy the Webhook URL and add it in Perfect Pay by following the steps below:
   a. Each ad account will have a unique, automatically generated link.
   b. This link is what connects your account to Perfect Pay and tracks conversions by UTM.

   6.1. Log in to your [Perfect Pay](https://app.perfectpay.com.br) account. In the left sidebar menu, go to **Ferramentas > Webhook - Vendas** (Tools > Webhook - Sales).

   > Also see Perfect Pay's official documentation on Postback/Webhook integration ([article 597](https://help.perfectpay.com.br/article/597-integracao-via-webhook-com-a-perfect-pay) or [article 72](https://support.perfectpay.com.br/doc/perfectpay/postback/integracao-via-webhook-com-a-perfect-pay)) for more details about the configuration screen.

   6.2. Click **Adicionar** (Add) to register a new webhook.
   a. Under **Produtos** (Products), select the product you want to track. We always suggest enabling tracking only for the main product of each funnel. If you want to add other products, repeat the steps, creating a new webhook for each product separately.
   b. Under **URL**, paste the tracking URL provided by OneClick.
   c. Under **Eventos** (Events), check at least the **Aprovado** (Approved) event (you can also check all available events — Pendente, Aprovado, Em processo, Em mediação, Rejeitado, Cancelado, Devolvido, Autorizado, Enviado de Volta, Completo, Erro no Checkout, Pré Checkout — OneClick Tracking processes only the **approved** sale event and automatically ignores all the others, including refunds, chargebacks, abandoned carts and recurring subscription charges).
   d. The **delay** field (the wait time between the event happening and the Postback being sent) can stay at its default value — you don't need to configure a delay for OneClick Tracking to work.

   6.3. Under **Formato do Postback** (Postback Format), select the **Perfect Pay** format (the platform's own native format).

   :::caution[The Postback format must be "Perfect Pay"]
   Perfect Pay lets you emulate other platforms' postback formats (for compatibility with tools that don't integrate with it natively). OneClick Tracking expects **Perfect Pay's native** format — if a different format is selected, the payload fields won't be recognized and no conversion will be recorded, with no visible error on the Perfect Pay screen.
   :::

   6.4. Save the configuration.
   a. You don't need to send test events — just finish the configuration in Perfect Pay.

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 Perfect Pay checkout page or on the landing page that comes before 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

- **Postback format**: always select the **Perfect Pay** (native) format when registering the webhook. Selecting another platform's format makes the webhook be sent normally, but with fields OneClick Tracking doesn't recognize — conversions simply don't show up, with no error warning.
- **Install and keep** your pixel in the Perfect Pay configuration.
- **Suggestion**: Avoid sending order bump or upsell data, to keep the optimization of the entry product clean. Either way, if you still prefer, you can also create webhooks for additional products.
- **Only the approved sale counts as a conversion**: refunds, chargebacks, abandoned carts and recurring charges of a subscription (from the second charge on) are not counted by OneClick Tracking.
- Only campaigns created after the configuration will have access to the "Maximum Period" data. This **does not affect** OneClick Ads optimization of older campaigns in any way.
- If you want, you can link multiple products by pointing them to the same Webhook link provided by OneClick Ads.
