Squarespace · free forever · no signup

Add a free hit counter to Squarespace

This guide shows how to add a Squarespace hit counter in about a minute, with no extension: you paste one snippet into Settings → Advanced → Code Injection → Footer, because an all-time total is a footer artefact — nobody scrolls up to check it. No extension. Squarespace renders raw HTML and script tags inside a Code Block, so there is nothing to install from the Extensions marketplace.

What this Squarespace hit counter shows

The hit counter shows a running total of visits, the classic counter from the early web rebuilt with modern styles. It counts real page loads and filters known bots on the server, so the number isn't padded by crawlers. It suits personal sites, blogs and hobby projects where a visible total is part of the charm.

How to add a hit counter to Squarespace

  1. 1Open Settings → Advanced → Code Injection.
  2. 2Paste the snippet into the Footer field, which injects before the closing </body> tag.
  3. 3Save and reload the live site.
  4. 4This is the slot to use for site-wide widgets: one paste, every page, including pages you add later.
On the Personal plan, or no Code Injection? No Code Injection on your plan? Edit your site footer, add a Code Block there, and paste the snippet — the footer is shared across pages, so you still get full coverage.

Where it works best on a Squarespace site

On Squarespace, the right spot is Settings → Advanced → Code Injection → Footer. An all-time total is something people glance at, not something they look for, so the footer is the right home for it. Pick a theme that matches your site; louder themes suit personal pages, while plainer ones fit business sites.

Squarespace plan and editor requirements

On Squarespace's current plans, Code Injection (Settings → Advanced → Code Injection) is available on Core, Plus and Advanced, and on the older Business and Commerce plans, but not on Basic or the older Personal plan. Code Blocks exist on every plan, but JavaScript inside them only runs on those same higher plans, so on Basic you'll see the block but not the widget. Custom code never runs on checkout pages.

Three things that trip people up on Squarespace

Two different plan gates to know about

Code Injection (Settings → Advanced) needs Core, Plus or Advanced (or the older Business and Commerce plans). Code Blocks exist on every plan, but JavaScript inside them only runs on those same plans. So on Basic or the older Personal plan you see the block but not the widget — move up a plan or use a service that renders a plain image.

The editor never shows the widget

Squarespace renders a grey placeholder for Code Blocks while you're editing and doesn't run injected scripts in the editor at all. Save, then open the live URL in a normal tab — and hard-refresh, because Squarespace caches aggressively at the edge. Most 'it doesn't work' reports are an editor-only check.

7.0 templates with AJAX loading can swallow it

Brine-family 7.0 templates load pages via AJAX, so a script placed in the body may not re-run when a visitor clicks through your nav — the widget appears on first load and vanishes afterwards. Fix: Site Styles → uncheck Enable Ajax Loading, or put the snippet in Code Injection Header instead so it runs once for the whole session.

Honest limits

A visit total says nothing about who visited or whether they stayed. For decisions about your site, use your analytics; the hit counter is for showing a number, not analysing one.

What you get, and what it costs

  • Free forever — there is no paid tier, no trial and no card
  • No signup for the badge-style widgets; the live ones create a site ID inline from your URL
  • Async script — it never blocks your page from rendering
  • Works in 7.1 and 7.0 templates, in Code Blocks on every paid plan, and in site-wide Code Injection on Business and above
  • Bots filtered server-side on every visitor-counting widget

Squarespace questions

Do I need an extension to add a hit counter to Squarespace?

No extension. Squarespace renders raw HTML and script tags inside a Code Block, so there is nothing to install from the Extensions marketplace. Installing an extension for this would mean another dependency and update cycle just to show one widget.

Where exactly does the snippet go on Squarespace?

Settings → Advanced → Code Injection → Footer, because an all-time total is a footer artefact — nobody scrolls up to check it.

Will it slow my Squarespace site down?

It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Squarespace serves your site from its own CDN and the snippet is one async tag, so it loads beside your content. Prefer the Footer field over Header in Code Injection for anything script-based — it keeps the tag out of the critical path on every page at once.

Does it work with page builders like Squarespace 7.1 editor?

Squarespace 7.1 editor: Add Block → Code. Code Injection: Settings → Advanced → Header or Footer. Page Settings: Advanced → per-page code injection on Business and above. 7.0 templates: same Code Block, plus turn off Ajax loading. Any builder with a raw-HTML or code block will render it.

Does the hit counter count bots?

Known bots and crawlers are filtered out on the server before a visit is counted, so the total reflects real browsers as closely as we can make it.