# 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.

Canonical: https://scaplet.com/seo/squarespace/google-analytics

Guide Squarespace Squarespace · 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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fsquarespace%2Fgoogle-analytics%20(%22Squarespace%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fsquarespace%2Fgoogle-analytics%20(%22Squarespace%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fsquarespace%2Fgoogle-analytics%20(%22Squarespace%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fsquarespace%2Fgoogle-analytics%20(%22Squarespace%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## 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

_01_How 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](/glossary/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](/glossary/google-analytics-4) account number field, enter your measurement ID, then click Save.

_02_Split of responsibilities

## What Squarespace does and what you do

| Task | Squarespace | You |
| Tracking script | Yes – the built-in integration does this without any script code | Paste the ID only |
| Ecommerce orders | Yes – sends city, region, country, order ID, product name, purchase total (includes shipping), SKU, and store name for every order | Set up [conversion tracking](/glossary/conversion-tracking) on Google's end |
| Your own visits | No – doesn't count internal traffic while you're logged in | Create a filter in Google Analytics to exclude your IP address |
| Cookie consent | Partial – provides a cookie banner and a Manage cookies button | Switch them on and decide the button options |
| [Tag Manager](/glossary/google-tag-manager) setups | No – you can still use code-based solutions, but Squarespace can't help set them up or troubleshoot them | Own the setup, or ask the Squarespace forum or an Expert |

**Version 7.0 with Ajax loading**If your version 7.0 site uses Ajax loading, Google Analytics only logs the first page a visitor lands on and doesn't record the rest of their visit unless they refresh the page. Squarespace's fix is to disable Ajax loading.

_04_Worth 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](/glossary/direct-traffic) may be higher.

### Bots

Each side uses different measures to filter [non-human traffic](/glossary/bot-traffic).

### 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.

_05_How 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.

_01_ Do 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.

_02_ Why 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.

_03_ Why 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. 01 [Connect Google Analytics to your site | Squarespace Help Center](https://support.squarespace.com/hc/en-us/articles/205815608-Connect-Google-Analytics-to-your-site) support.squarespace.com · checked 2026-11-01
2. 02 [Measurement ID | Analytics Help](https://support.google.com/analytics/answer/12270356) support.google.com · checked 2026-11-01
3. 03 [Realtime report | Analytics Help](https://support.google.com/analytics/answer/9271392) support.google.com · checked 2026-11-01
4. 04 [Monitor events in DebugView | Analytics Help](https://support.google.com/analytics/answer/7201382) support.google.com · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn Squarespace page speed CMS](/seo/squarespace/page-speed) [Related Google Analytics 4 Measurement](/glossary/google-analytics-4) [Read next Squarespace SEO Website builders](/seo/squarespace) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Squarespace SEO
[Squarespace 301 redirects](/seo/squarespace/redirects) [Squarespace 404 page](/seo/squarespace/404) [Squarespace favicon](/seo/squarespace/favicon) [Squarespace Google Analytics](/seo/squarespace/google-analytics) [Squarespace Google Search Console setup](/seo/squarespace/search-console) [Squarespace hreflang](/seo/squarespace/hreflang) [Squarespace HTTPS and SSL](/seo/squarespace/ssl) [Squarespace image SEO](/seo/squarespace/image-seo) [Squarespace page speed](/seo/squarespace/page-speed) [Squarespace robots.txt](/seo/squarespace/robots-txt) [Squarespace structured data](/seo/squarespace/structured-data) [Squarespace title tags and meta descriptions](/seo/squarespace/title-and-meta) [Squarespace XML sitemap](/seo/squarespace/xml-sitemap)

Terms on this page
[Data streams](/glossary/data-streams) [Google Analytics 4](/glossary/google-analytics-4) [Conversion tracking](/glossary/conversion-tracking) [Google Tag Manager](/glossary/google-tag-manager) [Consent mode](/glossary/consent-mode) [Direct traffic](/glossary/direct-traffic) [Bot traffic](/glossary/bot-traffic)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
