ClickBank conversion tracking in a tracker works through the HopLink's tid parameter and ClickBank's Postback/Pixels integration: you put your tracker's click ID in tid, ClickBank stores it with the sale, and when the sale completes ClickBank calls your postback URL with {tid} and the earnings. Your tracker matches the click and records the revenue against the traffic source, the sub IDs and the lander that produced it.

This guide shows the exact setup with BATracker: the HopLink format and TID rules, the Postback/Pixels integration and its macros, how to handle upsells and refunds, what the Instant Notification Service is for, how to test without a real sale, and how to read ClickBank revenue per sub ID. It assumes you have a ClickBank affiliate account and a tracker with a verified domain.

Quick answer

  • Click ID into ClickBank: tid={click_id} on the HopLink. Up to 100 lowercase alphanumeric characters and underscores, no dashes.
  • Conversions back: ClickBank Integrations, Postback/Pixels, Add Integration, affiliate role, with clickid={tid}&payout={affiliate_earnings}&txid={receipt_id} on your BATracker postback URL.
  • Preset: BATracker has no ClickBank network preset. Use a custom network; nothing else is specific to ClickBank.
  • Testing: ClickBank's Test Integration sends fake macro values. For a tracker-side test, fire the postback with a real click ID from your Visit Log.
  • Gotcha: ClickBank's {click_id} macro is ClickBank's hop identifier, not your tracker's click ID. Use {tid}.

How ClickBank attribution differs from a CPA network

A typical CPA network gives you an offer link with a sub parameter and a per-offer or global postback. ClickBank is a marketplace: every product has a seller, you get a HopLink per seller, and conversion data comes back through ClickBank's own integrations rather than through the seller. Three consequences:

  1. The only reliable place for your click ID is the HopLink's tid, which ClickBank's HopLinks guide documents as a tracking ID visible to the affiliate only.
  2. ClickBank's Affiliate Tracking Parameters article lists newer parameters alongside tid: extclid (a unique partner click ID up to 256 characters), aff_sub1 to aff_sub5 (100 characters each), traffic_source, campaign, adgroup, ad, creative and offer. These are intended for HopLinks and Direct Tracking Links, not payment links. tid is described as legacy but continues to work.
  3. Conversion data reaches you through the Postback/Pixels integration (URL macros) or through INS (encrypted JSON). Postbacks are what a tracker needs.

The general postback mechanics are in how to set up S2S postback tracking; the rest of this article is ClickBank specific.

Prerequisites

  • A ClickBank account with an affiliate nickname you own or have access to.
  • A verified tracking domain in BATracker (Settings, Domains) and your universal postback URL from Settings, Postbacks.
  • The HopLink for the product you promote, either the readable form or the encrypted form generated in the Marketplace.

Step 1: Build the offer URL with the click ID

ClickBank documents two HopLink shapes:

https://hop.clickbank.net/?affiliate=YOURNICK&vendor=SELLERNICK&tid=TRACKINGID
https://dcb8e1n7uk1rel69sjvbi6sx1s.hop.clickbank.net/?tid=TRACKINGID

The second is an encrypted HopLink, which hides your nickname and is the default for links generated by ClickBank's tools. Both accept tid. In BATracker, create an offer under your ClickBank network and set the URL to the HopLink with BATracker's token in place of the tracking ID:

https://hop.clickbank.net/?affiliate=YOURNICK&vendor=SELLERNICK&tid={click_id}

BATracker replaces {click_id} at redirect time. Offer URLs must contain the token explicitly; the tracker only auto-appends the click ID to lander URLs. The TID rules from ClickBank's guide: up to 100 characters, numbers, lowercase letters and underscores. A dash breaks the TID and the sale will not be tracked. BATracker's click ID is 25 characters of lowercase letters and digits, so it is valid as is. Do not wrap it in a prefix such as bat-{click_id}.

If you want ClickBank's own reports broken down by your sub IDs as well, add the newer parameters with BATracker's sub tokens, for example &aff_sub1={sub1}&aff_sub2={sub2}&traffic_source=push. Values are limited to 100 characters and to letters, digits, space, underscore, dash and plus; invalid values are dropped by ClickBank, so keep sub values simple. You may also pass extclid={click_id} so the click ID appears in ClickBank's log-level reports under the newer parameter, while tid remains the value you use for the postback.

Step 2: Create the network in BATracker

BATracker ships presets for many CPA networks, but not for ClickBank. Add a custom affiliate network named ClickBank. The network entry is organizational: it groups offers and lets you see revenue per network in reports. No network-specific postback setting exists on the BATracker side, because ClickBank calls the same universal postback URL as every other network.

Step 3: Configure the Postback/Pixels integration in ClickBank

Follow ClickBank's Postback/Pixels Integration Guide: in the ClickBank account select Integrations in the left navigation, then Postback/Pixels, then Add Integration. Choose the nickname and the affiliate role for it. Pick the events that should fire; the guide lists order form impression, AddPaymentInfo, Initial Purchase, Upsell Purchase and Combined Conversion. Select the purchase events only. An order form impression is not a conversion and would be recorded as one if you send it to the conversion endpoint.

