Squarespace
Add Loamly to your Squarespace site
Squarespace has built-in code injection that makes adding Loamly straightforward. This guide walks you through the setup in just a few steps.
Add the tracking script
Business plan required
- Log in to your Squarespace admin panel
- Go to Settings → Developer Tools → Code Injection
- In the Header field, paste the following:
<script
src="https://app.loamly.ai/t.js?d=yourdomain.com"
defer
></script>- Click Save
Replace your domain
yourdomain.com with your actual Squarespace site domain. If you use a custom domain, use that instead of the default Squarespace URL.Enable AI verification (recommended)
The client-side script tracks page views, but to unlock the full power of Loamly you need server-side setup. This enables AI bot crawl detection, RFC 9421 signature verification, bot-to-click temporal matching, and prompt-to-crawl correlation with your Intelligence data. Without it, you miss the connection between AI bots crawling your site and the humans who visit after.
See the AI Visitor Verification guide for setup instructions.
Verify installation
- Visit your Squarespace site in a new browser tab
- Right-click → View Page Source
- Search for "loamly" to confirm the script is in the head
- Check your Loamly dashboard for the visit
Troubleshooting
Not seeing visits?
- Make sure the domain in the script matches your actual site domain
- Wait at least 2 minutes after installing — data is not instant
- Confirm the code is placed in the Header field, not the Footer
Ad blockers
Some browser extensions block tracking scripts. Try visiting your site in an incognito window with extensions disabled.
Debug mode
Open your browser's developer console and run:
Loamly.debug(true)This will log tracking events to the console so you can confirm the script is working.
Need help? Email hello@loamly.ai