Jump to content

tapfiliate integration with Squarespace

Recommended Posts

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: 

<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">

  tap('create', 'YOUR ACCOUNT ID');

  var myOrder = {}; // get from your server

  var commissions = myOrder.lineItems.map(function(lineItem) {
    return {
      sub_amount: lineItem.subTotal,
      commission_type: lineItem.product.sku

  tap('conversionMulti', 'UNIQUE CONVERSION ID', {}, commissions);


Link to comment
  • Replies 1
  • Views 153
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.