Does Google Analytics Work With Squarespace?
Yes. Google Analytics works with Squarespace on every plan, and the setup takes about ten minutes. Squarespace has a built-in integration that accepts your GA4 Measurement ID directly in the settings panel, with no code editing or plugins required. Once it is connected, you can see which pages hold attention, where visitors drop off, and whether your content drives the actions that matter to your business.
Google retired Universal Analytics in 2024, so GA4 is now the only version. If you still have an old tracking ID that starts with "UA-", you will create a fresh GA4 property and use its Measurement ID (which starts with "G-") instead. The rest of this guide walks through the full setup, the one data gap most people miss, and how to read the reports afterward.

What You Need Before You Start
Before you add Google Analytics to Squarespace, you need two things: a Google account and administrator access to your Squarespace site. If you already have a Google account, you are ready. If someone else manages your Squarespace site, confirm you have administrator-level permissions first, because you will need them to reach the settings panel.
You do not need to install any plugins, add custom code, or hire a developer. Squarespace handles the tracking script automatically once your Measurement ID is connected. What you get from that connection is real-time visitor data, traffic source reporting, page performance metrics, and the foundation for conversion tracking.
Where the Google Analytics Code Goes in Squarespace
This is the question that trips up most people, and the answer is simpler than expected: you do not paste any JavaScript at all. Squarespace already has the Google Analytics tracking script built into the platform. You only enter your GA4 Measurement ID, the short "G-" code, into one settings field, and Squarespace fires the script for you on every page.
The field lives in Settings > Advanced > External API Keys, in the box labeled Google Analytics. On some Squarespace versions the Advanced menu is shown as Developer Tools, so if you do not see Advanced, look there. Each Squarespace site holds one Google Analytics ID at a time, so you do not need to manage multiple snippets. The next three steps show you how to create the ID, where to find it, and how to drop it into that field.
Step 1: Create a Google Analytics 4 Property
Go to analytics.google.com and sign in with your Google account. If you have never used Google Analytics before, you will be prompted to create an account first. Give it a name, your business name works fine, and continue to the property step.
When you create the property, select "Web" as the platform, enter your Squarespace site's URL, and give the data stream a descriptive name. Set the time zone and currency to match your location, then click Create Stream. Google generates a Measurement ID for the property, starting with "G-" followed by a string of letters and numbers. That ID is what connects GA4 to Squarespace.
Step 2: Find Your GA4 Measurement ID
After you create the data stream, the Measurement ID appears at the top right of the stream details panel. It looks like G-XXXXXXXXXX. Copy it exactly, because the string is case-sensitive and any typo will break tracking.
To find it again later, go to Admin in Google Analytics, select your property, then open Data Streams under the Property column. Click your web stream and the Measurement ID sits at the top of that screen. Keep the tab open, or paste the ID somewhere temporary, while you switch over to Squarespace.
Step 3: Add Google Analytics to Squarespace
In your Squarespace dashboard, go to Settings > Advanced > External API Keys. Find the field labeled Google Analytics, paste your GA4 Measurement ID (the G-XXXXXXXXXX string) into it, and click Save. Do not include any spaces before or after the ID. Squarespace begins sending pageview data to your GA4 property right away, with no further setup needed for basic tracking.
Most sites only need that built-in field. There is also a second method for advanced setups:
- Method A, built-in field (all plans): Settings > Advanced > External API Keys, paste the Measurement ID, Save. This is the simplest route and works on every Squarespace plan.
- Method B, Code Injection (Business plan and above): Copy the GA4 tag from Google Analytics (Admin > Data Streams > your stream > View tag instructions > Install manually) and paste it into Settings > Advanced > Code Injection > Header. This gives you more control and is the route to use if you run Google Tag Manager. Our guide to code injection on Squarespace covers that path in full.
Use Method A unless you specifically need Tag Manager or multiple tracking scripts. Adding GA4 through both methods at once double-counts your pageviews, so pick one.
Step 4: Verify That Tracking Is Working
After you save the Measurement ID, open a new browser tab and visit your Squarespace site. Then return to Google Analytics and open Reports, then Realtime. If the tag is set up correctly, you will see yourself appear as an active user within a minute or two.
If nothing shows up after several minutes, check the Measurement ID in Squarespace for typos, extra characters, or leading spaces, and confirm it starts with "G-" rather than the old "UA-" format. Ad blockers and privacy browsers also block the Google Analytics script, so test in a private window with extensions disabled, or use a different device. Standard reports can take up to 24 hours to fill in, but the Realtime report confirms the connection immediately.
Exclude Your Own Visits
Your own browsing skews the data, especially on a newer or smaller site. To filter it out in GA4, go to Admin > Data Streams > your stream > Configure tag settings > Define internal traffic, and add your IP address. Your visits then stop counting toward your reports, so the numbers reflect real visitors.
Step 5: Set Up Goals and Key Events in GA4
Basic pageview tracking is useful, but GA4 earns its keep when you mark specific actions as Key Events, what older versions called Goals. Key Events tell GA4 which actions matter most, so you measure conversions rather than raw traffic.
GA4 collects several events automatically with no configuration: page_view on every page load, scroll when a visitor passes 90% of a page, click on outbound links, and first_visit for new visitors. To mark any of these as a Key Event, go to Admin, open Events under the Property column, find the event, and toggle "Mark as key event." It then appears in your conversions reporting.
For contact forms, GA4 records a form submission as a generate_lead event in most setups. For Squarespace Commerce sites, purchase events track automatically. To track clicks on a specific button, such as a booking link or a call to action, you set up a custom event through Google Tag Manager or Squarespace's Code Injection. Our guide to adding custom code to Squarespace is a good starting point for that.
Tracking Sales With GA4 on Squarespace Commerce
If you sell through Squarespace Commerce, GA4 can track the whole shopping process, and most of it works the moment your Measurement ID is connected. Squarespace fires the main e-commerce events for you, so you can see what people view, what they add to the cart, and what they actually buy without touching any code.
These are the events Squarespace sends to GA4 on its own:
- view_item: fires when someone opens a product page, and carries the product name, price, and category.
- add_to_cart: fires when a product goes into the cart, with the item details and quantity.
- begin_checkout: fires when a visitor starts the checkout.
- purchase: fires when an order completes, and includes the transaction ID, revenue, tax, and shipping. This is the event that tells you what your store actually earned.
A few events are not sent automatically. The product-impression event on collection pages, the remove-from-cart event, and refunds all need custom tracking through Code Injection, with refunds going through the GA4 Measurement Protocol. Most store owners can skip these and rely on the four automatic events above.
To see the data, go to Reports > Monetization > Ecommerce purchases in GA4, where you get revenue, transactions, average order value, and your top-selling products. If that report stays empty while orders are coming in, confirm that Enhanced measurement is on for your data stream, then place a test order and watch for the purchase event in GA4's DebugView.
The GA4 Reports That Matter for Squarespace
Once GA4 is collecting data, four reports under Reports in the left navigation do most of the work for a Squarespace site owner.
- Acquisition: shows where visitors come from, including organic search, social, direct, referral, email, and paid. Use it to see which channels actually drive traffic, then put your effort where the results are.
- Engagement: shows which pages get the most views, how long people stay, and which pages they leave fast. Your Landing Pages view here reveals the real entry points from search, which are often not the pages you assume matter most.
- Conversion: shows how many Key Events each traffic source produces. This is where the data becomes a decision: if organic search drives form fills while social drives signups, you can spend your time accordingly.
- Tech: shows the devices, browsers, and operating systems your visitors use. If most of your traffic is mobile, your mobile layout is your first priority. Our guide to Squarespace mobile optimization covers that side.
Improving your weakest landing pages is usually the highest-return task a Squarespace owner can do after setting up analytics. Pair this data with our Squarespace design tips to make targeted changes where they count.
What Squarespace Does Not Send to Google Analytics
Most setup guides skip this entirely, and it is the part that saves you from drawing wrong conclusions. Squarespace deliberately keeps some data inside its own dashboard and never passes it to GA4.
- Password-protected page views: if a page is behind a password, Squarespace does not fire the GA4 script until the visitor enters it. Those views show in Squarespace Analytics but stay invisible to Google Analytics.
- Member Area content: pages restricted to logged-in members run through Squarespace's membership system, which bypasses the standard GA4 script. Member activity lives in the Member Area panel, not in GA.
- Squarespace Scheduling and Acuity pages: booking flows run on a separate subdomain or embed, so GA4 does not track them without extra cross-domain setup.
- Commerce revenue totals: Squarespace calculates its own revenue server-side using a different attribution model than GA4, which is why the two rarely agree on total sales.
- Form field content: GA4 receives the form submission event, but the actual answers stay in Squarespace's form storage.
The takeaway: use Squarespace Analytics for commerce and member reporting, and GA4 for everything else. They are complementary tools, not competing ones.
Cookie Consent and GA4: The Hidden Data Gap
Squarespace shows a built-in cookie banner to visitors in regions where privacy laws require it, including the EU under GDPR and California under CCPA. What most site owners miss is that this banner directly changes how much data GA4 collects.
When the banner appears, Squarespace holds the GA4 script until the visitor accepts cookies. If a visitor scrolls past it, closes the tab, or ignores it, GA4 never records that session. For an audience with a lot of EU traffic, a meaningful share of visits can go untracked. Here is how to handle it:
- Check your consent rate: in GA4, go to Admin > Data Streams > your stream > Configure tag settings > Consent settings to see how many sessions granted consent versus declined.
- Turn on GA4 modeling: GA4 can estimate traffic from visitors who declined, partly filling the gap. Enable it under Admin > Reporting identity.
- Review the banner behavior: if yours blocks all tracking by default, your GA data reflects only opted-in visitors, which is the strictest and lowest-count setting.
If your GA4 numbers look surprisingly low next to Squarespace's own traffic figures, the consent gap is often the reason. Check it before assuming your setup is broken.
Squarespace Analytics vs Google Analytics: Which Numbers to Trust
Once GA4 is running you have two sets of numbers, and they rarely match. That is normal, and here is how to read them.
- They count differently. Squarespace Analytics counts visits on the server, so it catches visitors even when they block scripts. GA4 counts events in the browser, so ad blockers and privacy features make it under-count. GA4 totals are usually lower, often by 15% to 35% on content-heavy sites.
- Sessions versus pageviews. GA4 counts sessions, groups of interactions, while Squarespace counts pageviews. One visitor reading three pages is one GA4 session but three Squarespace pageviews. Compare the same metric type, not the totals.
- Use each for what it does best. Squarespace Analytics gives a fast daily read on traffic volume and commerce. GA4 gives traffic sources in detail and Key Events like form fills, which the built-in panel does not break down.
- Do not force them to reconcile. Pick one tool as your source of truth for each question rather than trying to make the numbers agree.
Using Your GA4 Data to Improve the Site
GA4 is not just a traffic counter. Once you have a few weeks of data, specific reports tell you where to spend your effort.
Start with Reports > Engagement > Pages and screens, and sort by engagement rate rather than views. A post with 2,000 views and a 20% engagement rate is underperforming next to one with 800 views and a 65% rate. Work through the bottom fifth of your pages by engagement rate, improving weak introductions, thin sections, and mobile formatting, and overall site metrics tend to rise within a few months.
Then link Google Search Console to your GA4 property under Admin > Search Console links. Once connected, the Search Console section of your Acquisition report shows the actual queries people searched before landing on your pages, which queries bring clicks but no conversions, and which pages pull qualified traffic. It is the fastest way to find content gaps without third-party tools.
Common Issues With Squarespace Google Analytics Setup
If your reports are empty or showing far less than expected, one of these is almost always the cause.
- Wrong ID type. The ID in Squarespace must start with "G-". A UA- ID from an old property, or a Stream ID (a long number with no prefix), will not send data. Confirm it in GA4 under Admin > Data Streams.
- Duplicate tracking. Adding GA4 through both the built-in field and Code Injection double-counts pageviews. Keep one method active.
- Cookie consent blocking. If your audience is heavily EU-based and most visitors decline cookies, your GA data will be sparse. See the consent section above.
- Ad blockers. A real share of visitors block analytics scripts by default. This is expected, not a configuration error.
- You filtered yourself out. If you set up an internal traffic filter, GA4 excludes your own visits. Check Admin > Data Filters if your test visits are missing.
- Processing delay. The Realtime report updates immediately, but standard reports can take up to 24 hours. Give a new property a day or two before drawing conclusions.
The fastest check: open your site in a private window with extensions disabled, accept cookies if the banner appears, and watch the GA4 Realtime report. If you see yourself, the setup is working.
Frequently Asked Questions
Does Google Analytics work with Squarespace?
Where exactly do I put the Google Analytics code in Squarespace?
Why is Google Analytics not tracking my Squarespace site?
How long does it take for Google Analytics data to appear?
Does Squarespace's cookie consent banner affect Google Analytics data?
Do I need Google Tag Manager to use Google Analytics on Squarespace?
What e-commerce events does Squarespace send to GA4 automatically?
Start Tracking What Actually Matters
Adding Google Analytics to Squarespace is a ten-minute task that pays off every day afterward. Once GA4 is connected, you can see which pages pull traffic, where visitors leave, and whether your content drives the actions that grow your business.
The setup is only the start. The value comes from reading the data, spotting the weak pages, and making deliberate improvements. Build the habit of checking your top landing pages, your traffic sources, and your Key Events each week, and let what you see guide your next design change and your next post. That loop, from data to decision to result, is how the best Squarespace sites stay ahead.
* Read the rest of the post and open up an offer