Summarize this article with:
Squarespace Analytics tells you what happened. Google Analytics tells you why.
Learning how to add Google Analytics to Squarespace takes about 10 minutes and requires zero coding. You paste one measurement ID into your settings, and GA4 starts tracking visitor behavior, traffic sources, and user engagement automatically.
The built-in Squarespace analytics works fine for basic pageview data. But if you want audience demographics, conversion tracking, or integration with Google Ads, you need the full Google Analytics 4 setup.
This guide walks you through creating a GA4 property, finding your measurement ID, connecting it to Squarespace, and verifying that data collection works correctly.
How to Add Google Analytics to Squarespace

Adding Google Analytics to Squarespace is the process of connecting a GA4 measurement ID to your website through Squarespace’s built-in integration.
You paste a tracking code into Developer Tools, and Google starts collecting visitor data automatically.
Users need this when tracking website traffic, monitoring traffic sources, measuring marketing campaign performance, or analyzing user engagement beyond Squarespace’s native analytics.
This guide covers 5 steps requiring approximately 10 minutes.
Any Squarespace subscription plan works. Before you publish your Squarespace website, having analytics ready means you capture data from day one.
Prerequisites
Gather these before starting:
Is Squarespace still gaining ground?
Explore the newest Squarespace statistics: market size, user demographics, revenue insights, and design trends powering the platform.
Check the Numbers →- Google account (free)
- Squarespace website on any subscription plan
- Admin access to your Squarespace site
- 10 minutes of time
Skill level: Beginner. No coding required.
You will create a Google Analytics 4 property during this process. GA4 replaced Universal Analytics in July 2023, so any tracking ID starting with “UA-” no longer works.
Step One: How Do You Create a Google Analytics 4 Property?
A GA4 property is your data container in Google Analytics. Create one at analytics.google.com by clicking Admin (gear icon), then “+ Create Property.”
Enter your property name, select your reporting time zone and currency.
Click Next through the business questions.
What Information Do You Enter?
Property name: Your website or business name. Time zone: Where most visitors are located. Currency: Match your Squarespace Commerce settings if you sell products.
Where Is the Admin Panel?
Bottom left corner of Google Analytics. Look for the gear icon.
The property appears in your Admin panel immediately after creation.
Step Two: How Do You Set Up a Web Data Stream?
A data stream connects your website to the GA4 property. Without it, Google Analytics has nowhere to send your visitor behavior data.
After creating your property, Google prompts you to add a data stream. Select “Web” as your platform type.
What Details Does Google Need?
Website URL: Your full Squarespace domain (include https://). Stream name: Something recognizable like “Main Website” or your site name.
Click “Create stream” and your measurement ID generates instantly.
What Happens After Creation?
Google displays your measurement ID (format: G-XXXXXXXXXX) and offers installation instructions.
The data stream configuration page also shows enhanced measurement settings. These track pageviews, scrolls, outbound clicks, and site search automatically.
Step Three: Where Do You Find Your GA4 Measurement ID?
Your measurement ID is the 12-character code that links Squarespace to Google Analytics. It always starts with “G-” followed by numbers and letters.
Find it in Admin, then Data Streams, then click your web stream name.
How Do You Copy the ID?
The measurement ID appears at the top right of the stream details panel. Click the copy icon next to it.
If you see a code starting with “UA-” anywhere, that is the old Universal Analytics format. It will not work with Squarespace anymore.
What If You Have Multiple Properties?
Each GA4 property has its own measurement ID. Make sure you copy the ID from the correct property if you manage multiple websites.
Squarespace accepts multiple measurement IDs separated by commas, but most users only need one.
Step Four: How Do You Add the Measurement ID to Squarespace?
Squarespace has a built-in Google Analytics integration that handles all the tracking code installation automatically. No manual code injection needed for basic setup.
Navigate to Settings, then Developer Tools, then External API Keys.
Where Is the Google Analytics Field?
The “Google Analytics account number” field appears at the top of the External API Keys panel. Paste your G-XXXXXXXXXX measurement ID here and click Save.
What About Older Squarespace Versions?
Some Squarespace sites show this under Settings, then Advanced, then External API Keys. Same process, different navigation path.
Can You Add Multiple Tracking IDs?
Yes. Separate each measurement ID with a comma (G-XXXXXXXXXX,G-YYYYYYYYYY). Useful if you manage analytics for clients or need separate properties for testing.
Step Five: How Do You Verify Google Analytics Is Tracking Your Site?
Verification confirms your tracking code installation worked. Data typically appears within minutes, though full reports can take 24-48 hours.
Open your Squarespace site in a new browser tab while logged out.
How Do You Check Realtime Reports?
In Google Analytics, go to Reports, then Realtime, then Overview. You should see at least 1 active user if you are browsing your site.
No active users showing? Wait 2-3 minutes and refresh. The realtime reporting has a slight delay.
What Should You See in the Dashboard?
Realtime reports show: active users, pageviews per minute, traffic sources, and current pages being viewed. Your own visit counts if you are not filtering your IP address.
Verification
Expected results after successful setup:
- Realtime report shows active users when browsing your site
- Pageview data appears in Google Analytics within 24-48 hours
- Your page navigation matches the pages/screens report
Test by visiting 3-4 different pages on your site. Check if those pageviews register in the realtime overview.
If your site has a landing page, visit that first to confirm tracking works on your most important entry point.
Troubleshooting
No Data After 48 Hours
Issue: Google Analytics shows zero sessions and pageviews.
Solution: Settings, then Developer Tools, then External API Keys. Confirm measurement ID format starts with G- not UA-. Delete and re-paste the ID, then click Save again.
Measurement ID Shows UA- Prefix
Issue: Your tracking ID starts with UA- instead of G-.
Solution: Create a new GA4 property in Google Analytics. Universal Analytics stopped processing data in July 2024. Only G- measurement IDs work now.
Realtime Shows Zero Users While Browsing
Issue: You are on your site but realtime reports show 0 active users.
Solution: Clear browser cache, visit in incognito mode, disable ad blockers. Some browser extensions block Google Analytics scripts.
Squarespace and Google Analytics Numbers Differ
Issue: Squarespace Analytics shows different visitor counts than GA4.
Solution: Expected behavior. Squarespace excludes your visits when logged in; Google Analytics counts them. Different tracking methods, different results. Both are accurate within their own systems.
Next Steps
After your analytics dashboard starts collecting data:
- Set up IP address filters to exclude your own visits from reports
- Configure Google consent mode for cookie compliance (GDPR, CCPA)
- Connect Google Search Console for organic search data
- Create custom events for form submission tracking
- Set up conversion tracking if running Google Ads campaigns
Consider enabling enhanced measurement in your data stream settings. It automatically tracks scrolls, outbound clicks, file downloads, and video engagement without extra configuration.
Related Processes
These guides connect to your analytics setup:
- How to add Google reviews to Squarespace for social proof tracking
- How to add a pop up on Squarespace for conversion event tracking
- How to change favicon on Squarespace for brand recognition in analytics referrals
- How to edit your Squarespace website for making changes based on analytics insights
- How to add Google Analytics to Wix if managing multiple platforms
For similar tracking setup on other platforms, the process follows comparable steps: create GA4 property, copy measurement ID, paste into platform settings.
FAQ on How To Add Google Analytics To Squarespace
Is Google Analytics Free to Use With Squarespace?
Yes. Google Analytics 4 is completely free. Squarespace’s built-in integration works on all subscription plans without additional cost. You only need a Google account to create a GA4 property and generate your measurement ID.
Where Do I Find External API Keys in Squarespace?
Go to Settings, then Developer Tools, then External API Keys. Older Squarespace versions show this under Settings, then Advanced, then External API Keys. The Google Analytics field appears at the top of this panel.
What Is the Difference Between UA and GA4 Tracking IDs?
UA tracking IDs (Universal Analytics) start with “UA-” and stopped processing data in July 2024. GA4 measurement IDs start with “G-” and are the only format that works with Squarespace now.
How Long Until Data Appears in Google Analytics?
Realtime reports show visitor data within minutes. Full analytics reports including traffic sources, audience demographics, and session duration data populate within 24-48 hours after connecting your measurement ID.
Why Does Squarespace Analytics Show Different Numbers Than Google Analytics?
Different tracking methods. Squarespace excludes your visits when logged in; Google Analytics counts everything. Cookie consent choices also affect tracking. Both platforms are accurate within their own measurement systems.
Can I Use Google Tag Manager Instead of the Built-In Integration?
Yes. Paste your GTM container code in Website, then Pages, then Custom Code, then Code Injection. This method requires a Squarespace Business or Commerce plan and offers more advanced event tracking configuration options.
Does Google Analytics Track Squarespace Commerce Sales?
Yes. Squarespace automatically sends ecommerce data to GA4 including order ID, transaction total, and product names. Enable enhanced ecommerce in your data stream settings for detailed purchase funnel reports.
How Do I Exclude My Own Visits From Google Analytics?
Create an IP address filter in Google Analytics under Admin, then Data Streams, then Configure Tag Settings. Add your IP to the exclusion list. Squarespace Analytics does this automatically when you are logged in.
Can I Add Multiple Google Analytics Properties to One Squarespace Site?
Yes. Enter multiple measurement IDs separated by commas in the External API Keys field (G-XXXXXXXXXX,G-YYYYYYYYYY). Useful for agencies managing client analytics or separating test environments from production data.
What Should I Do If Google Analytics Is Not Tracking My Site?
Verify your measurement ID starts with “G-” not “UA-“. Clear browser cache and test in incognito mode. Disable ad blockers that may block tracking scripts. Re-paste the ID in Developer Tools and save again.
Conclusion
You now know how to add Google Analytics to Squarespace. The entire process takes under 10 minutes: create a GA4 property, copy your measurement ID, paste it into External API Keys, and verify tracking in realtime reports.
Squarespace handles the tracking code installation automatically. No manual code injection required for basic website traffic tracking.
Once data starts flowing, you will see session duration, bounce rate monitoring, and referral traffic analysis that Squarespace’s native analytics cannot provide.
Your next moves: set up IP address filtering to exclude internal traffic, enable cookie consent for GDPR compliance, and connect Google Search Console for organic search data.
Check your analytics dashboard tomorrow. Your first full day of visitor data will be waiting.
