Integrating with Squarespace

Out-of-the-box features:
  • Conversion tracking
  • Commission based on order amount
  • Supports lifetime commissions
  • Track affiliate coupon code conversions
  • Auto-handle recurring commissions
  • Auto-handle refunds and disputes

Note: If you are using Squarespace in combination with Moonclerk, please proceed as follows: follow a combination of steps 1, 2 and 3 of this Squarespace guide, though using the code reported in the Moonclerk guide. Next, follow steps 3 & 4 of the Moonclerk guide.

  1. In the Squarespace editor, select Settings -> Advanced -> Code Injection
  2. Add the following code to the Header code box.

    <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))))', { integration: "squarespace" });
        tap('detect');
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  3. On the same page, find the “Order Status Page” box and the “Order Confirmation Page” box. Then, please, paste the following code in both boxes:

    <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))))', { integration: "squarespace" });
        tap('conversion', '{orderId}', {orderSubtotal}, {'customer_id': '{customerEmailAddress}'});
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  4. Hit save and you are all done!

Note: Our code is set up to retrieve the order’s subtotal (amount before discounts, taxes & shipping). If you’d prefer to retrieve the the Order’s Grand total (amount after discounts, taxes & shipping is applied), replace the {orderSubtotal} tag with {orderGrandTotal}.

Important

Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.

Start a 14-day free trial with all our features enabled