# ClickBank

> The article provides an overview of the ClickBank integration with AnyTrack, highlighting the new affiliate tracking parameters that enhance tracking capabilities.

## ClickBank Integration Overview

> 🚧 **Affiliates only**
>
> This integration is designed for ClickBank affiliates, not vendors. AnyTrack tracks the traffic and conversions you generate as an affiliate — it does not track vendor-side sales or vendor dashboards.

> 📘 **ClickBank New Affiliate Tracking Parameters**
>
> ClickBank has released new affiliate tracking parameters to enhance tracking capabilities for affiliates, with AnyTrack integration already supporting these updates. Review the guide to the <a href="/docs/clickbank-new-affiliate-tracking-parameters">New Affiliate Tracking Parameters</a> and find out how to enable it on your AnyTrack account.

AnyTrack and ClickBank are the perfect integration for data driven affiliate marketers. With AnyTrack, you can now send accurate conversion data from your ClickBank account to your ad platforms Conversion API like Google Ads, <a href="/docs/facebook-ads">Facebook Ads</a>, TikTok Ads and more in real-time. This allows you to optimize your ad campaigns with rich conversion data and the complete customer journeys. What's even better is that AnyTrack also enables affiliate marketers to build custom audiences across all ad platforms, with granular customer journey insights, including product level data and abandoned carts.

Connect to <Anchor label="ClickBank Integration" target="_blank" href="https://anytrack.io/integrations/affiliate-networks/clickbank">ClickBank Integration</Anchor>

### How does the ClickBank AnyTrack integration work:

<Image align="center" border={true} src={readmeAsset1} className="border" />

