How-to · Squarespace

Add Google Analytics to your Squarespace site

How to connect Google Analytics 4 to your Squarespace website, where the Measurement ID goes, and what to know about consent.

1 min readBy Wiredeo

A laptop and phone showing visitor charts on a wooden desk
Photo: Vagaro, Unsplash

Steps checked against the platform’s own help pages on 27 October 2026. Menus move; if yours look different, tell us and we’ll update this page.

Squarespace has a built-in field for your Google Analytics ID.

Steps

  1. In Google Analytics, copy your Measurement ID (G-…).
  2. In Squarespace, open Developer tools and click External API keys.
  3. Paste the ID into Google Analytics account number and click Save.

Good to know

  • Squarespace says data can take up to 24 hours to appear.
  • With the cookie banner’s Manage cookies option on, Squarespace waits for consent before placing analytics cookies.

Squarespace says to open the Cookies and Data Privacy panel, turn on Cookie banner, and turn on Manage cookies button. Then optional cookies, Google Analytics included, aren’t set until a visitor consents. Decline All button is optional. This applies only to Squarespace’s own banner; a third-party consent tool is managed through its provider.

Why the numbers differ

Google Analytics counts your page previews while you’re logged in; add an IP filter in Google Analytics to exclude them. Cookie refusals can push Squarespace’s visitor counts higher, since Google Analytics estimates untracked visitors. Some Google figures are sampled, and the two tools filter bots and record locations differently. On a Version 7.0 site, Google logs only the landing page unless Ajax loading is off.

To disconnect, delete the ID in the same field and click Save.

Prefer something simpler or cookie-free? Compare options in Google Analytics vs Cloudflare vs Plausible vs Fathom, and track the five numbers that matter.

Add Google Analytics on other platforms

Compare all platforms for this task

More how-tos for Squarespace

Sources

  1. Squarespace Help Center, Using Google Analytics with Squarespace 2026

Filed under Getting foundRunning your site

Next step

Not sure where your own business stands?

A two-minute check-up shows where you are losing time and customers, and what to fix first.

Take the check-up Request an audit