Skip to main content
All CollectionsGuides / Tutorials / FAQIntegrationsClickBank
How To Integrate ClickBank Email Attribution Into Your Confirmation Page
How To Integrate ClickBank Email Attribution Into Your Confirmation Page

Integrate Clickbank Email Attribution into your Confirmation Page

AEvent avatar
Written by AEvent
Updated over a week ago

In this tutorial, you'll learn how to set up email attribution for ClickBank on your confirmation page. By integrating ClickBank email attribution, you can accurately attribute emails from registrants with the affiliate ID of the referring affiliate. This allows for proper commission tracking when the registrant makes a purchase using the attributed email.

You can use this implementation for Email Attribution with ClickBank, OR you can use our Native Clickbank Integration for easier implementation.

By following this tutorial, you'll be able to capture the affiliate ID (hop) and the registrant's email on your registration page. Then, you'll learn how to use that information to set up email attribution on your confirmation page.

Step-By-Step Tutorial:

Step 1: Capture the Affiliate ID (Hop)

  • Go to the AEvent timelines you are using and go to the registration page settings.

  • Add a custom registration field, name it "hop," and select "query" as the form type.

  • Click "Create" to capture the hop value from the address field's query string.

Step 2: Verify the Captured Hop Value on the Confirmation Tab

  • Go to the timeline's Code section and click on the Confirmation heading.

  • Check the custom fields and make sure there is one there for hop. ie. {{subscriber-hop}}.

Step 3: Customize Email Attribution Code

  • For this step, you'll use the code below these instructions.

  • In the code, you'll need to replace the VENDOR_ID with your ClickBank Vendor ID.

  • Copy the entire code.

Step 4: Insert Attribution Code on Your Confirmation Page

  • In your Auto-Responder (e.g Clickfunnels), go to your Confirmation Page.

  • Add a Custom Javascript / HTML element anywhere on the page.

  • Click on “Open Code Editor” and paste in the code.

  • Close and Save.

Custom Code to Paste Into Confirmation Page HTML Element

<div id="ae_holder" style="display:none;">{{!subscriber-hop}}&custemail={{!email}}</div><div id="aecb_hardcode"></div>

<script type="text/javascript">

$( document ).ready(function() {

jQuery(function() {

function checkFlag() {

var checkit=jQuery("#ae_holder").text();

//console.log("Test: "+checkit.includes('{{'));

if(checkit.includes('{{') == true) {

window.setTimeout(checkFlag, 500);

} else {

//console.log("Test Passed: "+checkit);

jQuery("#aecb_hardcode").html('<img src="'+checkit+'" style="height:0px;width:0px;">');







Step 5: Finalize and Test the Integration

  • Review the changes you made to ensure the code and vendor ID are correctly implemented.

  • Test the integration by simulating a registration and purchase flow.

  • Verify that the email attribution is working correctly by checking if the affiliate commissions are properly attributed to the referring affiliate.

Congratulations! You've successfully integrated ClickBank email attribution into your confirmation page using AEvent. By capturing the affiliate ID (hop) and using it in conjunction with the registrant's email, you can accurately track affiliate commissions when a sale is made.

Ensure that you have customized the code with your vendor ID and have tested the integration to confirm its functionality.

Remember, you can apply the same steps regardless of the page builder or HTML editor you are using.

If you have any further questions or encounter any issues, feel free to reach out to the AEvent support team for assistance.

Happy attributing and tracking those affiliate commissions!

Did this answer your question?