1. **Traffic**: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
2. **Engagements**: When visitors click on your ClickBank 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 the [ClickBank Postback URL](#the-ClickBank-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  | `clickbank`    | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `tid`          | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `Postback URL` | -                                                                                  |

### Standard Conversion Event Mapping

AnyTrack enables you to track all Event Types from ClickBank and map these events to either standard events or custom events.

For example, if you promote products that have recurring sales, you can map the initial sales to the standard `Purchase` event, and map the `REBILL` conversions to a custom Conversion name.

> 📘 **Event Mapping**
>
> When you update the ClickBank conversion mapping, you should map the custom Events to your Ad Platforms Conversion Events. Learn more about <a href="/docs/event-mapping">Event Mapping</a>.

| ClickBank Event         | AnyTrack Event     | Details                                                          | Data Source     |
| :---------------------- | :----------------- | :--------------------------------------------------------------- | :-------------- |
| `Hop Link Click`        | `OutboundClick`    | When a visitor clicks on ClickBank hop link.                     | AnyTrack JS Tag |
| `Order Form Impression` | `InitiateCheckout` | When a user loads the ClickBank order page.                      | Postback URL    |
| `SALE`                  | `Purchase`         | When a user generates a sale for a standard product.             | Postback URL    |
| `REBILL`                | `Purchase`         | When a user generates a sale for a product with recurring sales. | Postback URL    |

### The ClickBank Postback URL

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

```http
https://t1.anytrack.io/hBtoE3hN/collect/ClickBank
```

> ❗ **AnyTrack Tag required**
>
> The ClickBank integration requires the AnyTrack Tracking Tag in the `head` section of your website or landing pages. Learn how to <a href="/docs/install-anytrack-tag">Install the AnyTrack Tag</a> on your website.

## Setup Guide

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

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

### Step #2: Connect your ClickBank account

<Embed url="https://www.youtube.com/watch?v=vOnurTA12oM" href="https://www.youtube.com/watch?v=vOnurTA12oM" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FvOnurTA12oM%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DvOnurTA12oM%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FvOnurTA12oM%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%3B%20encrypted-media%3B%20picture-in-picture%3B%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

### Step #3: Sales and Rebill Tracking

1. Copy the Postback URL from your AnyTrack account.
2. Access your Instant Notification settings (Vendor Settings >> My Site >> Advanced Tools >> Edit).
   > 🚧 **Vendor settings**
   >
   > While you are setting up your postback in a vendor setting page, do not worry as this is the same page Vendors and Affiliates set their Postback URL.
   >
   > The parameters sent to affiliates are different than the parameters sent to Vendors.
3. Add the key: **AnyTrack**.
4. Paste (ctrl+v) the Postback URL in the Instant Notification URL Field.
5. Select **Version 7.0**.
6. Click on **Test IPN**.
7. Save (The IPN tracks the Sales, Upsells, and Rebills).

### Step #4: Order Form tracking

1. [Follow this link](https://accounts.ClickBank.com) to access your Integrated Sales Reporting settings (Vendor Settings >> My Site >> Integrated Sales Reporting >> Add Tracking Code).
2. Select "Tracking Tag" and click "Add".
3. Paste (ctrl+v) the postback URL in the Tracking Tag URL Field.
4. Select Track As: **"Affiliate"**.
5. ⚠️ **Select** **ONLY** **"Order Form"**.
6. **Save** (The Tracking tag tracks the Order Form Impressions).
7. **Activate** the Tracking Tag

### Step #5: 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 (ex: Facebook `Conversion API`)

***

## Validate your integration

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

<Callout icon="🔎" theme="default">
  <p><strong>Install the AnyTrack Pixel Helper Extension</strong></p>
  <p>Install the <a href="https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn">AnyTrack Pixel Helper</a> Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad platforms and browser-side events. You can learn more about how the <a href="/docs/anytrack-chrome-extension">pixel helper</a> can help you verify your setup and troubleshoot any issues.</p>
</Callout>

### Link tracking

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

### AutoTag Methods

<Callout icon="🔥" theme="default">
  <p><strong>Reminder about AutoTag:</strong></p>
  <p><strong>AutoTag</strong> is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends <code>tid</code> & <code>click_id</code> data to affiliate links. Learn <a href="/docs/autotag">more about AutoTag</a>.</p>
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags ClickBank links found on your website. Like this [sample ClickBank link](https://280d7grip76d8x91tcba46qh7s.hop.ClickBank.net).
* **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="ClickBank"` or `rel="ClickBank"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You manually append the `subid`: `&tid=--CLICK-ID--` to the offer link.

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

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

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

> 📘 **Tracking Group**
>
> Tracking Group refers to the integration technology. For ClickBank, the <Glossary>Tracking Group</Glossary> value is `ClickBank`.

### Conversion Tracking

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

<Image align="center" border={true} src={readmeAsset2} className="border" />

### ClickBank conversion payload example

> 📘 **This is the `tid` parameter passed to the ClickBank hop link**
>
> `"trackingCodes": "w23xvj0xjemr590b860q0j8m0v0a0x0u0cip5yc40fmg"`

```json ClickBank order Page Payload
{
  "productTitle": "Copywriter Brain Full Course",
  "verificationHash": "4F478B5D",
  "role": "AFFILIATE",
  "affiliateCommission": "0.00",
  "vendor": "copybrain",
  "itemNo": "1",
  "affiliate": "wingatex",
  "trackingCodes": "w23xvj0xjemr590b860q0j8m0v0a0x0u0cip5yc40fmg"
}
```

***

<FaqAccordion
  title="Common Questions"
  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. If you have rebill conversions attributed to traffic generated before AnyTrack was installed, these will not be tracked."
  },
  {
    question: "Can I track direct linking campaigns?",
    answer: "Yes. If you want to send ad traffic from Google or Facebook directly to ClickBank offer links, follow the instructions on how to enable deeplink tracking via AnyTrack."
  },
  {
    question: "Can I use a different subid parameter than the one predefined by AnyTrack?",
    answer: "No."
  },
  {
    question: "Can I track conversions without the click_id?",
    answer: "No. The click_id passed to the ClickBank 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."
  }
]}
/>

{/* Removed broken prohelp.com.ua image: https://prohelp.com.ua/tmp/ClickBank/actions.jpg */}
