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

> Learn how to set up OneClick Tracking on Digistore24.

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

Using the webhook from your Digistore24 account, OneClick takes into account the UTM data as well as Meta's, without duplicating conversions.

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

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

6. On the webhook screen, under **How do you sell on Digistore24?**, choose **I'm the vendor** if the product is yours. If you're an **affiliate** of the product, choose **I'm an affiliate** and follow the [If you're an affiliate](#if-youre-an-affiliate) section instead of steps 6.1 to 6.10 and step 8.

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

   6.1. Log in to your Digistore24 account, in the **Vendor view**, and go to **Settings > Integrations (IPN)**.

   6.2. Click **Add new connection** and choose the **Webhook** card.

   :::caution[Use the Webhook connection, not Generic]
   The **Generic** connection expects a different response from the one OneClick sends: the connection test fails and Digistore24 keeps resending the notifications. Only the **Webhook** connection carries the sale's UTMs, which is what links the conversion to the campaign.
   :::

   6.3. Give the connection a **name** (for example, "OneClick Tracking").

   6.4. Under **For products**, select **only your main products**, without the upsells. Under **For add-ons**, choose **No**.

   6.5. Under **Send notifications for**, choose the order events and, under **For order events**, check **payment**. This is the event that generates the conversion.

   6.6. In the **Webhook URL** field, paste the tracking URL provided by OneClick.

   6.7. Under **Perform also for follow-up payments**, choose **No**, so that only the first payment of each order is sent.

   6.8. In the **GET parameter names** area, **keep the names that come pre-filled**. OneClick reads the data by these names, including the UTM ones in the tracking section.

   6.9. Under **Success check is**, keep the default option, **HTTP code: 2xx**.

   6.10. Leave **Active** set to **Yes**, click **Test connection** and, if the test passes, click **Save**.

   :::note[The other events can stay checked without any problem]
   OneClick Tracking records **only approved payments**. Refunds, chargebacks, missed recurring payments, end of paid period and the connection test itself are received without generating 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 Digistore24 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)

---

## If you're an affiliate

An affiliate has no access to the vendor's IPN settings or sales page. So Digistore24 notifies the affiliate another way, through the **S2S Postback**, and OneClick records **your commission** on each sale.

1. In OneClick, on the webhook screen, choose **I'm an affiliate** and copy the **Postback URL**. It already carries the fields Digistore24 fills in on each sale; don't change anything in it.

2. In Digistore24, go to **Sales & partners > Integrations** and click **Add New Integration**.

3. Give the integration a **name** (for example, "OneClick Tracking") and select the **affiliate partnerships** you promote with ads.

4. Under **For order events**, check the **payment** event.

5. Paste the Postback URL copied from OneClick into the **Postback URL** field.

6. Choose the same **currency** you set in OneClick. Digistore24 converts the commission to that currency before sending it.

7. Leave the integration **active**, click **Save** and, if you like, **Test Connection**. The test simulates a purchase and does not generate a conversion.

8. In OneClick's next step, copy the **URL Parameters** and paste them into the "URL parameters" field of every ad that leads to your affiliate link. Besides the UTMs, they carry the **Sub-IDs** (`sid1`, `sid2` and `sid3`) with the ad, ad set and campaign identifiers. Digistore24 sends these Sub-IDs back in the postback, and they are what ties the sale to the right campaign.

9. If the ad first leads to a page of yours (a pre-sell) and only then to the affiliate link, install the **UTM Passthrough Script** on it: it passes the Sub-IDs on to the affiliate link. If the ad points straight at the affiliate link, no script is needed.

:::note[What is recorded for the affiliate]

- Each conversion's amount is **your commission**, not the sale amount.
- Only the **main sale** counts. Upsell commissions do not generate a conversion.
- For **subscription or installment** products, each charge that earns a commission is recorded as a conversion, because the affiliate postback does not say whether it is the first charge.
- Refunds, chargebacks and test purchases do not generate a conversion.

:::

---

## 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 Digistore24 account settings.
- For the vendor, OneClick Tracking records the sale at the **gross payment amount**, in the currency it was charged in. The amount recorded is the sale amount, not your payout or the affiliate commission. For the affiliate, it is the commission (see [If you're an affiliate](#if-youre-an-affiliate)).
- Each order is recorded **only once**. On Digistore24, an order can have the main sale and up to three upsells, and each one generates a separate notification with the same order number. If the upsells are selected under **For products**, the recorded amount becomes that of the **last** item received, not the main sale. That's why you should select only the main products (step 6.4).
- Only the **first payment** of a subscription or an installment plan is recorded as a conversion. Subsequent charges are ignored, so the same sale isn't counted several times.
- **Test purchases** made in Digistore24's test mode are not recorded as conversions.
- The UTM passthrough script **must be present** on the landing page that comes before the Digistore24 checkout to ensure the UTM parameters reach the order form.
- Only campaigns created after the setup will have access to the "Período Máximo" (Maximum Period) data. This **does not harm** OneClick Ads' optimization of older campaigns in any way.
- Keep at least one ad identifier (`ad.id`) in the UTM parameters — it's what allows OneClick Tracking to associate the conversion with the correct campaign, ad set and ad. If the customer doesn't come from a tracked link, the sale cannot be attributed.
