# Digistore24

> The article provides an overview of the integration between Digistore24 and AnyTrack, highlighting its ability to simplifies conversion tracking for digital products. By sending conversion data from Digistore24 to AnyTrack, marketers can gain real-time insights into customer journeys and optimize campaigns across platforms like Google Ads and Facebook. The integration is easy to set up, offering powerful analytics tools that enhance competitive advantage.

> 🚧 **For**
>
> This article is for affiliate marketers promoting Digistore24 offers. If you sell your own products on Digistore24 as a vendor, follow the [Digistore24 for Merchants](/docs/digistore24-merchants) guide instead — it uses a separate **Vendor Postback URL** that includes buyer details and order data.

## Digistore24 Integration Overview

The Digistore24 and AnyTrack integration makes it easy to track conversions from your digital products. With a few clicks, you can send conversion data from Digistore24 to AnyTrack which will then forward the data on to platforms like Google Ads, Facebook `Conversion API` and TikTok API. This allows marketers an unprecedented level of insight into their customers’ journeys, allowing them to optimize campaigns for maximum ROI in real-time.

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You have an AnyTrack account with a paid subscription", done: true },
    { label: "You have an active Digistore24 affiliate account", done: true },
    { label: "The AnyTrack <code>Tracking Tag</code> is installed on your website", done: true },
  ]}
/>

### How does the Digistore24 AnyTrack integration work:

1. **Traffic**: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
2. **Engagements**: When visitors click on your Digistore24 affiliate links, AnyTrack does a few things:
   1. Collects granular data tied to the `OutboundClick`.
   2. Triggers Event Tracking API requests to your Tracking Tags and analytics.
3. **Conversions:** When visitors convert on the merchant's website, AnyTrack receives real time conversion data through Postback URL.
4. **Attribution:** AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
5. **`Conversion API`:** AnyTrack then sends your conversions to your **Ad Platforms' `Conversion API`** so you can feed your ad platform's Machine Learning, AI and automatic optimization according to 100% of your conversion data.

### Technical details

| Reference       | Value          | Information                                                                        |
| --------------- | :------------- | :--------------------------------------------------------------------------------- |
| Tracking Group  | `digistore24`  | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `cid`          | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `Postback URL` | -                                                                                  |

### Standard Conversions

| Event Name      | Details                                              | Data Source     |
| :-------------- | :--------------------------------------------------- | :-------------- |
| `OutboundClick` | When a visitor clicks on Digistore24 offer links.    | AnyTrack JS Tag |
| `Lead`          | When a free registration is recorded in Digistore24. | Postback URL    |
| `Purchase`      | When a user generates a commission in Digistore24.   | Postback URL    |

### The Digistore24 Postback URL

The Digistore24 integration in your AnyTrack dashboard exposes two predefined Postback URLs:

* **Affiliate Postback URL** — for affiliate marketers promoting Digistore24 offers. Use this URL in your Digistore24 affiliate account (covered in this guide).
* **Vendor Postback URL** — for merchants/vendors selling products on Digistore24. It includes additional buyer and order parameters. See the [Digistore24 for Merchants](/docs/digistore24-merchants) guide.

The Affiliate Postback URL looks like this:

```http
https://t1.anytrack.io/<your-tracking-id>/collect/digistore24?cid={cid}&sid1={sid1}&sid2={sid2}&sid3={sid3}&sid4={sid4}&sid5={sid5}&campaignkey={campaignkey}&country={country}&amount_affiliate={amount_affiliate}&amount_brutto={amount_brutto}&amount_netto={amount_netto}&currency={currency}&product_id={product_id}&product_name={product_name}&transaction_id={transaction_id}&transaction_type={transaction_type}&merchant_id={merchant_id}&merchant_name={merchant_name}&billing_status={billing_status}&billing_type={billing_type}&order_type={order_type}&upsell_no={upsell_no}&is_test={is_test}&affiliate_id={affiliate_id}&affiliate_name={affiliate_name}&datetime_unix={datetime_unix}&random={random}
```

