Skip to content

Guide 205 · Setup · GA4 + Tag Manager

Install GA4 on Squarespace: paste the Measurement ID into External API keys, no code

Written November 13, 2026 · 6-minute read

A Squarespace site connects to GA4 through a built-in integration, not a snippet. Create the property in Google Analytics, copy the Measurement ID, then paste it into one field in the Squarespace dashboard. Squarespace places the tag on the site from there.

Expected signal

After step 5, the Measurement ID is saved under External API keys, and statistics appear in Google Analytics within 24 hours.

Download the reference: the Squarespace GA4 reference (JSON) (624 bytes, MD5 eab807bdfbb5a816217a8325bd0e431b). The field path, the wait and the order data in one file: 8 fields go to Google Analytics on every order.

What you need

  • A Squarespace site and access to its dashboard. The connection is made in the Developer tools panel.
  • A Google Analytics account. You create the GA4 property and the web data stream there first, then bring the Measurement ID to Squarespace.
  • The Measurement ID only. It starts with G- and comes from a GA4 property. You paste the ID on its own, not the full Google tag snippet.
  • Any old ID replaced. If an older version of Google Analytics is connected, the old ID comes out and the GA4 Measurement ID goes in the same field.
  • A note on your own visits. Google Analytics counts your own page previews while you are logged in, and Squarespace does not count internal traffic while you are logged in. Expect a gap between the two sets of numbers, and use a filter in Google Analytics to exclude your IP address if your own visits matter.

The trace

  1. Create the GA4 property. In Google Analytics, open Admin, click Create, then select Property. Enter a property name, choose the reporting time zone and currency, then click Next. Select the industry category, the business size, and how you intend to use Analytics, then click Create.
  2. Add the web stream and copy the ID. In Admin, under Data collection and modification, click Data Streams, then Add stream, then Web. Enter the site URL and a stream name, then copy the Measurement ID. It starts with G-.
  3. Open the Developer tools panel in Squarespace. Go to the site's dashboard and open the Developer tools panel.
  4. Open External API keys. Click External API keys.
  5. Paste the ID and save. In the Google Analytics account number field, enter the Measurement ID, then click Save.
  6. Wait for the first statistics, then read the store data. Statistics can take up to 24 hours to appear in Google Analytics. On a store, order data then flows on its own: for every order, Squarespace sends the customer's city, region and country, the order ID, the product name, the purchase total including shipping, the SKU, and your store name.

Dead ends

DEAD END — PASTING THE TAG SNIPPET OR ADDING TAG MANAGER BY CODE AND EXPECTING HELP WITH IT. The built-in integration does the job without any script code. Code-based routes such as Google Tag Manager can be used, but Squarespace cannot help you set them up or troubleshoot them. If the ID field is empty and the only tag on the site is a code injection, the supported connection was never made.

DEAD END — THE OLD UNIVERSAL ANALYTICS ID LEFT IN THE FIELD. The field takes the Measurement ID from a GA4 property. An ID from an older version of Google Analytics sitting in the Google Analytics account number field connects the site to a property that is not GA4. Replace the old ID with the GA4 Measurement ID in the same field and save again.

DEAD END — AJAX LOADING ON A VERSION 7.0 SITE. With Ajax loading on, Google Analytics logs only the first page a visitor lands on. It does not record the rest of the visit unless the visitor refreshes the page. A 7.0 site that shows one page view per visit, however long the visit looks in Squarespace, needs Ajax loading disabled before the GA4 numbers can be trusted.

End state

The GA4 Measurement ID is saved in the Google Analytics account number field under External API keys, with no snippet added anywhere. Statistics appear in Google Analytics within 24 hours, and every store order sends its 8 fields. To disconnect later, delete the ID from the same field and save.

Sources

  • Squarespace Help — Connect Google Analytics to your site — the built-in integration with no script code, the Developer tools and External API keys path, the Google Analytics account number field, the 24-hour wait for statistics, replacing an older ID with the GA4 Measurement ID, the order data sent for every order, the note on your own visits while logged in, the Ajax loading limit on version 7.0 sites, and the disconnect steps
  • Analytics Help — Set up Analytics for a website and/or app — creating a property with name, reporting time zone and currency, industry category, business size and intended uses, adding a web data stream, and copying the Measurement ID