Squarespace GA4 Not Tracking? 7 Causes, Ordered by How Often They Are the Problem

Walid Hasan7 min read
Squarespace GA4 Not Tracking? 7 Causes, Ordered by How Often They Are the Problem

The short answer: you are almost certainly logged in. Squarespace disables script-bearing injections in your editing preview, and Squarespace's own analytics excludes your traffic while you are logged in — so the two dashboards disagree and GA4 looks broken. Open the live site in a private window, logged out, and check GA4's Realtime report. That single test resolves most cases before you change anything.

Here are the seven causes, ordered by how often each turns out to be the culprit.

Squarespace GA4 Not Tracking? 7 Causes, Ordered by How Often They Are the Problem: infographic summary

Quick diagnostic table

SymptomMost likely causeJump to
Nothing in Realtime while you browse your own siteYou are logged inCause 1
Realtime works, standard reports emptyProcessing delay, not a faultCause 4
Sessions and pageviews roughly doubleTag installed twiceCause 2
Some visitors tracked, many notCookie banner blocking before consentCause 3
Data stopped on a specific dateInternal traffic filter switched to ActiveCause 5
Tracking works for you, not for othersAd blocker or browser tracking preventionCause 6
Never worked, on any deviceWrong field, wrong ID, or wrong streamCause 7

Cause 1 — You are logged in to Squarespace

This is the most common cause and almost nobody names it. Two separate Squarespace behaviours combine.

First, Squarespace disables injected scripts in your editing preview. If custom code is interfering with secure editing, Squarespace shows this at the bottom of the site: "We detected an error loading your site preview. This is usually caused by injected code." Clicking Disable Scripts in Preview changes the message to "Scripts have been disabled on your site preview". From that moment, anything you pasted into Code Injection — including a gtag snippet or a Google Tag Manager container — does not load for you. Code Blocks behave the same way, showing "This block contains embedded scripts. Embedded scripts are disabled while you're logged in and editing your site."

Second, Squarespace excludes your own traffic from its own analytics while you are logged in. GA4 does not. Squarespace states this directly. So Squarespace Analytics shows nothing for your visit, GA4 may show something, and neither number matches what you expect.

The confirmation test, 30 seconds: open a private or incognito window, load your live site URL directly (not through the editor), browse two pages, and watch GA4 → Reports → Realtime. If your session appears, nothing is broken and you were testing the wrong thing.

Note the asymmetry. Squarespace's native Google Analytics field — Settings → Developer tools → External API keys → "Google Analytics account number" — is not an injected script, and Squarespace documents that it registers your logged-in previews as pageviews. Installed that way, logged-in previews do get counted. Installed through Code Injection or Tag Manager, they may not. Same site, opposite behaviour, depending on route.

Cause 2 — The tag is installed twice

The symptom is not "no data". It is too much data — sessions and pageviews roughly double, engagement rate collapsing, every conversion rate halving.

It happens when a G- measurement ID sits in External API keys and the gtag snippet is also in Code Injection → Header, or a Google tag for the same property is deployed through Google Tag Manager.

Confirmation test: open Tag Assistant, connect to your site, then open GA4 → Admin → Data display → DebugView. Load one page and count the page_view events in the seconds stream. One is correct. Two means the tag is installed twice.

Fix: pick one route and remove the other. Keep the native field if you run Squarespace Commerce — it automatically sends GA4 the order ID, store name, purchase total including shipping, customer city/region/country, product name and SKU for every order, which an injected snippet does not. GA4 will not correct historical data, so note the date you fixed it.

Cause 3 — The cookie banner is blocking the tag before consent

If you enabled a Squarespace cookie banner, GA4 may be collecting nothing from a large share of visitors, entirely by design.

In the Cookies & Data Privacy panel (some Squarespace help pages still call it Cookies & Visitor Data), switching on the Manage cookies button means non-essential cookies must be restricted until a visitor accepts them — Squarespace removes the Restrict / Remove Restriction choice in that configuration. Until a visitor clicks accept, GA4 gets nothing.

Confirmation test: load the live site in a private window and do not interact with the banner. Check GA4 Realtime — you should see nothing. Now accept cookies and reload. If your session appears only after accepting, the banner is working as configured and your GA4 numbers represent consenting visitors only.

Fix: this is a policy decision, not a bug. If you want consent choices communicated to Google, Squarespace's documented sequence is: save the measurement ID first, then open Cookies & Data Privacy, switch on Cookie banner, switch on the Decline all button, and Save. Google's consent mode handles it from there. Expect your Squarespace visitor count to sit above GA4's afterwards — Squarespace can count one visitor's ten pageviews as ten visitors when it cannot link them, while GA4 uses behavioural modelling instead.

Cause 4 — You are looking too soon

