How to Add Google Analytics 4 to Squarespace

Cody Schneider8 min read

Setting up a Squarespace site is an exciting first step, but to truly grow, you need to understand how visitors interact with it. The best way to get these insights is by connecting your site to Google Analytics 4. This tutorial will walk you through exactly how to add your GA4 property to your Squarespace website, step-by-step, so you can start making data-driven decisions right away.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why You Should Connect Google Analytics 4 to Your Squarespace Site

Squarespace has its own built-in analytics, and they’re great for a quick overview of traffic, popular content, and referrers. So, why bother with Google Analytics? The simple answer is depth. GA4 offers a much more powerful and flexible way to understand your visitors and their entire journey.

Here’s what you gain by adding GA4:

  • Deeper Audience Insights: Learn about your visitors' demographics (age, gender), geographic locations, interests, and the technology they use (browsers, devices). This helps you paint a clearer picture of who your audience is.
  • User Behavior Tracking: GA4 is built around an "event-based" model, meaning it can track specific interactions beyond just page views. You can track button clicks, form submissions, video plays, and file downloads to see exactly what people do on your site.
  • Traffic Source Analysis: Discover precisely where your traffic is coming from. Is it organic search from Google, social media sites like Instagram, referral links from other blogs, or paid ad campaigns? GA4 breaks this down in detail so you know which marketing channels are actually working.
  • Conversion Tracking: This is a big one. You can set up goals, or "conversions," to track a desired action, like a newsletter signup, a contact form submission, or a product purchase. This lets you measure the effectiveness of your website and marketing efforts.
  • Cross-Platform View: For businesses that use other Google products like Google Ads or Google Search Console, integrating with GA4 provides a single, unified view of your entire online presence.

In short, Squarespace Analytics tells you what’s happening, while Google Analytics 4 helps you understand why it’s happening.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Getting Started: What You Need

Before getting into the steps, let's make sure you have everything you need. The process is straightforward, but having these two things ready will make it even smoother.

  1. A Squarespace Account with a Business Plan or Higher: To use the built-in integration feature for Google Analytics, you need to be on Squarespace's "Business," "Commerce Basic," or "Commerce Advanced" plan. The Personal plan does not support this feature.
  2. A Google Account: This is the account you'll use to create and manage your Google Analytics 4 property. If you have a Gmail account, you already have one. If not, you can create one for free.

Step-by-Step Guide: How to Add GA4 to Squarespace

The process involves two main parts: getting your unique tracking code from Google Analytics and then pasting it into the correct field in your Squarespace settings. Let's tackle them one by one.

Part 1: Find Your Google Analytics 4 Measurement ID

Your Measurement ID is a unique identifier that tells Google Analytics where to send data from your website. It always starts with "G-" followed by a combination of letters and numbers (e.g., G-XYZ123ABC). Here's how to find it.

If You're New to Google Analytics:

