# Awin Conversion Tracking Guide

> The Awin and AnyTrack integration provides real-time tracking and reporting of affiliate marketing conversions, allowing users to monitor ROI across various networks and campaigns.

## Awin Integration Overview

The Awin and AnyTrack integration unlocks powerful insights into your affiliate marketing campaigns. With the integration, data from your conversions on Awin is sent to AnyTrack in real-time, enabling you to track ROI for each network and campaign. From there, AnyTrack forwards that conversion data directly to platforms like Google Ads, Facebook `Conversion API` and TikTok API - giving you total visibility of how well those campaigns are performing across all channels.

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

### How does the Awin 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 Awin 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  | `awin`         | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>.                                |
| Subid Parameter | `clickRef5`    | The default Subid Parameter used to pass the AnyTrack `click_id`. Also use `clickRef2`, `clickRef3`, etc. |
| Tracking Method | `Postback URL` | -                                                                                                                 |

### Standard Conversions

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

### The Awin Postback URL

The Postback URL is fully pre-defined and ready to be implemented with your Awin account.

```http Awin Postback URL
https://t1.anytrack.io/hBtoE3hN/collect/awin?affiliateId=!!!affiliateId!!!&bannerId=!!!bannerId!!!&clickRef=!!!clickRef!!!&clickRef2=!!!clickRef2!!!&clickRef3=!!!clickRef3!!!&clickRef4=!!!clickRef4!!!&clickRef5=!!!clickRef5!!!&clickRef6=!!!clickRef6!!!&clickThroughTime=!!!clickThroughTime!!!&clickTime=!!!clickTime!!!&commission=!!!commission!!!&commissionGroups=!!!commissionGroups!!!&groupId=!!!groupId!!!&merchantId=!!!merchantId!!!&phrase=!!!phrase!!!&products=!!!products!!!&searchEngine=!!!searchEngine!!!&transactionAmount=!!!transactionAmount!!!&transactionDate=!!!transactionDate!!!&transactionId=!!!transactionId!!!&url=!!!url!!!&transactionCurrency=!!!transactionCurrency!!!&trackedAmount=!!!trackedAmount!!```

## Setup Guide

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

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for Awin.
2. Now click on the [Awin card](https://dashboard.anytrack.io/catalog/awin)and then Click on Install.

### Step #2: Connect your Awin account

1. Copy the predefined Postback URL
2. Login to your Awin account and navigate to the Transaction Notifications settings (Advanced > Transaction Notifications)
3. Paste the Postback URL (do not modify the postback parameters as they are preset to capture all tracking data from Awin)
4. Select Callback Method Get
5. Select Product and click source data
6. Save

### Step #3: Adjust the Conversion Event Mapping

The Event Mapping allows you to define which events to track and map them to Conversion Events you will forward to your Ads Integrations (e.g., Facebook `Conversion API`).

> 🚧 **Limited**
>
> The Integration Event Mapping is not available for integrations that do not have standard Conversion Event Names passed to the AnyTrack platform.

***

## Validate your integration

<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 networks and browser-side events. [View the Pixel Helper guide](/docs/anytrack-chrome-extension).
</Callout>

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

### 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 `clickref5` & `click_id` data to affiliate links. Learn more about <a href='/docs/autotag'>AutoTag</a>.
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags Awin 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="awin"` or `rel="awin"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&clickref5=--CLICK-ID--` to the offer link.

Once the links are set up, you can check in your Awin account reports and see whether the `clickref5` parameters are passed to the offer links.

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

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

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

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

### Conversion Tracking

To validate your setup, you wait for a conversion or trigger a test conversion yourself and inspect the conversion logs.

**Awin conversion payload example**

```json

{
  "commissionGroups": [
    {
      "name": "Default",
      "description": "Default",
      "amount": "498.99",
      "id": "308811",
      "code": "DEFAULT",
      "commissionAmount": "99.80"
    }
  ],
  "transactionCurrency": "USD",
  "searchEngine": null,
  "bannerId": null,
  "groupId": null,
  "clickTime": "2025-08-18 17:17:01",
  "trackedAmount": null,
  "clickRef": null,
  "transactionDate": "2025-08-18 17:53:05",
  "affiliateId": "134xxxx",
  "transactionId": "1910806798",
  "url": "https://consumXXXXXXX.org/",
  "products": [
    {
      "unitPrice": "379.99",
      "cgId": null,
      "quantity": "1",
      "skuType": null,
      "category": null,
      "productName": "Hybrid Pot Set with Lids, 6-pc",
      "skuCode": "CWPT06-ST-C"
    },
    {
      "unitPrice": "119.00",
      "cgId": null,
      "quantity": "1",
      "skuType": null,
      "category": null,
      "productName": "Hybrid Saucepan with Lid, 1-Qt",
      "skuCode": "CWPTLD01-C"
    }
  ],
  "clickRef5": "Kb2z7tk...PoP7",
  "phrase": null,
  "clickRef6": null,
  "merchantId": "21679",
  "clickRef3": null,
  "clickRef4": null,
  "transactionAmount": "498.99",
  "clickRef2": null,
  "commission": "99.80",
  "clickThroughTime": "2025-08-18 17:17:01"
}

```

***

<FaqAccordion
  title="FAQ & 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: "You can use any of the <code>clickRef</code> parameters accepted by Awin. e.g., <code>clickRef2</code>, <code>clickRef3</code>, <code>clickRef4</code> or <code>clickRef5</code>. By default AnyTrack autotags the Awin links with the clickRef5 parameter but if you use redirect plugin and want to pass a different parameter, you can."
    },
    {
      question: "Can I track conversions without the <code>click_id</code>?",
      answer: "No. The <code>click_id</code> passed to the Awin links is required to track conversions."
    },
    {
      question: "The Conversion Event Name is not what I am expecting, how can I change it?",
      answer: "You can update the Event Mapping in the Integration page.  "
    }
  ]}
/>
