Settings > Advanced > Code Injection > Header · open source (MIT) · ask in plain English

Add analytics to Squarespace.

Squarespace bundles its own analytics but locks the interesting cuts behind higher plans and rigid reports. smolanalytics is one script tag you paste into Squarespace's header code injection. It autocaptures pageviews, clicks, form submits and errors with zero code, and you ask the numbers back in plain English.

Settings > Advanced > Code Injection > Header
<script src="https://YOUR-INSTANCE/sdk.js"></script>
<script>smolanalytics.init("WRITE_KEY", { host: "https://YOUR-INSTANCE" })</script>

Paste both tags into the Header box under Settings > Advanced > Code Injection, then save. Site-wide Code Injection needs a Business plan or higher.

how do I add analytics to squarespace?

Squarespace bundles its own analytics but locks the interesting cuts behind higher plans and rigid reports. smolanalytics is one script tag you paste into Squarespace's header code injection. It autocaptures pageviews, clicks, form submits and errors with zero code, and you ask the numbers back in plain English.

Squarespace puts head-level scripts at Settings > Advanced > Code Injection > Header, which loads them on every page of the site. Both smolanalytics tags go in that box. Note the Code Injection panel requires a Business plan or higher on Squarespace; once it is available, save and autocapture begins with no per-block setup.

Squarespace sites are usually storefronts, portfolios or service pages, so the signal is form intent and product interest: which contact form gets abandoned, which product page gets the most clicks, where visitors rage-click a gallery. That is all captured automatically. Use smolanalytics.track("add_to_cart", { item: "tshirt" }) from a code block for named commerce events and identify(customerId) at checkout. Then ask "contact form submits by page this week" in plain English, cookieless and with no consent banner cluttering your carefully designed pages.

Honest pricing: 14-day full trial, no credit card. Then Solo $29/mo, never metered on seats or sites. Overage is $5/million with an emailed receipt, the dashboard never locks, and self-hosting the single Go binary is free forever (MIT).

Add analytics to Squarespace tonight.

One snippet, or one endpoint. Tomorrow morning the verdict tells you which part of the funnel to fix.

questions

How do I add analytics to Squarespace?
Squarespace bundles its own analytics but locks the interesting cuts behind higher plans and rigid reports. smolanalytics is one script tag you paste into Squarespace's header code injection. It autocaptures pageviews, clicks, form submits and errors with zero code, and you ask the numbers back in plain English.
Do I need a cookie banner?
Not in cookieless mode. smolanalytics can run without storing anything on the device, so there is no consent banner to add. You still get visitors, referrers, funnels, retention, and paths, and AI-assistant referrals (chatgpt.com, claude.ai, perplexity.ai) show up as their own channel.
Is it enough for a real product, or just page counts?
It does funnels, retention, paths, cohorts, and a daily verdict on what to fix, from the same events, and you ask it in plain English. It deliberately skips session replay, feature flags, and experiments. If you want a straight answer on what to fix, that you own and can self-host free, it fits.

keep reading