How to Install Google Tag Manager on Squarespace

21 Jan, 2026

Want to track conversions, run Facebook Pixel, or add analytics to your Squarespace website? Google Tag Manager makes it easy to manage all your tracking codes in one place without touching your site’s code every time.

Here’s how to set it up on Squarespace in just a few minutes.


What You’ll Need

  • A Google Tag Manager account (free at tagmanager.google.com)
  • A Squarespace website (Business plan or higher for code injection)

Step 1: Get Your GTM Container ID

First, log in to Google Tag Manager and open your container. You’ll see your GTM ID in the top right corner of the workspace. It looks something like GTM-XXXXXXX.

Click on the GTM ID to open the installation instructions.


Step 2: Copy the GTM Code Snippets

A popup will appear with two code snippets you need to install.

First code (for the head section): Click the copy icon next to the first code block. This script goes in the head of your website.

Second code (for the body section): Click the copy icon next to the second code block. This is a backup for browsers with JavaScript disabled.

Keep this window open or paste both codes somewhere safe — you’ll need them in the next steps.


Step 3: Log in to Squarespace

Go to account.squarespace.com and sign in to your Squarespace account.

On your dashboard, find the website where you want to install GTM. Click the “WEBSITE” button to enter the site editor.


Step 4: Navigate to Pages

Once inside the Squarespace editor, look at the left sidebar menu.

Click on “Website” to expand the menu, then click on “Pages” to see your site’s page structure.


Step 5: Open Code Injection

Scroll down in the left sidebar until you see “Custom Code” section.

Click to expand it, then click on “Custom Code” to see more options.

Click on “Code Injection” — this is where you’ll paste your GTM codes.


Step 6: Paste the GTM Codes

In the Code Injection panel, you’ll see two main fields:

Header field: Paste the first GTM code snippet here (the one that goes in the head section).

Footer field: Paste the second GTM code snippet here (the noscript code that goes after the body tag).

Click “Save” when you’re done.


Step 7: Verify the Installation

Go back to Google Tag Manager and click the “Preview” button. Enter your website URL to test if GTM is working properly.

You can also use the Google Tag Assistant browser extension to verify that your tags are firing correctly.


Quick Summary

  1. Open Google Tag Manager and click your GTM ID
  2. Copy both code snippets from the installation popup
  3. Log in to Squarespace and click WEBSITE
  4. Go to Website → Pages in the sidebar
  5. Scroll down to Marketing Tools → Custom Code
  6. Click Code Injection
  7. Paste the head code in Header, body code in Footer
  8. Save and verify

Important Notes

  • You need a Business plan or higher on Squarespace to access Code Injection. If you’re on a Personal plan, you’ll need to upgrade.
  • The order matters. Make sure the head code goes in the Header field and the body code goes in the Footer field.
  • Test before going live. Always use GTM’s Preview mode to make sure your tags are working before publishing.
  • One GTM container per site. Don’t install multiple GTM containers — it can cause tracking issues.

Related Posts

How to Create a Google Tag Manager Account

How to Create a Google Tag Manager Account

Google Tag Manager (GTM) is a free tool that helps you manage tracking codes on your website without editing code. Follow these simple steps to create your account. Step 1: Go to Google Tag Manager Open your browser and go to tagmanager.google.com. Sign in with your...

read more
How to Install Google Tag Manager with GoHighLevel

How to Install Google Tag Manager with GoHighLevel

If you're using GoHighLevel for your funnels, landing pages, or websites, then tracking user actions is a must. By connecting Google Tag Manager (GTM) to your GoHighLevel site, you can easily manage all your tracking codes, monitor visitor behavior, and measure...

read more

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Shibbir Ahmed

Hi, I’m here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey.
Book Meeting

Search Tags

Claim FREE Audit