How to set up GTM and GA4 on Squarespace

Written by

Uliana Lesiv

Published Dec 2, 2026 comments

Key takeaways

Benefits of GTM implementation for Squarespace site

When is it time to upgrade?

Ready to improve your Squarespace data tracking?

Stape Conversion Tracking app for Squarespace website

Prepare the GTM and Google Analytics 4 accounts

Create your GTM account and container

Create your GTM account and container
web container ID

Set up your GA4 property

Set up your GA4 property
Stape CMP

Install GTM on Squarespace website

Squarespace account
connect your Squarespace account with the Stape Conversion Tracking app

General

Configure the GConfigure the General tabeneral tab
paste the snippet in the “Header” fieldCopy the snippet

Data Layer

Data Layer

Webhooks

Webhooks

Test GTM configuration

Test GTM configuration
Test GTM configuration
Test the setup in Google Tag Manager

Set up GA4 and other tags for Squarespace

Using the Setup Wizard

Using the Setup Wizard

Configuring tags and triggers manually

window.dataLayer

Final words

Want to start on the server side?

Try for free

Written by

Uliana Lesiv

Writer

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free