Free auditStart free
GuideSquarespace · Analytics

Squarespace Google Analytics

Connect Google Analytics 4 to Squarespace with a G- measurement ID, set cookie consent, and test the data before you trust mismatched numbers.

4 min
read
4
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
In one line

In Squarespace, open the Developer tools panel, click External API keys, paste your Google Analytics 4 measurement ID (it starts with G-) into the Google Analytics account number field, and click Save. The built-in integration needs no script code. Squarespace says statistics can take up to 24 hours to appear in Google Analytics.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
Developer tools > External API keys
Where
Google Analytics account number
Field
G- plus letters and numbers
ID format
Up to 24 hours
Data delay
01How it works

Add the measurement ID

Use a Google Analytics 4 ID. Squarespace says measurement IDs start with G- and come from a Google Analytics 4 property, and that if you connected an older version of Google Analytics you should replace your old ID. To disconnect, delete the ID from the same field and save.

  1. 01

    Copy the ID from Google Analytics

    In Admin, under Data collection and modification, click Data streams. Select the Web tab, click the web data stream, and find the measurement ID in the first row of the stream details. Google says you must be an Editor or above at the property level to see it.

  2. 02

    Open External API keys in Squarespace

    Open the Developer tools panel and click External API keys.

  3. 03

    Paste and save

    In the Google Analytics account number field, enter your measurement ID, then click Save.

02Split of responsibilities

What Squarespace does and what you do

TaskSquarespaceYou
Tracking scriptYes – the built-in integration does this without any script codePaste the ID only
Ecommerce ordersYes – sends city, region, country, order ID, product name, purchase total (includes shipping), SKU, and store name for every orderSet up conversion tracking on Google's end
Your own visitsNo – doesn't count internal traffic while you're logged inCreate a filter in Google Analytics to exclude your IP address
Cookie consentPartial – provides a cookie banner and a Manage cookies buttonSwitch them on and decide the button options
Tag Manager setupsNo – you can still use code-based solutions, but Squarespace can't help set them up or troubleshoot themOwn the setup, or ask the Squarespace forum or an Expert
04Worth knowing

Why the numbers differ from Squarespace Analytics

Squarespace says the two won't match exactly because analytics platforms calculate results differently. The documented causes are specific, so check them before suspecting a broken install.

Cookie choices

When visitors don't accept analytics and performance cookies, Squarespace can't track their behavior, so its visitor counts may be inflated. For example, one visitor who views ten pages counts as ten separate visitors. Google Analytics fills gaps with behavioral modeling.

Last-click referrers

Squarespace identifies a referrer by last click, so its direct traffic may be higher.

Sampling

In Google Analytics, some numbers may be estimates based on a sample of visitors.

Location

Each service records IP addresses differently, so visitor locations may not match.

Screenshot hits

Traffic from a URL ending in /?sqsscreenshot=true comes from the tool that creates your site's screenshot in your Account Dashboard, and Squarespace says to disregard it.

05How it works

Check it worked

  1. 01

    Wait for the first data

    Squarespace says statistics can take up to 24 hours to appear, so don't judge standard reports right after saving.

  2. 02

    Open Realtime

    In Google Analytics, sign in, select Reports from the left menu, and click Realtime. Visit your site in another window and look for active users and the page you viewed. Squarespace notes Google Analytics counts your page previews while you're logged in.

  3. 03

    Use DebugView for event detail

    To enable debug mode for yourself, Google says to use Google Tag Assistant at tagassistant.google.com or preview mode. Then go to Admin, under Data display, click DebugView.

  4. 04

    Expect gaps if consent is on

    Google says events are not visible in debug mode if you've implemented consent mode and users have not given consent for Analytics cookies. Accept cookies in your test browser first.

Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Do I need to paste a tracking script into Squarespace?

No. Squarespace says its built-in integration connects Google Analytics without any script code. You only enter the measurement ID in External API keys.

02Why don't my Squarespace and Google Analytics visitor counts match?

Squarespace documents several causes: cookie choices that inflate its own counts, last-click referrer logic, different bot filtering, Google's sampling, and different location methods.

03Why do I see my own visits in Google Analytics?

Squarespace doesn't count internal traffic while you're logged in, but Google Analytics does. Create an IP address filter in Google Analytics to exclude your visits.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • squarespace.com
  • google.com
  1. 01Connect Google Analytics to your site | Squarespace Help Centersupport.squarespace.com · checked 2026-11-01
  2. 02Measurement ID | Analytics Helpsupport.google.com · checked 2026-11-01
  3. 03Realtime report | Analytics Helpsupport.google.com · checked 2026-11-01
  4. 04Monitor events in DebugView | Analytics Helpsupport.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane