The short answer: most Squarespace 7.1 sites should not install Google Tag Manager. It measures nothing by itself, it requires Core, Plus or Advanced because it needs site-wide Code Injection, and Squarespace has no field matching Google's instruction to place the second snippet immediately after the opening <body> tag. If you do need it, the container snippet goes in Website → Website Tools → Code Injection → Header, and you must remove any measurement ID from External API keys first.
Here is how to decide, then how to install it properly if the decision is yes.

Do you actually need Google Tag Manager?
Tag Manager is a container. It collects no data of its own — it loads other people's tags and lets you change them without touching the site. That is valuable when the cost of changing site code is high. On Squarespace, where you paste a measurement ID into a field and press Save, it often is not.
| Your situation | Verdict |
|---|---|
| One GA4 property, nothing else | No. Use the native field. GTM adds a layer and no capability |
| GA4 plus a Meta Pixel | Probably not. Squarespace has a native Meta Pixel & Ads panel too |
| Three or more ad platforms' pixels, changing often | Yes. This is what GTM is for |
| You need custom events without a developer each time | Yes. Triggers and variables genuinely save time here |
| An agency managing tags across many client sites | Yes. Container versioning and rollback matter at that scale |
| You are on the Basic plan | You cannot. Site-wide Code Injection is not available |
| You want GTM because a tutorial said to | No |
The honest framing: GTM is a good answer to a tag-governance problem. If you do not have a tag-governance problem, it is a second system that can silently break the first one.
The plan gate, stated precisely
Google Tag Manager needs site-wide Code Injection. Squarespace documents Code Injection as available on Core, Plus, Advanced, and some legacy billing plans. On the entry-level Basic plan there is no Code Injection panel, so there is no route to install GTM at all.
Two related plan facts that matter here:
- Custom CSS is on every plan, including Basic — via Website → Website Tools → Custom CSS. Styling is not gated; scripts are.
- JavaScript and iframes inside Code Blocks also require Core or above. So you cannot work around the missing Code Injection field by dropping the GTM snippet into a Code Block on Basic either.
If you are on Basic and you need GA4, use the native field in Settings → Developer tools → External API keys. It is not plan-gated, and it is the better route regardless.
Where the two snippets actually go on Squarespace
Google gives you two blocks of code for a web container, and Squarespace can only place one of them where Google asks.
Snippet 1 — the container script. Google's instruction is to paste it "as high in the <head> tag as possible."
On Squarespace: Website → Website Tools → Code Injection → Header. Squarespace injects this into the <head> tag on every page of the site. This placement is correct, with one qualification — it is injected into the head, but Squarespace controls the ordering within the head, so "as high as possible" is not something you get to guarantee. In practice this rarely matters.
Snippet 2 — the <noscript> iframe. Google's instruction is to paste it "immediately after the opening <body> tag."
On Squarespace: there is no such field. The Footer injection field places code before the closing </body> tag, which is the other end of the document. There is no way to inject immediately after the opening body tag on any Squarespace plan.
What that costs you, honestly: the <noscript> block exists to fire the container for visitors with JavaScript disabled. That is a very small and shrinking share of traffic, and for most tags the <noscript> fallback does nothing useful anyway — a GA4 tag cannot run without JavaScript regardless of where the iframe sits. For the overwhelming majority of Squarespace sites, omitting snippet 2 entirely is the correct decision.
If you want it present anyway, put it in Code Injection → Footer. It will render at the bottom of the body rather than the top. It is not what Google specified, and it will not behave identically, but it is the closest Squarespace allows. Do not pretend to yourself that it is equivalent.
A note on scope. Squarespace's Header and Footer injection are site-wide only — the same code on every page. There is per-page injection (Pages panel → gear icon → Advanced → Page Header Code Injection, Core and above) but a GTM container belongs site-wide, not on one page. And checkout pages do not support code injection at all, so nothing you put in these fields reaches the Squarespace checkout flow.
The install, start to finish
- In Google Tag Manager, create an account, then a container. Choose Web as the target platform.
- Copy the container ID. It is in the format
GTM-followed by an alphanumeric string. - Google shows the install dialog with both snippets. Copy the first block — the one for the
<head>. - In Squarespace, open Website → Website Tools → Code Injection.
- Paste the head snippet into the Header field.
- Before you save, check External API keys. If a
G-measurement ID is sitting in the Google Analytics account number field and you are about to deploy a GA4 tag through GTM, remove one of them. Details in the conflicts section below. - Click Save.
- Back in Tag Manager, create your first tag, then click Submit and Publish. An unpublished container does nothing, no matter how correctly the snippet is installed.
Step 8 catches more people than step 5. A GTM container that has never been published serves an empty container, and every test fails with no error.
Testing with Preview mode, and why it behaves oddly on Squarespace
Tag Manager's Preview button opens Tag Assistant, which loads your site in a debug session and shows every tag that fired.
- In Tag Manager, click Preview.
- Enter your site's full URL and click Connect.
- Your site opens in a new window with a debug badge.
- Navigate a page or two and watch the Tag Assistant panel for tags firing.
Three Squarespace-specific reasons Preview mode fails, in order of frequency:
1. You are logged in to Squarespace. This is the big one. Squarespace disables injected scripts in your editing preview when it detects them interfering, showing "We detected an error loading your site preview. This is usually caused by injected code." and a Disable Scripts in Preview control. Once scripts are disabled in preview, your GTM container does not load and Tag Assistant sees nothing. Always test logged out, in a private or incognito window.
2. The container was never published. Preview mode shows the workspace, not the live container, so tags can fire perfectly in Preview and do nothing on the live site. Click Submit and Publish.
3. The cookie banner is blocking it. If your Squarespace cookie banner restricts non-essential cookies until consent — which it does automatically when the Manage cookies button is enabled — tags that drop cookies will not fire until you click accept in the preview window. Accept, then re-test.
For a definitive check outside GTM's own tooling: open the live site logged out, open browser developer tools, filter the Network tab for gtm.js, and reload. One request carrying your GTM- ID means the container is loading.
The four ways GTM and Squarespace's native GA field conflict
This is the section that does not exist elsewhere, and it is where the real damage happens.
Conflict 1 — Double-counted pageviews. If a G- measurement ID sits in External API keys and you deploy a Google tag for the same property through GTM, two tags load for one property. GA4 records two page_view events per pageview. Sessions inflate, engagement rate distorts, and every rate calculated against pageviews is halved. It looks like growth, so it goes unnoticed for months.
Pick one route and remove the other. If GTM is going to own GA4, clear the External API keys field. If the native field is going to own GA4, do not create a Google tag in GTM.
Conflict 2 — You lose Squarespace's automatic ecommerce data. The native integration sends GA4 the order ID, store name, purchase total including shipping, the customer's city, region and country, product name and SKU for every received order. That is a Squarespace-side feature of the native field. Deploy GA4 through GTM instead and you get none of it — you would have to rebuild purchase events by hand using the Order Status page injection field and its {orderId}, {orderGrandTotal} and {customerEmailAddress} tags.
This is the strongest single argument for keeping the native field on a Commerce site and using GTM only for everything else.
Conflict 3 — Different behaviour while logged in. The native integration registers your logged-in previews as pageviews in GA4; Squarespace says so directly. A GTM-delivered tag is an injected script, so it gets suppressed when scripts are disabled in preview. Two routes, opposite behaviour, and if you are comparing them you will conclude one of them is broken.
Conflict 4 — Consent handling diverges. Squarespace's documented consent-mode path assumes the native field: save the measurement ID, then enable the cookie banner in the Cookies & Data Privacy panel with the Decline all button on. A GTM-delivered tag does not automatically inherit that. You have to wire consent into the container yourself, and Squarespace's support scope explicitly excludes helping you do it.
If you already have both installed
Check in this order, logged out on the live site:
- Open DebugView in GA4 via Tag Assistant and count
page_viewevents on a single page load. Two means both routes are live. - Check Settings → Developer tools → External API keys for a
G-ID. - Check Website → Website Tools → Code Injection → Header for both a
gtm.jssnippet and a straygtagsnippet. - Check the GTM container for a Google tag carrying the same measurement ID.
Remove whichever you are not keeping. Historical data will not be corrected — GA4 does not reprocess — so note the date you fixed it and treat everything before it as inflated.
If the counts are still wrong after that, work through the ordered diagnostic in Squarespace GA4 not tracking.
When to get help
If you are running one analytics tool on one Squarespace site, skip Tag Manager and use the native field. That is not a shortcut — it is the better setup, and this post exists partly to say so.
Where GTM earns its keep is multi-platform ad measurement, custom event tracking that changes often, or a portfolio of sites where container versioning and rollback are worth real money. Setting that up well — consent wired correctly, no double-counting, a container that someone else can read in a year — is fiddly, and it is the kind of thing our Squarespace SEO services get asked to fix rather than build. If your answer to the decision table above was "no", you have already done the right thing.
FAQ
Do I need Google Tag Manager on Squarespace?
Usually not. Tag Manager collects no data itself, requires Core, Plus or Advanced for site-wide Code Injection, and Squarespace has no field matching Google's instruction for the second snippet. Install it only if you manage several ad pixels, need custom events regularly, or run tags across many sites.
Where do I put the Google Tag Manager code in Squarespace?
The head snippet goes in Website → Website Tools → Code Injection → Header, which injects into the <head> on every page. The <noscript> snippet has no correct home — Squarespace's Footer field renders before the closing </body> tag, not immediately after the opening one. Most sites should omit it.
What plan do I need for Google Tag Manager on Squarespace?
Core, Plus or Advanced, plus some legacy billing plans, because GTM requires site-wide Code Injection. On the Basic plan there is no Code Injection panel and no workaround — JavaScript inside Code Blocks is gated the same way. Custom CSS, by contrast, is on every plan.
Can I use Google Tag Manager and Squarespace's Google Analytics field together?
Not for the same GA4 property. Two tags for one property record two page_view events per pageview and inflate every session-based metric. Pick one route: keep the native field for its automatic ecommerce data, or clear it and let GTM own GA4.
Why is Google Tag Manager Preview mode not working on Squarespace?
Almost always because you are logged in. Squarespace disables injected scripts in your editing preview, so the container never loads and Tag Assistant sees nothing. Test logged out in a private window. The next two causes are an unpublished container and a cookie banner blocking tags before consent.
Does Google Tag Manager slow down a Squarespace site?
It adds a request and a layer of indirection, and every tag you load through it adds more. Across 54 Squareko-built client sites measured in August 2026 — lab test, unthrottled, single run — median mobile LCP was 2.01s and median page weight 3.0 MB across 93 requests. Stacking GTM on top of a native integration you already have is the version that costs you.















