Tracking Conversion - Clickbank (Affiliate)
Tracking Your Sales with Clickbank (Affiliate)
This article explains how to set up VTurb conversion tracking and how to integrate this functionality with Clickbank.
Go to Conversion Tracking in VTurb and Select Clickbank.
Click on Settings and then on Conversion Tracking.
If you haven’t integrated with any platform yet, you will see the following screen:

Then click the Add platform button.
Next, select Clickbank and click **Continue

Then, select a tracking parameter that is NOT being used in your traffic sources and click Confirm.
We recommend using unique_aff_sub5 if you are also using Utmify

Now, just click on the Webhook URL field to copy the URL that will be used in the next step

Click here to learn more about the RedTrack integration.
Configuring the Webhook in Clickbank
- Click on the Accounts section and select your account.


- A new page will open; click on Vendor Settings.

- Scroll down to ADVANCED TOOLS > Click Edit.

- Fill out the form, review the terms of use, and confirm that you have read and agree to the terms.
- Create a secret key.
- Enter the VTurb webhook URL in the Instant Notification URL field.

- After saving, copy your secret key and paste it into VTurb under the Clickbank integration.

Configure your hoplink in Clickbank
For affiliate tracking to work correctly, it is also necessary to configure the offer hoplink. Below we show the step-by-step process.
- Go to Affiliate Link Tools.
- Define the affiliate nickname and the producer nickname.
- Check the Hoplink option
- Click Edit parameters
- Keep all aff_sub and unique_aff_sub checked, only them. The other parameters can be unchecked.
Example:

- After that, copy your hoplink here:

- With the hoplink in hand, paste it into the code below in YOUR HOPLINK:
<script>
(function () {
var hopBase = "YOUR HOPLINK";
function getParam(name) {
try {
return new URL(window.location.href).searchParams.get(name) || "";
} catch (e) {
return "";
}
}
function extractId(value) {
if (!value) return "";
var parts = value.split("|");
return parts.length > 1 ? parts[parts.length - 1] : parts[0];
}
function buildAndFireHopLink(vturbCk) {
var utm_source = extractId(getParam("utm_source"));
var utm_campaign = extractId(getParam("utm_campaign"));
var utm_medium = extractId(getParam("utm_medium"));
var utm_content = extractId(getParam("utm_content"));
var utm_term = extractId(getParam("utm_term"));
var params = [
"aff_sub1=" + encodeURIComponent(utm_source || vturbCk || ""),
"aff_sub2=" + encodeURIComponent(utm_campaign || vturbCk || ""),
"aff_sub3=" + encodeURIComponent(utm_medium || vturbCk || ""),
"aff_sub4=" + encodeURIComponent(utm_content || vturbCk || ""),
"aff_sub5=" + encodeURIComponent(vturbCk || utm_term || ""),
"unique_aff_sub1=" +
encodeURIComponent(utm_source || vturbCk || ""),
"unique_aff_sub2=" +
encodeURIComponent(utm_campaign || vturbCk || ""),
"unique_aff_sub3=" +
encodeURIComponent(utm_medium || vturbCk || ""),
"unique_aff_sub4=" +
encodeURIComponent(utm_content || vturbCk || ""),
"unique_aff_sub5=" + encodeURIComponent(vturbCk || utm_term || ""),
];
var hopUrl = hopBase + "?" + params.join("&");
var iframe = document.createElement("iframe");
iframe.src = hopUrl;
iframe.width = "0";
iframe.height = "0";
iframe.style.cssText =
"display:none;width:0;height:0;border:0;position:absolute;left:-9999px;";
iframe.setAttribute("tabindex", "-1");
iframe.setAttribute("aria-hidden", "true");
iframe.setAttribute("title", "");
if (document.body) {
document.body.appendChild(iframe);
} else {
document.addEventListener("DOMContentLoaded", function () {
document.body.appendChild(iframe);
});
}
console.log("[HopLink] Extracted IDs:", {
aff_sub1: utm_source,
aff_sub2: utm_campaign,
aff_sub3: utm_medium,
aff_sub4: utm_content,
aff_sub5: vturbCk || utm_term,
});
console.log("[HopLink] URL:", hopUrl);
}
var player = document.querySelector("vturb-smartplayer");
if (player) {
player.addEventListener("player:ready", async function () {
try {
var url = await player.urlUpdater("https://placeholder.com");
var parsedUrl = new URL(url);
var vturbCk =
parsedUrl.searchParams.get("unique_aff_sub1") ||
parsedUrl.searchParams.get("unique_aff_sub2") ||
parsedUrl.searchParams.get("unique_aff_sub3") ||
parsedUrl.searchParams.get("unique_aff_sub4") ||
parsedUrl.searchParams.get("unique_aff_sub5");
buildAndFireHopLink(vturbCk);
} catch (e) {
console.warn("[HopLink] Error getting urlUpdater:", e);
buildAndFireHopLink("");
}
});
} else {
buildAndFireHopLink("");
}
})();
</script>
- After that, copy all the code and paste it into your sales page HTML. You can place it in the body or below the video code
And that’s it, your Clickbank integration is successfully completed!
Now the conversions from your videos that sell through Clickbank will be tracked inside VTurb.
If you have any questions or need support during the process, our team is available to help!
To learn more about Conversion Tracking, just click the link below:
Updated on: 03/25/2026
Thank you!
