This guide shows how to add the Blue Tracely snippet to every page of a Squarespace site with Squarespace's Code Injection feature.
Before you begin
- Code injection isn't available on every Squarespace plan. Squarespace's guide to adding custom code to your site lists the plans that include it.
- You need permission to change your site's settings.
- The domain on your Script page must be the domain your Squarespace site is published on. See Installing Your Blue Tracely Tracking Script.
Copy your snippet
- On the Script page, select Install next to your domain.
- Select Add it to your site's HTML.
- Under Copy the script, select Copy.

Add the snippet in Squarespace
Open Code Injection as Squarespace's custom code guide describes for your site's version. Then:
- Click into the site-wide Header field. If it already holds code, start a new line after it rather than replacing it.
- Paste your snippet, unchanged.
- Select Save.
Use the site-wide Header field, not a single page's code injection, so the snippet runs on every page.
Check the installation
Open your site in a private browsing window, then go back to the Script page and select Test script next to your domain. When the script answers, you'll see "The script is installed on your website." See Verifying Your Script Installation.