November 13, 2024 • 10 min read

How To Implement Google Tag Manager On Squarespace

THE SHORT ANSWER

To add Google Tag Manager to Squarespace, create a free account and container at tagmanager.google.com and copy the two code snippets Google provides. In Squarespace's Code Injection settings, paste the first snippet into Header and the second into Footer, then save. Confirm your tags fire using Tag Manager's Preview mode.

What has changed

Updated on November 20, 2026.

  • The earlier version described Google Tag Manager features that do not exist, such as an “Intelligent Mode,” a download page and “Universal or Classic” Tag Manager apps. Tag Manager is a free web-based tool with no download and no automatic mode.
  • The earlier version gave no working Squarespace install steps. The article now walks through the real steps: create a container, paste its two snippets into Squarespace Code Injection, test in Preview mode and publish.
  • Google AdWords is now called Google Ads, and Universal Analytics was replaced by Google Analytics 4 (GA4) in 2023.

Google Tag Manager (GTM) is a free tool from Google that lets you add and manage tracking codes, called tags, on your website from one place. Instead of pasting a new code snippet into your site every time you add Google Analytics, a Google Ads conversion tag or a social media pixel, you install Tag Manager once and then add, edit or remove tags inside the Tag Manager dashboard.

Tag Manager is web-based. There is nothing to download, and it does not tag pages automatically. You decide which tags to add and when each one should fire, for example on every page view or only when someone submits a form.

This guide covers how to install Google Tag Manager on a Squarespace site, which tags are worth adding first and how to check that everything works.

Which Google Tags Should You Use?

Most small business sites only need a handful of tags. Start with these:

  • Google tag for Google Analytics 4 (GA4): records visits, traffic sources and key events such as purchases or form submissions.
  • Google Ads conversion tracking: if you run Google Ads, this tag tells you which ads lead to calls, sales or sign-ups.
  • Social media pixels: if you advertise on social platforms, their pixels can be added through Tag Manager templates so you can measure results from those ads.
  • Event tags: clicks on phone numbers, email links or important buttons can be tracked with built-in Tag Manager triggers, without editing your site’s code.

Add only the tags you will actually use. Every extra script adds a little weight to your pages.

1. How Do You Get Started?

  1. Go to tagmanager.google.com and sign in with your Google account.
  2. Create an account (usually your business name) and a container. Enter your website address as the container name and choose Web as the target platform.
  3. Tag Manager then shows two code snippets. The first goes in the head of your pages. The second is a short “noscript” snippet meant for the body. Keep this window open, or find the snippets later under Admin > Install Google Tag Manager.

2. How To Implement Google Tag Manager on Squarespace

Squarespace adds custom code through a feature called Code Injection. Code Injection is not included on every Squarespace plan, so if you cannot find it, check your plan first.

  1. In your Squarespace dashboard, open Code Injection. The quickest way is to type “Code Injection” into the search box in your site settings, because Squarespace has moved the menu location over time.
  2. Paste the first Tag Manager snippet (the one that starts with <!-- Google Tag Manager -->) into the Header box.
  3. Paste the second snippet (the one that starts with <!-- Google Tag Manager (noscript) -->) into the Footer box. Squarespace has no box for the opening body tag, and the footer works for this fallback snippet.
  4. Click Save.

One common mistake: if Google Analytics is already connected through Squarespace’s built-in analytics setting, do not also add a GA4 tag in Tag Manager. Running both counts every visit twice. Pick one method.

3. How To Use Google Tag Manager

With the container installed, you manage everything inside Tag Manager:

  1. Add a tag: click Tags > New, choose a tag type (for example, Google tag for GA4, or Google Ads Conversion Tracking) and enter the ID from that tool.
  2. Choose a trigger: the trigger decides when the tag fires. “All Pages” works for analytics. A form submission or click trigger works for conversions.
  3. Test in Preview mode: click Preview and enter your site address. Tag Assistant opens your site and lists which tags fired on each page. Fix anything that did not fire.
  4. Publish: nothing goes live until you click Submit and publish a version. Each published version is saved, so you can roll back if something breaks.
  5. Edit or remove tags later: change the tag in Tag Manager and publish again. You never need to touch Squarespace Code Injection a second time.
  6. Share access: under Admin > User Management you can give a teammate or contractor access without sharing your Squarespace login.

Benefits Of Google Tag Manager In A Business

  • One install, many tags: after the container is on your site, new tracking codes are added in Tag Manager instead of in your website code.
  • Fewer mistakes: Preview mode shows exactly what fires before anything goes live, and version history lets you undo changes.
  • Better conversion tracking: you can track form submissions, button clicks and phone number clicks, so you can see which pages and ads bring in leads.
  • Clearer ad spending decisions: with conversion tags in place, you can compare which campaigns bring results and move budget away from those that do not.
  • It is free: Tag Manager costs nothing to use.

