Please can someone guide me on implementing an affiliate program with Squarespace.
I will need to set different commission types for varies products. It's all in Javascript.
I'm not sure how to use the below code:
<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script><script type="text/javascript">(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');tap('create','YOUR ACCOUNT ID');var myOrder ={};// get from your servervar commissions = myOrder.lineItems.map(function(lineItem){return{
sub_amount: lineItem.subTotal,
commission_type: lineItem.product.sku
};})tap('conversionMulti','UNIQUE CONVERSION ID',{},commissions);</script>
tapfiliate integration with Squarespace
in Customize with code
Posted
Site URL: https://myinnoportal.com
Hi everyone,
Please can someone guide me on implementing an affiliate program with Squarespace.
I will need to set different commission types for varies products. It's all in Javascript.
I'm not sure how to use the below code: