ADVANCED: FOR DEVELOPERS ONLY
(DISCLAIMER: We will not be able to offer support with this function)
<html>
<head>
</head>
<body>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<!-- Begin AEvent Code -->
INSERT YOUR AUDIENCE TRACKING SCRIPT HERE
<!-- End AEvent Code -->
<div id="ae_hop" style="display:none;">INSERT YOUR CUSTOM VALUE HERE</div>
<script type="text/javascript">
jQuery(function() {
var flagcount=0;
var noaff=true;
function checkFlag() {
var checkit=jQuery("#ae_hop").text();
noaff = checkit.includes('{{');
if(noaff == true && flagcount<5) {
window.setTimeout(checkFlag, 500);
flagcount++;
}
else {
if (noaff)
document.location.href = 'https://CHECKOUT_LINK_HERE_WITHOUT_AFFILIATE';
else
document.location.href = 'https://CHECKOUT_LINK_HERE_WITH_AFFILIATE?WHATEVER='+checkit+'/';
}
}
checkFlag();
});
</script>
</body>
</html>