> 📘 **Example URL**
>
> The URL above is an example. Always copy your own Affiliate Postback URL from the Digistore24 integration page in your [AnyTrack dashboard](https://dashboard.anytrack.io/catalog/digistore24) — your tracking ID is unique to your account.

## Setup Guide

<HTMLBlock html={"\n<div style=\"position: relative; padding-bottom: 64.90384615384616%; height: 0;\">\n  <iframe src=\"https://www.loom.com/embed/a65830a95fbe4e80af47f0c79efd7624?sid=c3635ffc-2c26-40cf-9fc4-70c8915e42d8\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\"></iframe>\n</div>\n"} />

### Step #1: Add Digistore24 to your AnyTrack Account

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for Digistore24.

2. Now click on the [Digistore24 card](https://dashboard.anytrack.io/catalog/digistore24)and then Click on Install.

### Step #2: Connect your Digistore24 account

1. Copy the **Affiliate Postback URL** from the Digistore24 integration page in your AnyTrack dashboard.
2. Login to your Digistore24 affiliate panel and go to [Account > S2S Postback](https://www.digistore24.com/affiliate/settings/ipn/s2spostback).
3. Click on **Add new connection** in the top left-hand corner.
4. Enter a **Name** for the S2S Postback connection (this will only be visible to you).
5. Select the **Products** for which the S2S Postback connection should be activated.
6. Select the **Events** for which information should be transmitted.
7. Paste the Affiliate Postback URL.
8. Select USD as the **currency** in which the amounts are to be transferred.
9. Make sure that the connection is **active**.
10. Click on Save.

***

## Validate your integration

This section will enable you to validate the main aspects of your setup.

<Callout icon="🔎" theme="default">
  ### Install the AnyTrack Pixel Helper Extension

  Install the [AnyTrack Pixel Helper](https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn) Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad platforms and browser-side events. [View the Pixel Helper guide](/docs/anytrack-chrome-extension).
</Callout>

### Link tracking

Since Tracking starts when visitors clicks on offer links, you verify that your links are tracked and AutoTagged.

### AutoTag Methods

<Callout icon="🔥" theme="default">
  ### Reminder about AutoTag:

  **AutoTag** is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends `cid` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags Digistore24 links found on your website.
* **AutoScan**: AnyTrack scans links that are embedded in redirects plugins and AutoTags them accordingly.
* **Manual**:
  * **Tracking Group Attribute**: You add the tracking group attribute to links according to their tracking requirements. For example: `data-tracking-group="digistore24"` or `rel="digistore24"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&cid=--CLICK-ID--` to the offer link.

Once the links are set up, you can check in your [Digistore24](https://www.digistore24.com/redir/438218/anytrack/) account reports and see whether the `cid` parameters are passed to the offer links.

**Here is an example of how you would manually update links from`digistore24`:**

```html
<a href="https://example.foo/goto/digistore24" data-tracking-group="digistore24">Hover on theDigistore24 Demo   
Link to see the AnyTrack `click_id`</a>
```

<HTMLBlock html={"\n<a href=\"https://example.foo/goto/digistore24\" data-tracking-group=\"digistore24\">Hover on the Digistore24 Demo Link to see the AnyTrack <code>click_id</code></a>\n"} />

> 📘 **Tracking**
>
> Tracking Group refers to the integration technology. For example, Digistore24 <Glossary>Tracking Group</Glossary> tracking group is `digistore24` and ClickBank is `ClickBank`. <Glossary>The Tracking Group</Glossary>

### Conversion Tracking

To validate your setup, either wait for an actual conversion or trigger a test conversion yourself and inspect the conversion logs. The value of the Purchase event is calculated by subtracting the amount_netto from the amount_brutto.

**Digistore24 conversion payload example**

```json digistore24 conversion payload
{
  "amount_affiliate": "101.64",
  "transaction_id": "xxx7x7x7",
  "country": "US",
  "datetime_unix": "1697080237",
  "affiliate_id": "xxxxx",
  "datetime_utc": "2023-10-12T03:10:37 UTC",
  "upsell_no": "0",
  "merchant_name": "pro",
  "amount_brutto": "165.19",
  "merchant_id": "2699865",
  "transaction_type": "payment",
  "amount_netto": "163.55",
  "product_name": "bottle + 2 Free Ebooks",
  "affiliate_name": "xxx",
  "datetime_full": "2023-10-12T05:10:37+02:00",
  "random": "Cc7JguMzOlxJ0HeJTqFsKOnKbBwlFQyX",
  "product_id": "500418",
  "billing_type": "single_payment",
  "billing_status": "completed",
  "currency": "EUR",
  "campaignkey": null,
  "is_test": null,
  "order_type": "upsell",
  "cid": "KMBkRh3WdSJCuPxxxxjPk5rpRy70btU" //The AnyTrack Click ID
}
```

***

<FaqAccordion
  title="FAQ and Troubleshooting"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "Can I import past conversions into AnyTrack?",
      answer: "No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website."
    },
    {
      question: "Can I track direct linking campaigns?",
      answer: "Yes, but this requires a custom setup. Please refer to this <a href='/docs/deeplink'>article</a>."
    },
    {
      question: "Can I use a different <code>subid</code> parameter than the one predefined by AnyTrack?",
      answer: "No."
    },
    {
      question: "Can I track conversions without the <code>click_id</code>?",
      answer: "No. The <code>click_id</code> passed to the Digistore24 links is required to track conversions."
    }
  ]}
/>
