September 16, 2026
In this article, we will cover:
- Why Squarespace is a powerful integration for Tapfiliate
- What you need before starting the integration
- Step-by-step setup
- How to validate your Squarespace tracking
- How to improve tracking and best practices
- Advanced optional features
Squarespace Integration Overview
Our Tapfiliate tracking solution allows you to seamlessly integrate affiliate tracking into your Squarespace store. With just a few code snippets added via Code Injection, you’ll be able to track clicks, attribute affiliate-driven purchases, automate commission calculations, and monitor performance in real time.With this Squarespace integration, you can:
- Track affiliate-driven purchases in your Squarespace Commerce store
- Automatically attribute commissions based on total order amount
- Enable lifetime commissions for returning customer attribution
- Monitor affiliate performance in real time
- You need a Squarespace Business or Commerce plan to access Code Injection
- The integration relies on the standard Squarespace checkout process
- Lifetime commissions only work if enabled inside your Tapfiliate account
Prerequisites before starting Integration
Before you start, make sure you have:- A Tapfiliate account (with access to your Account ID and tracking script)
- A Squarespace Business or Commerce plan
- Access to Settings → Advanced → Code Injection
Integration Steps to be completed
Step 1: Add the Tapfiliate Tracking Script- In your Tapfiliate dashboard, go to Integrations → Squarespace and copy the tracking code.
- In Squarespace, navigate to:
Settings → Advanced → Code Injection → Header

<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>Replace YOUR ACCOUNT ID with your Tapfiliate account ID.
4. Click Save.
Step 2: Add the Conversion Tracking Script
- In the same Code Injection page, scroll to the Order Status Page and Order Confirmation Page fields.
- Paste the following snippet into both fields:
<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>Replace YOUR ACCOUNT ID with your Tapfiliate account ID.
Note: Our code is set up to retrieve the order’s subtotal (amount before discounts, taxes & shipping). If you’d prefer to retrieve the Order’s Grand total (amount after discounts, taxes & shipping is applied), replace the {orderSubtotal} tag with {orderGrandTotal}.
3. Save your changes.
How to Validate your squarespace Integration
To confirm the squarespace tracking works correctly:- Create a test affiliate and copy their referral link. Don’t use a real affiliate’s link: the test purchase creates a real commission for them. After the test, disapprove the test commission in the conversion, and cancel the test customer on the Customers page, so that in a program with lifetime or recurring commissions they don’t keep earning a commission every period.
- Visit your site through that link.
- Complete a test purchase.
- In Tapfiliate, confirm that:
- A click has been recorded
- A conversion has been tracked
- Order ID, amount, and customer email are correct
- The conversion shows the customer email as its customer ID, whether or not lifetime commissions are enabled
If anything fails to appear, double-check that your scripts are placed in the correct Code Injection slots.
Note: On Squarespace 7.1, the product name is not passed automatically to third-party tools. As a result, affiliate-tracking platforms like Tapfiliate will not receive the product name by default when a purchase is made.
How to Improve Tracking & Best Practices
- Enable lifetime commissions if you want affiliates to earn from returning customers, and keep Recurring commissions of your commission types on Smart connected, not Time based (see Smart Connected): with Time based, Tapfiliate also creates a conversion for the customer every Recurrence interval, on top of the orders your store reports.
- Test your integration before launching your affiliate program live.
- Ensure your Squarespace plan supports Code Injection.
- Avoid heavy checkout customizations that may bypass the Order Confirmation page.
Advanced or Optional Features for Squarespace
1. Lifetime CommissionsTapfiliate’s conversion snippet includes the {customerEmailAddress} placeholder, allowing Tapfiliate to recognize returning customers and automatically attribute future purchases to the same affiliate (if lifetime commissions are enabled).
2. Additional Customization
If you need to track additional metadata, implement custom commission logic, or pass extra fields into Tapfiliate, you may require a developer to extend your tracking setup.
3. Squarespace + MoonClerk
If you use MoonClerk to process payments while hosting your site on Squarespace, the scripts in this guide don’t track the payments made on your MoonClerk forms: the conversion script runs only on Squarespace’s own order pages, and MoonClerk no longer passes the payment ID and customer ID to the page it redirects payers to after checkout. Keep the Header script from Step 1: it records the clicks, so don’t add the tracking code from step 1 of Integrating with MoonClerk as well, or every click would be counted twice. For how to track MoonClerk payments, see the same article.
Key Notes
- Scripts must be placed precisely in the Header and Order Status/Confirmation sections.
- Always run a full test before inviting affiliates.
- Caching tools or blockers can interfere with tracking.
If you have questions or need assistance, feel free to contact us at support@tapfiliate.com. We’re happy to help!