Skip to main content
All CollectionsIntegrations
Integrating with Squarespace
Integrating with Squarespace

Learn how to integrate Tapfiliate with Squarespace.

Maria avatar
Written by Maria
Updated over a year ago

Our Squarespace integration supports following functionalities:

  • Conversion tracking

  • Tracking commissions based on the order amount

  • Lifetime commissions

How to integrate your Squarespace website with Tapfiliate:

  1. In the Squarespace editor, go to Settings -> Advanced -> Code Injection

  2. Add the click detect 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>

Don't forget to replace the 'YOUR ACCOUNT ID" parameter with your actual account ID. It can be found in your account Profile Settings.

3. Find the “Order Status Page” box and the “Order Confirmation Page” box on the same page and 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>

Don't forget to replace the 'YOUR ACCOUNT ID" parameter with your actual account ID.

If you want to retrieve order's grand total amount (after discounts, taxes & shipping is applied) please replace the default {orderSubtotal} tag with {orderGrandTotal}. You can additionally check out our Squarespace integration guide here.

Did this answer your question?