How to add Google Analytics 4 to Squarespace in 2022

By David Nge • Last Updated: June 13, 2022

Great news! Squarespace has recently added native support for Google Analytics 4 which makes it easier to integrate the two platforms.

It's also great timing now that Google has officially announced the retirement of Universal Analytics (the previous generation of Google Analytics).

Here's a step-by-step guide on how to add Google Analytics 4 to Squarespace.

In summary, we'll go over

Note that this method works for both Squarespace version 7.0 and 7.1.

Let's dive right in.

Get tracking ID from Google Analytics 4

This step assumes you have created a Google Analytics Property for your site, if not then follow Google's documentation here.

Head to your Analytics dashboard, select Admin.

Select Admin from the Google Analytics 4 dashboard
Select Admin from the Google Analytics 4 dashboard

Then in your Admin dashboard, select Data Streams.

Select Data Streams from the admin dashboard
Select Data Streams from the admin dashboard

Select your website.

Select your site
Select your site

Click on the Copy icon to copy your Google Analytics 4 tracking ID.

Copy the Google Analytics 4 tracking ID
Copy the Google Analytics 4 tracking ID

Paste it in a notepad or a text editor, you will need this later.

Now head over to your Squarespace account.

Add Tracking ID to Squarespace

First, login to your Squarespace account and select a site to edit.

Select a site to edit in Squarespace
Select a site to edit in Squarespace

In your site dashboard, select Settings.

Head to the Settings page
Head to the Settings page

Then, in the site settings, select Advanced External API Keys.

Select advanced settings page
Select advanced settings page
Head to external API Keys
Head to external API Keys

Paste the Google Analytics tracking ID that you copied earlier into GOOGLE ANALYTICS and hit Save.

Add the Google Analytics 4 tracking ID
Add the Google Analytics 4 tracking ID

You've now added Google Analytics 4 to Squarespace!

It takes about 24 hours Google Analytics to start populating results in your dashboard, which you can see in the home screen.

Sample Google Analytics 4 home dashboard
Sample Google Analytics 4 home dashboard