Hi. How can we help?

How to use the YITH Affiliates plugin in connection with Clickfunnels

With the following script added on Clickfunnels sections you can connect clickfunnel with your site with affiliate and allow the possibility to affiliate to win commissions from their Clickfunnels pages.

 

<script>

window.onload=function(){

var tags = document.getElementsByTagName("a");

for ( var i=0; i<tags.length; i++ ){

tags[i].addEventListener("click", function(event){

event.preventDefault();

var linkhref = new URL( this.href );

var params = (new URL(window.location.href)).searchParams;
var ref = params.get('ref');

if ( ref !== null ) {

linkhref.searchParams.set( 'ref', ref );

}
window.location = linkhref.href;
});
}
}

</script>

Your affiliate  need to add the ref=affiliate_referral_number at the end to the call to action link.

Was this article helpful?
1 out of 1 found this helpful

Back to Help Center >