Tag Manager does not collect or report data by itself. It delivers tags to your site. The reports come from the tools those tags send data to, such as GA4 or Google Ads.

How Does Google Tag Manager Relate To Squarespace?

Squarespace has its own built-in analytics and settings for connecting a few common tools. For a simple site with only Google Analytics, those built-in settings may be all you need.

Tag Manager becomes useful when you want several tags, custom event tracking such as button clicks, or when someone else manages your marketing tags. In that setup, Squarespace runs your website’s design and content, and Tag Manager handles the tracking codes.

What Is Google Analytics Tag Manager?

“Google Analytics Tag Manager” is not a separate product. People often use the phrase for Google Tag Manager because it is the most common way to add Google Analytics to a site. Google Analytics measures your traffic. Google Tag Manager is the container that places the Google Analytics tag, and other tags, on your pages. To see how your website is performing, you can start with a free scan on diib and compare plans on the diib pricing page.

Used together, the two tools give you:

  • One place to manage every tracking code on your site
  • Event tracking for clicks, forms and downloads without editing site code
  • Version history and testing before changes go live
  • Easier hand-offs when a contractor or teammate helps with your marketing

diib Digital: Google Tag Manager Implementation and Metrics!

diib Digital offers an easy-to-use User Dashboard that will give you hundreds of customized metrics for your website. See if you correctly installed Google Tag Manager and how it works for your business. With personalized alerts and objectives, you will have the ability to effectively improve your SEO in only minutes a day. Here are a few of the features we’re sure you’ll appreciate:

  • Bounce rate monitoring and repair
  • Social media integration and performance
  • Broken pages where you have backlinks (404 checker)
  • Keyword (including snippets), backlink, and indexing monitoring and tracking tools
  • User experience and mobile speed optimization
  • Technical SEO monitoring, including Google Tag Manager

Click here for your free 60-second site scan or simply call 800-303-3510 to speak to one of our growth experts.

FAQ

Frequently asked questions

Is Google Tag Manager free to use?

Yes, Google Tag Manager is free for websites of any size. You only need a Google account to create an account and a container. The tools your tags send data to, such as Google Analytics 4 (GA4), have their own pricing, though GA4 is also free for most small businesses.

How do I check that Google Tag Manager is working on my Squarespace site?

Use Preview mode in Google Tag Manager. Click Preview, enter your site address, and Tag Assistant opens your site and lists which tags fired on each page. If your tags show as fired, the container is installed correctly. Remember to publish your container, because nothing goes live until you do.

Can Google Tag Manager and Squarespace analytics settings double count my visits?

Yes, adding a Google Analytics tag in Tag Manager while Google Analytics is also connected in Squarespace settings records every visit twice. Pick one method. If you use Tag Manager for several tags or event tracking, remove the Google Analytics ID from Squarespace settings and manage the tag in Tag Manager only.

Does Google Tag Manager slow down my website?

Google Tag Manager itself adds only a small script, but every tag you load through it adds some weight to your pages. Keep the container lean by adding only tags you actually use and removing old ones. Test your page speed before and after adding new tags to catch any slowdowns.

Do I need Google Tag Manager if I only use Google Analytics?

No, a small site that only needs Google Analytics can connect it through Squarespace settings without Tag Manager. Tag Manager becomes worth the setup when you want several tracking codes, event tracking such as button or phone number clicks, or when a contractor manages your marketing tags.

FREE WEBSITE SCAN

How can diib® help me improve my website today?

diib connects to your Google Analytics account in about 60 seconds (optional to start) and shows you exactly what to fix to grow your website. More than 800k businesses use diib, starting with a free website scan. Pro memberships start at $29 a month.

Because we serve so many members, we can also offer wholesale pricing on services including:

  • Professional Google Analytics setup
  • Website speed analysis and optimization
  • Keyword research
  • Article writing and publishing (500 to 5,000+ words)

Enter your website below to create your free account and see everything we offer our members.

Daniel Urmann
AUTHOR

Daniel Urmann

Daniel Urmann is the co-founder of Diib.com. Over the past 17 years Daniel has helped thousands of business grow online through SEO, social media, and paid advertising. Today, Diib helps over 150,000 business globally grow online with their SaaS offerings. Daniel’s interest include SMB analytics, big data, predictive analytics, enterprise and SMB search engine optimization (SEO), CRO optimization, social media advertising, A/B testing, programatic and geo-targeting, PPC, and e-commerce. He holds a Master of Business Administration (MBA) focused in Finance and E-commerce from Cornell University – S.C. Johnson Graduate School of Management.

LinkedIn

Facebook LinkedIn