Squarespace · free forever · no signup

Add a free hit counter to Squarespace

One snippet, pasted into Settings → Advanced → Code Injection → Footer — because an all-time total is a footer artefact — nobody scrolls up to check it. Squarespace hosts millions of small-business and portfolio sites, and almost none of those sites want another extension just to render a small piece of live data. No extension. Squarespace renders raw HTML and script tags inside a Code Block, so there is nothing to install from the Extensions marketplace.

The free hit counter is back — yes, it's still free. The classic Geocities visitor counter from 1996, rebuilt with a tamper-proof MutationObserver, server-side bot filter, and 6 themes from LED-pixel nostalgia to minimal-modern flat. Drop the snippet on any HTML page and the count is live in 30 seconds.

How to install it on 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.

Three things that trip people up on Squarespace

Two different plan gates to know about

Code Injection (Settings → Advanced) needs a Business plan or higher. Code Blocks exist on every plan, but JavaScript and iframes inside them only execute on paid plans above Personal. So Personal users see the block but not the widget — move up a plan or use a service that renders a plain image. Everything from Core upward works with a Code Block.

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.

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 an extra dependency, an update cycle and a security surface to render one snippet. Paste it into Settings → Advanced → Code Injection → Footer and you're done.

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. Open Settings → Advanced → Code Injection. Paste the snippet into the Footer field, which injects before the closing </body> tag. Save and reload the live site. This is the slot to use for site-wide widgets: one paste, every page, including pages you add later.

Will it slow my Squarespace site down?

No. The script tag is async, so it never blocks your page from rendering, and the widget draws itself after your content is already on screen. 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, because there's nothing framework-specific in the snippet.