This is done easily using Squarespace's built-in Code Injection feature.
Tracking Code (HEAD Section): Your primary script for real-time analysis.
NoScript Tracking Code (BODY Section): Your essential fallback for 100% coverage.
Important Prerequisite:
The Code Injection feature is a premium feature on Squarespace. You must have a Business, Commerce, Professional, or Premium plan to install third-party code like ClickSambo's.
Log in to your ClickSambo account.
Navigate to Account > Account Settings > Domain Tracking Setup.
Select your domain and copy both the Tracking Code (HEAD Section) and the NoScript Tracking Code (BODY Section).
Log in to your Squarespace account.
From the Home Menu, navigate to Settings > Website > Code Injection.
You will see several text boxes. You will use two of them: Header and Footer.
In the HEADER box, paste your Tracking Code (HEAD Section).
In the FOOTER box, paste your NoScript Tracking Code (BODY Section). (Note: The "Footer" field correctly places this code just before the closing </body> tag, which is the proper location for this script).
Click Save at the top of the page.
Open any page of your live website in a new incognito browser window.
Right-click on the page and select "View Page Source".
Confirm the HEAD code: Search the code (Ctrl+F or Cmd+F) for cdn.clicksambo.com. You should find your script inside the <head> section.
Confirm the BODY code: Search again for ping.clicksambo.com. You should find your <noscript> code snippet located towards the end of the page, before the closing </body> tag.
Once you have confirmed both codes are present in the correct locations, your Squarespace site is fully protected by ClickSambo.