Not a fault. GA4 is not a real-time product for most reports.

  • Realtime shows sessions within a minute or two.
  • DebugView shows events as they happen.
  • Intraday reporting takes roughly 2–6 hours for standard properties.
  • Standard reports process on a 24–48 hour cycle.

Squarespace adds its own note: it may take up to 24 hours for site statistics to populate in Google Analytics. Squarespace Analytics itself refreshes on up to a three-hour lag.

Confirmation test: if Realtime shows your session but the Traffic acquisition report shows zero, wait a day. Nothing is wrong.

Cause 5 — An internal traffic filter is removing more than you meant

The symptom is data stopping abruptly on a date, or a whole office's traffic vanishing.

GA4 internal traffic exclusion has two parts, and the second one is where it goes wrong. In Admin → Data streams → Configure tag settings → Define internal traffic you create a rule matching an IP or CIDR range. Then in Admin → Data filters you create an Internal Traffic filter and set it to Testing or Active.

Two failure modes:

  • Left in Testing — GA4 tags matching data with a test dimension but does not remove it. People assume they are filtered out and they are not.
  • Set to Active with too broad a rule — a CIDR range covering an entire ISP block, or a shared office IP that also covers customers. An active exclude filter is permanent: excluded data is never processed and never becomes available, in reports or BigQuery.

Confirmation test: check the filter's state in Admin → Data filters and check the IP rule against your actual public IP. Filters take 24–36 hours to take effect, so a rule added yesterday may only now be biting.

Cause 6 — Ad blockers and browser tracking prevention

A meaningful share of visitors block google-analytics.com outright, and Safari and Firefox restrict cross-site tracking by default. There is no fix.

Confirmation test: disable your ad blocker, reload the live site logged out, and check Realtime. If the session appears only with the blocker off, your own test was being blocked — not the site.

What to do about it: treat GA4 as a directional sample, not a census. This is why Squarespace Analytics matters for anything involving money: order data comes from Squarespace's own records and cannot be blocked. Squarespace's documentation acknowledges that GA4 occasionally misses orders Squarespace recorded.

Cause 7 — Wrong field, wrong ID, or wrong data stream

If nothing has ever tracked, on any device, check these four in order.

  1. The right field. The measurement ID belongs in Settings → Developer tools → External API keys → "Google Analytics account number". Not in Code Injection. Not in the SEO panel.
  2. The right ID format. It must start with G-. A UA- tracking ID collects nothing — Universal Analytics stopped processing data and cannot be converted. The field label says "account number" for historical reasons; it accepts a GA4 measurement ID.
  3. The data stream exists. A GA4 property with no web data stream collects nothing. Check Admin → Data collection and modification → Data streams, and confirm the stream URL matches the domain Squarespace serves — including www or its absence.
  4. You are looking at the right property. If the account has several properties, confirm the G- ID in Squarespace matches the property whose reports you are opening. Common on agency accounts.

Confirmation test: on the live site logged out, open browser developer tools, filter the Network tab for collect, and reload. One request to google-analytics.com/g/collect carrying your G- ID means the tag is firing correctly and the problem is on the GA4 side, not the Squarespace side.

Still not tracking?

Work the list in order — logged in, double install, cookie banner, processing delay, filters, ad blockers, wrong field. In practice, the first and fourth account for the majority of cases, and neither is a fault.

If you have been through all seven and the tag genuinely does not fire on the live site logged out, the cause is usually a conflict between injected code and something else on the site — a second script erroring before the tag loads, or a container that was never published. Untangling that means reading the console rather than guessing.

That is the kind of thing our Squarespace website support plans exist for; most tracking faults we are sent get diagnosed inside a single support block. No obligation either way — the seven causes above resolve the overwhelming majority of cases on their own.

For the correct install from scratch, see how to add GA4 to Squarespace. For why the two dashboards never agree even when both work, see Squarespace Analytics vs Google Analytics.

FAQ

Why is GA4 not tracking my Squarespace site?

Most often because you are testing while logged in. Squarespace disables injected scripts in your editing preview and excludes your own traffic from its analytics. Open the live site in a private window, logged out, and check GA4's Realtime report before changing anything.

Does Squarespace disable Google Analytics while I'm logged in?

It disables injected scripts in your editing preview, showing "We detected an error loading your site preview. This is usually caused by injected code." The native Google Analytics field in Developer tools → External API keys behaves differently — Squarespace documents that it registers your logged-in previews as pageviews.

GA4 Realtime works but my reports are empty. Is it broken?

No. GA4 standard reports process on a 24 to 48 hour cycle, and intraday reporting takes roughly two to six hours. Squarespace also notes statistics may take up to 24 hours to populate. Realtime and DebugView are the only near-instant surfaces.

Does the Squarespace cookie banner block GA4?