If you have never used Google Analytics before, you'll need to create an account and a new GA4 property first.

  1. Go to the https://analytics.google.com/ and sign in with your Google account.
  2. Click on "Start measuring." Here, you'll begin the setup process.
  3. Account Creation: Give your account a name. This is usually your business or organization name. Review the account data sharing settings and click "Next."
  4. Property Creation: Now, give your property a name (usually your website's name, like "My Awesome Blog"). Set your reporting time zone and currency. Click "Next."
  5. Business Details: Provide some basic information about your industry and business size. This helps Google provide you with relevant benchmark data. Click "Next."
  6. Business Objectives: Select what you want to achieve with your website, such as "Generate leads" or "Drive online sales." This helps tailor the reports you'll see. Click "Create" and accept the terms of service.
  7. Set Up a Data Stream: This is the most important step! After creating the property, you'll be prompted to "Choose a platform." Select "Web."
  8. Enter your Squarespace website URL (e.g., https://www.yourdomain.com) and give the stream a name (e.g., "My Website"). Make sure "Enhanced measurement" is turned on - this automatically tracks common events like outbound clicks and scrolls. Click "Create stream."
  9. Find Your Measurement ID: A new screen will appear showing your "Web stream details." In the top right corner, you will see your "MEASUREMENT ID (G-...)". Copy this entire ID. This is what you need for Squarespace!

If You Already Have a GA4 Property:

If you've already set up GA4 but can't remember your ID, here’s how to quickly find it:

  1. Log in to your Google Analytics account.
  2. Click on the Admin gear icon in the bottom-left corner.
  3. In the "Property" column, make sure your correct GA4 property is selected from the dropdown menu.
  4. Click on "Data Streams."
  5. Click on the web data stream for your website. The panel that opens will show your Measurement ID in the top-right corner. Copy it to your clipboard.

Quick Tip: Your ID must start with "G-". If you see one that starts with "UA-", that's from the old Universal Analytics, which no longer processes data. Make sure you are using your new GA4 "G-" ID.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Part 2: Add Your Measurement ID to Squarespace

With your Measurement ID copied, it's time to head over to your Squarespace dashboard. The user interface for this has changed slightly over time, so follow these current steps.

  1. Log in to your Squarespace account and go to your site's dashboard.
  2. In the left-hand menu, click on Settings.
  3. Under the "Website" section, click on External API Keys.
  4. You'll see a field labeled "Google Analytics Measurement ID." Paste the "G-" ID you copied from your GA4 account into this box.
  5. Click Save.

And that’s it! You've successfully connected Google Analytics 4 to your Squarespace website. The integration is now active, and Squarespace will automatically add the necessary tracking code to every page on your site.

Verifying the Connection: Is It Working?

Now for the satisfying part: making sure data is actually flowing. It can take 24-48 hours for regular reports in GA4 to populate with data, but you can check the connection immediately using the Realtime report.

  1. Go back to your Google Analytics dashboard.
  2. In the left navigation, go to Reports > Realtime. This report shows you activity on your site as it happens.
  3. Open a new browser tab or use your phone and visit your Squarespace website. Navigate to a few different pages.
  4. Switch back to the GA4 Realtime report. Within a minute or so, you should see yourself appear as a user on the map and see page views recorded in the event cards. If you see activity pop up, congratulations — your connection is working properly!

If you don't see any activity, don't panic. Double-check that you copied the correct Measurement ID without any extra spaces and pasted it into the right field in Squarespace. Also, if you use ad-blockers, they can sometimes prevent tracking scripts from loading, so try testing from an incognito window with extensions disabled.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

What Should You Do Next?

Having GA4 installed is just the beginning. The real value comes from using the data it collects. Here are a few things to start looking at:

  • (Acquisition Reports): Go to Reports > Acquisition > Traffic acquisition to see which channels are driving the most traffic. Is it Google search? Instagram? A specific blog post that's getting shared? This tells you where to focus your marketing.
  • (Engagement Reports): Go to Reports > Engagement > Pages and screens to find your most popular content. Knowing what resonates with your audience helps you create more of what they love. You can also see "Views per user" and "Average engagement time," which are great indicators of content quality.
  • Set Up Conversion Tracking: Think about the most important action you want a user to take. Common e-commerce conversions like add_to_cart and purchase are automatically tracked with Squarespace's integration. But if your goal is lead generation, you can also set up a custom event to fire every time someone visits your "Thank You" page after submitting a form.

Final Thoughts

By connecting Google Analytics 4 to your Squarespace website, you've unlocked a powerful tool for understanding your audience and measuring your site's performance. The process is quick, requires no code, and gives you access to enterprise-level insights that can help you grow your business, blog, or portfolio.

Once you start gathering data from GA4 and other tools, the next challenge is to bring it all together in one place for analysis. That's actually why we built Graphed. We make it easy to connect data from places like Google Analytics, Shopify, and your ad platforms so you can create dashboards and get insights simply by asking questions. Instead of jumping between tabs, you get a single, real-time view of what's working across all your channels.

Related Articles