How to Set Up and Monitor Google Analytics on Squarespace: A Complete Guide

By Michael Chen

December 12, 2024 at 12:22 PM

Add your Google Analytics tracking ID to monitor website traffic and gain valuable insights into visitor behavior. Here's how to set it up and use it effectively:

Before Starting Create a Google Analytics account if you don't have one already.

Adding Your Measurement ID

  1. Access Development Tools panel
  2. Select External API Keys
  3. Enter your Google Analytics measurement ID (starts with G-)
  4. Save changes

Note: Allow up to 24 hours for data to appear in Google Analytics.

Implementing Consent Collection

  1. Add measurement ID
  2. Enable cookie banner in Cookies and Visitor Data panel
  3. Select Accept and Reject Cookie Banner type
  4. Customize banner text (optional)
  5. Save settings

Tracking Data Accuracy

  • Create IP filters to exclude internal traffic
  • Squarespace sends order details to Google Analytics:
    • Order ID
    • Store name
    • Total purchases
    • Customer location
    • Product details and SKUs

Key Differences Between Platforms

  • Internal Traffic: Squarespace excludes logged-in visits; Google Analytics includes them
  • Bot Filtering: Different filtering methods for non-human traffic
  • Data Sampling: Squarespace uses complete data; Google Analytics may use sampling
  • Conversion Tracking: Some variations in order tracking
  • Traffic Attribution: Different methods for identifying traffic sources
  • Geographic Data: Varying IP address interpretation methods

Removing Google Analytics

  1. Open Development Tools
  2. Click External API Keys
  3. Remove measurement ID
  4. Save changes

Ajax Loading Note For version 7.0 sites using Ajax loading, Google Analytics may only record initial page visits. Disable Ajax loading for complete traffic data.

Related Articles

Previous Articles