It can, by design. With the Manage cookies button enabled, non-essential cookies are restricted until a visitor accepts, so GA4 collects nothing from that visitor until they click. Test by loading the site in a private window without touching the banner, then accepting and reloading.

Why is GA4 counting my Squarespace pageviews twice?

Because the tag is installed twice — usually a measurement ID in External API keys plus a gtag snippet in Code Injection, or a Google tag deployed through Tag Manager for the same property. Check DebugView via Tag Assistant: one page_view per page is correct.

Where is the Google Analytics field in Squarespace?

Settings → Developer tools → External API keys → the "Google Analytics account number" field. Paste the G- measurement ID there and save. It is not in the SEO panel and it does not belong in Code Injection.

Walid Hasan
Author Bio

Walid Hasan

I'm Walid Hasan, a Certified Squarespace Expert and Squarespace Circle Platinum Partner with over 12 years of hands-on experience designing and optimizing high-performing websites. Over the years, I've had the privilege of building more than 2,000 Squarespace websites for clients around the world, always focusing on clean design, strong user experience, and conversion-driven results.

More Guides

See If Squareko Is Right For You.

Schedule a call with us to discuss your project in detail and receive a tailored solution. Let's turn your vision into reality - book your FREE consultation today!

Let’s Talk About Your Project
  • Squareko completely transformed our online presence. The new website is modern, fast, and easy to use… our site looks amazing and performs even better! ⭐⭐⭐⭐⭐
  • 𝗬𝗼𝘂𝗿 𝗽𝗵𝗼𝘁𝗼𝘀 𝗮𝗿𝗲 𝘀𝘁𝘂𝗻𝗻𝗶𝗻𝗴. 𝗬𝗼𝘂𝗿 𝘄𝗲𝗯𝘀𝗶𝘁𝗲? 𝗣𝗿𝗼𝗯𝗮𝗯𝗹𝘆 𝗻𝗼𝘁. 📷
  • 𝗥𝗲𝘀𝘁𝗮𝘂𝗿𝗮𝗻𝘁 𝗼𝘄𝗻𝗲𝗿𝘀 𝘆𝗼𝘂𝗿 𝘄𝗲𝗯𝘀𝗶𝘁𝗲 𝗶𝘀 𝘁𝗵𝗲 𝗳𝗶𝗿𝘀𝘁 𝘁𝗵𝗶𝗻𝗴 𝗮 𝗻𝗲𝘄 𝗰𝘂𝘀𝘁𝗼𝗺𝗲𝗿 𝘀𝗲𝗲𝘀 𝗯𝗲𝗳𝗼𝗿𝗲 𝘁𝗵𝗲𝘆 𝗲𝘃𝗲𝗿 𝘄𝗮𝗹𝗸 𝘁𝗵𝗿𝗼𝘂𝗴𝗵 𝘆𝗼𝘂𝗿 𝗱𝗼𝗼𝗿.
  • 𝗧𝗵𝗶𝘀 𝗶𝘀 𝘄𝗵𝗮𝘁 𝗮 𝗳𝗶𝘁𝗻𝗲𝘀𝘀 𝘄𝗲𝗯𝘀𝗶𝘁𝗲 𝘀𝗵𝗼𝘂𝗹𝗱 𝗮𝗰𝘁𝘂𝗮𝗹𝗹𝘆 𝗹𝗼𝗼𝗸 𝗹𝗶𝗸𝗲. 💪
  • 𝗦𝗾𝘂𝗮𝗿𝗲𝘀𝗽𝗮𝗰𝗲 𝗷𝘂𝘀𝘁 𝗿𝗲𝗳𝗿𝗲𝘀𝗵𝗲𝗱 𝘁𝗵𝗲 𝗖𝗶𝗿𝗰𝗹𝗲 𝗟𝗮𝗯𝘀 𝗽𝗮𝗻𝗲𝗹 — 𝗮𝗻𝗱 𝗶𝘁'𝘀 𝗮 𝗴𝗲𝗻𝘂𝗶𝗻𝗲𝗹𝘆 𝘂𝘀𝗲𝗳𝘂𝗹 𝘂𝗽𝗴𝗿𝗮𝗱𝗲.
  • 𝗔 𝘄𝗲𝗹𝗹-𝗱𝗲𝘀𝗶𝗴𝗻𝗲𝗱 𝘄𝗲𝗯𝘀𝗶𝘁𝗲 𝗵𝗲𝗹𝗽𝘀 𝗯𝘂𝘀𝗶𝗻𝗲𝘀𝘀𝗲𝘀 𝗰𝗼𝗺𝗺𝘂𝗻𝗶𝗰𝗮𝘁𝗲 𝘁𝗵𝗲𝗶𝗿 𝘃𝗮𝗹𝘂𝗲 𝗶𝗻𝘀𝘁𝗮𝗻𝘁𝗹𝘆.