All How-To Guides
Squarespace5 min·5 steps

How to Add Google Analytics to Squarespace (2026 Step-by-Step Guide)

Squarespace has a dedicated External API Keys field that accepts a GA4 Measurement ID directly - no plugin, no theme code. The whole setup takes about 5 minutes once you have a GA4 property created.

What you'll need before you start

  • A Squarespace site on a paid plan (Personal, Business, or Commerce)
  • Owner or contributor with Site Manager or higher access
  • A Google account

How to add Google Analytics on Squarespace: Step-by-step

  1. 1

    Create a GA4 property and Web data stream

    Go to analytics.google.comAdminCreateProperty. Set name, time zone, and currency. After creation, GA4 prompts you to add a data stream - choose Web, paste your full Squarespace URL, and click Create stream.

  2. 2

    Copy your Measurement ID

    In the data stream summary screen, look for Measurement ID in the upper-right corner. It's formatted G-XXXXXXXXXX. Click the icon to copy it.

  3. 3

    Open Squarespace's External API Keys settings

    In your Squarespace admin: SettingsDeveloper ToolsExternal API Keys. (On Squarespace 7.0 sites, the path is SettingsAdvancedExternal API Keys.) On 7.1, it might also appear as MarketingExternal API Keys depending on your dashboard layout.

  4. 4

    Paste the Measurement ID and save

    In the Google Analytics Account Number field, paste your G-XXXXXXXXXX ID. Click Save. Squarespace handles the script injection across every page automatically - including 404s, blog posts, and product pages.

  5. 5

    Verify the tag is firing

    Open your Squarespace site in an incognito window. Browse a few pages. Within 60 seconds, GA4 → ReportsRealtime should show one active user. If you see traffic but want to confirm the right ID is firing, open the page source in your browser (Ctrl+U / Cmd+U) and search for G-XXXXXXXXXX - you should find your ID twice.

How to verify your setup is working

The fastest verification is GA4's Realtime view. Open your site in an incognito or private window, click around, and watch ReportsRealtime. You should appear as one active user within 30-60 seconds. For a more thorough check, install the free Google Tag Assistant Chrome extension - it shows every analytics tag firing on the page along with its measurement ID.

Common issues and fixes

I'm on the Squarespace Personal plan and don't see External API Keys

External API Keys is available on the Personal plan and up. If the menu isn't visible, you might be on a legacy free trial or a Squarespace 5 (deprecated) site. Check SettingsSubscriptions to confirm your plan, or contact Squarespace support to migrate.

The Measurement ID field is greyed out

You're signed in with a contributor role that doesn't have permission to edit settings. Ask the site owner to either grant you Site Manager access or paste the ID themselves under Permissions.

Realtime shows nothing, even after waiting

Most common cause: a cookie banner with a Reject all default state is blocking the tag from running. Squarespace's Cookies & Visitor Data setting (under SettingsPrivacy) controls whether GA4 fires before consent. If you have GDPR-style consent enabled, only users who accept cookies will be counted - test in incognito and click Accept on the banner.

Frequently asked questions

Does Squarespace work with Google Analytics 4?

Yes - Squarespace supports GA4 directly through the External API Keys field. The older Universal Analytics property type is no longer supported (Universal Analytics stopped processing data in July 2024). Just paste your G-XXXXXXXXXX ID and Squarespace handles the rest.

Can I add Google Analytics to Squarespace on the free trial?

Yes, on a paid plan trial. The External API Keys field is available on Personal, Business, Commerce Basic, and Commerce Advanced. Once your trial ends, the tag stays attached to the site as long as you keep the plan.

Do I need code injection to add Google Analytics to Squarespace?

No. The External API Keys field is the supported path and handles installation site-wide. The Code Injection field (under SettingsAdvanced) is available for adding custom tags to the head or footer, but you don't need it just to install GA4.

How do I track ecommerce on Squarespace with Google Analytics?

For ecommerce events (purchases, add-to-carts) you need Squarespace's Commerce Advanced plan, which includes the Sell Online integration with GA4. On lower plans, basic page-view tracking works but ecommerce events do not. The Commerce Advanced plan auto-fires the GA4 purchase event on the order confirmation page.

Is Google Analytics free for Squarespace users?

Yes. Google Analytics 4 is free for any site, regardless of platform or volume - up to about 10 million events per month. Beyond that you'd need Google Analytics 360, which is enterprise-priced (six figures annually). For nearly every Squarespace site, the free version is more than enough.

How do I know if Google Analytics is working on Squarespace?

Open your site in an incognito window, then check GA4 → ReportsRealtime. You should appear as one active user within 30-60 seconds. The Google Tag Assistant Chrome extension is a faster check - it shows your G-XXXXXXXXXX firing along with each event name.

Once you're set up, MeasureBoard turns the data into action

MeasureBoard connects to your analytics, search, and SEO tooling and generates AI-powered weekly reports, GEO readiness scores, and a dedicated AI analyst that answers questions in plain English. Free to start, connects in 30 seconds.

Get Started Free