Squarespace

Simple analytics for Squarespace, in 2 minutes

Squarespace Analytics gives you blocky charts. HitCounters gives you live visitor logs, AI traffic detection, and engagement metrics in a dashboard that's actually fun to read.

Get tracking code See live demo

Step-by-step

  1. Get your tracking code
    Sign up free, add your Squarespace site URL, and copy the 16-character tracking code.
  2. Open Code Injection
    In your Squarespace site editor, go to Settings → Advanced → Code Injection. (On the new Squarespace 7.1 dashboard: Settings → Developer Tools → Code Injection.)
  3. Paste into the Header field
    In the Header field, paste the snippet:
    <!-- HitCounters.com -->
    <script async src="https://hitcounters.com/api/tracker.js?code=YOURCODE"></script>
    Replace YOURCODE with your tracking code.
  4. Save
    Scroll to the bottom and click Save.
  5. Verify
    Open your published site in a private/incognito window to trigger a pageview, then go to your HitCounters Sites page and click Verify. Done.

Code Injection requires a Business plan or higher

Squarespace gates Code Injection behind paid plans (Business, Commerce Basic, Commerce Advanced). On the Personal plan, Code Injection is locked and there's no clean alternative. The simplest fix is upgrading to Business; analytics tools across the board (HitCounters, Plausible, GA4) all need this.

FAQ

Will Squarespace strip the script?
No. Code Injection injects scripts as-is into <head> on every page. We're a known async script with no inline event handlers, so it sails through.
Does it track Squarespace blog posts?
Yes — Code Injection runs on every page, including blog posts, products, and member pages.
What about the cookie banner?
You don't need one for HitCounters — the tracker uses scoped localStorage, not cookies. (Squarespace itself sets cookies for things like cart and login; that's separate.)

Ready to track your Squarespace site?

Free plan, no credit card required. Setup takes 2 minutes.

Sign up free See live demo