How to Add Affiliate Program to Squarespace with Blossu

Add referral tracking to your Squarespace site using Code Injection. This feature requires a Business plan or higher.

Plan requirement

Code Injection is only available on Squarespace Business plan or higher. If you're on a Personal plan, you'll need to upgrade to add custom tracking code.

Image: Squarespace + Blossu integration overview
1

Open Code Injection

In your Squarespace dashboard, go to Settings → Developer Tools → Code Injection.

Image: Accessing Code Injection in Squarespace
2

Add to Header

Paste this script in the "Header" text area. This will add the script to every page on your site.

HTML
<script
  async
  src="https://js.blossu.com/v1/blossu.js"
  data-program-id="YOUR_PROGRAM_ID"
></script>

Replace YOUR_PROGRAM_ID with your actual program ID from the Blossu dashboard.

Image: Adding the script in Code Injection
3

Save changes

Click Save at the top of the page.

To verify the installation:

  • Visit your site with a test referral link (e.g., yoursite.squarespace.com?via=test)

  • Open your browser's developer console

  • Check if window.blossu_ref_id is defined

Image: Verifying the installation

How it works

When a visitor arrives via a partner referral link, the script captures the referral and stores it as a first-party cookie. This persists for 60 days and is used to attribute any conversions to the referring partner.

Next steps

Now that you have tracking set up, you need to connect your payment platform to automatically track conversions and calculate partner commissions.