Nov 30, 2026
Written by
Uliana Lesiv
Key takeaways
This article will be helpful for Squarespace website owners, digital marketing and tracking specialists who are looking for a convenient way to integrate GTM. The guide is also useful for anyone who wants to go beyond basic GTM installation and build a more reliable data tracking setup.
Google Tag Manager is a convenient tool to track and manage user data. It provides the following benefits:
Server-side tracking can benefit businesses of all sizes; however, it will be especially helpful if:
You can get started for free with Stape (no credit card is required) and upgrade as your business grows.
Ready to improve your Squarespace data tracking?
Upgrade to server-side tracking with Stape to improve data quality, reduce the impact of ad blockers, and get more control over your data.
To integrate GTM with Squarespace, we will use the Stape Conversion Tracking app for Squarespace. It is a free solution that simplifies the implementation of GTM and server-side tracking on your website.
Besides adding a GTM snippet to every page of your website, the app also pushes standard events to the data layer. You can then process this information through the web GTM container and forward it to a server GTM container and/or third-party platforms like GA4.
If you have some offline conversions (like in-store purchases, phone conversions, etc.), with the app you can send webhooks containing the conversion data. In this way, you get a more complete picture without missing conversions that took place beyond the website.
With the app integration, you can go beyond simply installing web GTM on Squarespace. You get the foundation for a more reliable server-side tracking setup.
Go to tagmanager.google.com and sign in with a Google account. Create a new account (typically named after your business or brand), specify the name for the container, choose "web" as the target platform, and click "Create".

To integrate GTM with your website, you will need to paste the web container ID. You can copy the value now and save it to add to the Squarespace app later.

You can create a Google Analytics account for free on the Google Analytics landing page. Enter your Squarespace site name, select your industry category, set the correct time zone and currency, and choose "web" as your platform.

Before launching any tracking on your Squarespace website, make sure your setup respects user consent and data privacy regulations. Depending on your audience location, you may need to obtain user consent before firing tags and starting data collection:
The best approach is to configure consent management before running tracking. This helps you avoid collecting data without the required permission from website visitors.
If you haven't chosen a consent management platform (CMP) yet, consider our built-in solution Stape's CMP (with no additional fee). With its help, you can configure a cookie consent banner, collect and store visitors' consent choices, and communicate their preferences to third-party platforms.

To use power-ups such as Custom Loader and Cookie Keeper, you need to have an sGTM container hosted on Stape. If you haven’t set this up yet, follow our Get started with sGTM hosting guide.
1. Follow the Squarespace app configuration link → click on Continue with Squarespace → sign in to your Squarespace account.

2. Click “Allow” to connect your Squarespace account with the Stape Conversion Tracking app.

1. Configure the General tab:
If enabled, enter your GTM Container ID (the one that you copied while creating your GTM container) – the ID of your web GTM container, which you can find in the Accounts tab of your GTM account. The ID should follow this format: GTM-XXXXXXX. Learn more about how to find your web container ID.
Make sure to also enable Stape User ID in your container’s power-ups. This power-up generates a persistent, privacy-conscious user identifier and attaches it to every incoming request processed by your sGTM container.
2. Click Save.

3. Once the changes are saved successfully, the header snippet is modified according to the existing setup.
Copy the snippet → open the “Website” → click on “Pages” → navigate to “Custom Code” → click on “Code Injection” → paste the snippet in the “Header” field.

1. Configure the Data Layer tab:
2. Click Save.

1. Configure the Webhooks tab. Webhooks are useful for tracking events that occur outside your website, such as phone orders or offline sales.
2. Click Save.

1. Open any page on your website and launch Developer Tools.
Go to the Network tab and filter requests by your tagging server URL. If you haven’t configured a custom domain, search for gtm.js instead.
Verify that the web GTM script loads through the specified URL and returns a 200 status code.

2. In Developer Tools, open the Console tab and perform a few actions on your website, such as adding a product to the cart.
Enter dataLayer in the console and press Enter. Check that the Data Layer contains the expected events and data.

3. Test the setup in Google Tag Manager.
3.1. Open your sGTM container and click Preview.
3.2. In a separate tab, open your web GTM container, click Preview, and enter your website URL.
3.3. Perform test actions on your website, such as adding a product to the cart.
3.4. In the sGTM preview window, verify that incoming requests reach your server container and are handled by the appropriate Client, such as the GA4 Client or Data Client.

After configuring the Stape Conversion Tracking app for Squarespace, you can set up all the required tracking, including GA4 tag configuration, through GTM. It can done in two ways:
The Setup Wizard will generate the required templates for your web and server GTM containers based on your website platform and tracking destinations.
To access the Setup Wizard, log in to your Stape account → open the sGTM section → select your server container and click the Setup Wizard icon next to Container settings.

Follow the Setup Wizard instructions to configure your web and server GTM containers and select the platforms you want to track, such as GA4, Meta, or Google Ads.
For detailed instructions, see our guide on how to use Setup Wizard.
If you prefer to configure your GTM containers manually, follow these steps.
1. Configure tags in your web GTM container. Create or update the GA4 tags or Stape Data Tag to send the events collected by the Squarespace app to your server GTM container. Make sure the tags use the correct server container URL.
2. Configure triggers for data layer events. Create triggers for the events you want to track, such as product views, add-to-cart actions, checkout events, and purchases.
Use the event names pushed to the dataLayer by the Squarespace app. If you enabled the option to append the _stape prefix in the app settings, make sure your trigger event names match the event names.
To see the event names pushed to dataLayer, right-click the page of your website → select Inspect → open the Console tab → enter this command:
window.dataLayerAfter pressing Enter, inspect the returned array for entries containing an event property.
3. Configure tags in your server GTM container. Add the server GTM tags required to forward incoming events to your analytics and advertising platforms, such as GA4, Meta Conversions API, or Google Ads. Configure the appropriate triggers and required parameters for each destination.
4. Configure webhook events if needed. If you enable purchase or refund webhooks in the Squarespace app, make sure your server container is configured to process the incoming requests and send the corresponding events to your selected destinations.
Integrating GTM with Squarespace using the Stape Conversion Tracking app is a simple way to centralize website tracking and build a more reliable data collection setup. You can manage GA4, advertising pixels, and other tracking tags from one place without editing your website's code multiple times.
Whether you're just getting started with website tracking or looking for a way to improve the existing conversion tracking, Stape makes it easier to expand your Squarespace tracking as your business grows.
Want to start on the server side?
Try for freeNov 30, 2026
Nov 19, 2026
Nov 19, 2026
Blog
Improve your GTM tracking with the dataLayer. Learn how to implement it, send data, and avoid common mistakes for richer insights into user behavior.
Oct 2, 2026
Comments