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
- Open Google Tag Manager and click your GTM ID
- Copy both code snippets from the installation popup
- Log in to Squarespace and click WEBSITE
- Go to Website → Pages in the sidebar
- Scroll down to Marketing Tools → Custom Code
- Click Code Injection
- Paste the head code in Header, body code in Footer
- 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.




0 Comments