Install Linqry on Squarespace
To add Linqry to Squarespace, open the **Code Injection** panel and paste the two-line snippet into the **Header** field, which Squarespace injects into the `<head>` of every page. Code injection is available on the Core, Plus and Advanced plans (and some legacy plans).
Updated · 2 min read
Install with Code Injection
- Add your domain to Linqry
Start a free trial, add your site's domain and copy the snippet from the Install page.
- Open the Code Injection panel
Open your site's Code Injection panel. Squarespace's help article on code injection links straight to it. The site-wide panel is the one you want, not a single page's Advanced settings.
- Paste the snippet into Header and save
Code in the Header field is injected into the
<head>of every page. Paste both lines there and save.<script>window.linqry=window.linqry||function(){(window.linqry.q=window.linqry.q||[]).push(arguments)}</script> <script defer data-website-id="YOUR_SITE_ID" data-domain="yourdomain.com" src="https://linqry.com/t.js"></script> - Check Realtime
Open the live site in a private window and visit a couple of pages, then open Realtime in Linqry. Each page appears in the live event stream within seconds.
Plans and what can't be tracked
According to Squarespace, code injection is available on the Core, Plus, Advanced and some legacy plans. If you don't see the Header field, check your plan.
Track button clicks and conversions
Links to other websites are recorded automatically as outbound events. For a newsletter or contact form that ends on a thank-you page, create a page-visit goal for that page: it needs no code. For a custom button, add a link carrying data-linqry-event in a Code block, where your plan supports one:
<a href="/book" data-linqry-event="booking-clicked" data-linqry-event-location="homepage">Book a session</a>
Each click sends a booking-clicked event with a location property. Events and goals can be chained into a funnel; custom events covers naming rules.
Squarespace 7.0 templates with Ajax loading
Some version 7.0 templates use Ajax loading to swap page content without a full reload. When a template changes the URL through the History API, the tracker records each page change as a page view by itself. To be sure on your template, click between a few pages and confirm each one appears once in Realtime. Squarespace notes that Ajax loading can interfere with CSS added through code injection; that note is about styles, and the snippet adds none.
Exclude your own visits
When you're logged in to Squarespace and browsing your own site, you're a visitor like any other. In each browser you use, open the live site, open the developer console and run:
localStorage.setItem('linqry_ignore', 'true')Troubleshooting
- Nothing in Realtime? View the page source of the live site and search for
t.js. If it's missing, check you saved the Header field in the site-wide panel. If it's there, compare the site ID with the Install page. - Built-in domain and custom domain? Register the custom domain. Add any other hostname that should count under Additional hosts in site Settings.
- Cookie banner enabled? The tracker sets no cookies and stores nothing in the browser; see the privacy model. Whether your site needs a banner for other reasons is your call with your advisor.
Frequently asked questions
Does Linqry track Squarespace Commerce orders?
Not from the checkout itself, since Squarespace doesn't allow custom code on checkout pages. You can track everything leading up to checkout in the browser, and send confirmed orders from a server with the tracking API.
Can I add the snippet to just one page?
You can, through a page's Advanced settings, but then only that page is tracked. Site-wide Header injection is what you want for analytics.
Sources
- Squarespace Help: Using code injection (checked Nov 9, 2026)
Related
Add the snippet under Settings → Custom Code in the Head, on all pages, loaded once. Needs a published site and a connected domain.
Linqry shows an online store which channels, campaigns and countries bring buyers, not just visits, and where shoppers drop out between product page and purchase. It's cookieless analytics with revenue attribution, funnels and campaign links, at $5 per site per month.
Build a funnel from any custom events or URL paths and see how many visitors reach each step and where they drop off.
Send events from your backend — webhooks, cron jobs, payment confirmations — with a single authenticated POST.
Start measuring your Squarespace site
No card required · 30-day trial · No cookies