# ClickBank integration

Source: https://skro.eu/docs/integrations/clickbank-integration

Connect ClickBank to Skro, map click IDs, and configure postbacks to attribute conversions and revenue to your campaigns.

<Callout type="warn">

This guide uses ClickBank’s global server-to-server (S2S) postback integration.

</Callout>

<Steps>

## Step 1. ClickBank (S2S) global postback [#step-1-clickbank-s2s-global-postback]

1. Log in to your Skro account and go to **Custom Conversions** and add 3 different events there.

2. First event name is **Upsell**.

![Upsell](/images/docs/clickbank/clickbank-s2s-4.png)

3. Second event name is **InitiateCheckout**.

![InitiateCheckout](/images/docs/clickbank/clickbank-s2s-3.png)

4. Third event name is **Purchase**.

![Purchase](/images/docs/clickbank/clickbank-s2s-5.png)

5. Now, go back to Clickbank and set up Postback URL and customize it as per the target event types.

6. In your ClickBank account go to **Integrations** → **Postback/Pixels** → **Add Integrations** → **Custom Postback/Pixel**

7. In the **Event Types** drop-down select **Upsell Purchase**, **Initial Purchase**, **Initial Order Form Impression** and enable the **Customize URL per event type** toggle → add Skro Postback URL's and add &ce=eventname to each Postback URL with the event name you want to track and then click **Save**.

Upsell Purchase Postback URL:

<Callout type="info">

**`https://skrotrack.com/postback?clickId={tid}&payout={affiliate_earnings}&transactionId={order_id}&ce=Upsell`**

</Callout>

Initial Order Form Impression Postback URL:

<Callout type="info">

**`https://skrotrack.com/postback?clickId={tid}&ce=InitiateCheckout`**

</Callout>

Initial Purchase Postback URL:

<Callout type="info">

**`https://skrotrack.com/postback?clickId={tid}&payout={affiliate_earnings}&transactionId={order_id}&ce=Purchase`**

</Callout>

![Add ClickBank S2S integration](/images/docs/clickbank/clickbank-s2s-1.png)

## Step 2. Add ClickBank offer to Skro [#step-2-add-clickbank-offer-to-skro]

1. Navigate to **Offers** and press **Create**.

2. Enter your offer name.

3. Copy the offer link from ClickBank to the **Offer URL** field and append `&tid={clickId}` parameter to the end of the offer URL.

![ClickBank as offer form](/images/docs/clickbank-offer-form.jpg)

4. Choose **ClickBank** from the Affiliate Network dropdown menu or create new.

5. Clickbank setup as **Affiliate Network** on Skro.

![Add ClickBank as affiliate network into Skro](/images/docs/clickbank/clickbank-s2s-2.png)

The integration is ready. Continue by creating a campaign.

</Steps>

## Verify the setup [#verify-the-setup]

Follow a campaign link and complete a test conversion using your provider’s test workflow. Confirm that the original click ID reaches the provider and is returned to Skro, then check the event and revenue in your campaign report.

<Callout title="Troubleshooting">

If data is missing, check the selected workspace, integration, campaign, and reporting date range. Compare parameter names and macro values with the examples in this guide before repeating the test.

</Callout>

## Related guides [#related-guides]

<Cards>

<Card title="Postback URL parameters" href="/docs/postback/parameters-in-postback-urls" />

<Card title="Custom conversions" href="/docs/postback/custom-conversions" />

</Cards>