For the postback URL, start from your BATracker universal postback and insert ClickBank's macros:

https://track.yourdomain.com/postback?clickid={tid}&payout={affiliate_earnings}&txid={receipt_id}

What each macro does, per ClickBank's guide:

ClickBank macro Meaning BATracker parameter
{tid} The tid value from your HopLink, affiliate only clickid (required)
{affiliate_earnings} Your earnings on the transaction payout
{total_transaction_amount} What the customer paid optional, as revenue if you prefer gross
{receipt_id} ClickBank receipt txid for duplicate detection
{event_type} Event type, including rebill, refund and chargeback event, only for non-sale events
{order_currency} Currency code informational
{aff_sub1} to {aff_sub5} Your sub values, affiliate only informational

Two warnings. First, ClickBank's {click_id} macro is ClickBank's identifier for the hop, not the value you put in tid; using it in clickid produces postbacks that match no click. Second, the macro set includes seller-only items such as {affiliate_commission} and {vtid}; they return nothing in the affiliate role.

BATracker's postback accepts clickid (aliases click_id, cid), payout (alias amount), revenue, status, txid (aliases transaction_id, tid) and event (alias type). If payout is missing or empty, the tracker falls back to the offer's payout, which is handy when you set a fixed expected commission on the offer.

Upsells, rebills and refunds

Each upsell purchase can fire its own postback with its own {receipt_id}, so you get separate conversions for the same click. BATracker marks a second conversion with the same event type on the same click as a duplicate (is_duplicate), and reports exclude duplicates by default. If upsell revenue matters to you, either enable the workspace setting that counts duplicate conversions, or use ClickBank's Combined Conversion event so one postback carries the whole order. Check the event descriptions in the ClickBank integration screen for how Combined Conversion totals are calculated before relying on it.

Refunds and chargebacks are identified by {event_type}. BATracker accepts a payout of 0, and a refund can be sent with event=refund so it is stored as a separate event type rather than as a second sale. The tracker does not subtract refunds from revenue automatically; reconcile net earnings in ClickBank's reporting and treat the tracker's revenue as gross.

The Instant Notification Service

ClickBank's Instant Notification Service posts an encrypted JSON notification to a URL you host for sales, rebills, refunds, chargebacks and other events. Version 8 includes an affiliateTrackingParameters array with extclid for the affiliate role. The payload is encrypted with AES-256 using a secret key you set, your endpoint must respond within 3 seconds, and the feature is requested under advanced vendor settings. It is designed for people writing code against it. For a tracker integration, the Postback/Pixels URL does the same job without decryption, so INS is only worth the effort if you need the full transaction record.

Testing the setup

ClickBank's Test Integration tool (on the Integrations page, or the Action menu of the integration) sends your postback URL with fake values for every macro. Because the fake {tid} is not one of your clicks, BATracker answers with a 400 and no conversion is created. That is expected; the test still proves ClickBank can reach your domain over HTTPS. Note that orders placed with ClickBank's test credit cards do not trigger postback events, so a test card purchase will not show up either.

To test the tracker side:

  1. Click your campaign URL once and open the Visit Log. Copy the click ID.
  2. Call https://track.yourdomain.com/postback?clickid=<that id>&payout=37.50&txid=test1 in a browser.
  3. Open the Conversion Log. The conversion should be there with payout 37.50 and the right campaign, offer and sub IDs.
  4. Call the same URL again. BATracker returns success but creates no second conversion, because the transaction ID is a duplicate.
  5. Wait for the first real sale and compare the receipt in ClickBank's transaction report with the txid in the Conversion Log.

Common mistakes

  • A dash or uppercase letter in the TID. Use the bare {click_id} token. Prefixes with dashes break tracking per ClickBank's guide.
  • Using {click_id} instead of {tid} in the postback. The names look similar; only {tid} returns your value.
  • Sending order form impressions as conversions. Pick purchase events only, or route impressions to a separate custom event name.
  • Forgetting txid. Without {receipt_id} you lose duplicate protection on resends.
  • Expecting net revenue. Refunds arrive as events, not as negative payouts. Reconcile in ClickBank.
  • Payment links. The affiliate tracking parameters do not work on payment links; use HopLinks or Direct Tracking Links.

Reading ClickBank revenue by sub ID

Because the click ID ties the sale to the original click, every ClickBank sale lands in BATracker with the traffic source, campaign, lander, country, device and sub1 to sub20 of that click. Group the report by the sub that holds your creative or placement and read revenue, cost, profit, ROI and EPC per row. ClickBank sales are high ticket and low frequency, so judge EPC over weeks rather than days; what is EPC and how to calculate it covers the sample size question. If you split test landers in front of the HopLink, how to split test landing pages explains the path weights and significance.

Bottom line

ClickBank tracking comes down to two things: tid={click_id} on the HopLink and a Postback/Pixels integration that sends {tid}, {affiliate_earnings} and {receipt_id} to your tracker's universal postback URL. Mind the TID character rules, do not confuse ClickBank's {click_id} with your own, decide how you want upsells counted, and test with a manual postback before the first sale. From there, ClickBank revenue sits in the same reports as every other network, broken down by the sub IDs you already use.