To integrate Clickbank email attribution into your confirmation page, follow these steps.
Part 1: Capture the Hop
Go into your AEvent Timeline and click on Settings.
Click on the Registration heading, scroll to the bottom and click “Add Custom Form Field”.
In Field Name, type in hop.
Under Form Type, select query.
Click Create.
Part 2: Add to Confirmation Page
For this step, you will use the code below these instructions. In the code, you will need to replace the VENDOR_ID with your Clickbank Vendor ID.
Copy the entire code.
Go into Clickfunnels 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;">https://ea.clickbank.net/?vendor=YOUR_VENDOR_ID&affiliate={{!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;">');
}
}
checkFlag();
});
});
</script>
(make sure to change YOUR_VENDOR_ID to your Clickbank Vendor ID)