Add Google Analytics to Your Squarespace Site: Complete Setup Guide

By Michael Chen

December 12, 2024 at 01:36 PM

Sync your Squarespace site with Google Analytics to effectively track and analyze your website traffic. Here's everything you need to know.

Getting Started Create a Google Analytics account at google.com/analytics before proceeding with the integration.

Adding Your Measurement ID

  1. Navigate to Developer Tools > External API Keys
  2. Enter your Google Analytics measurement ID (starts with G-)
  3. Save changes
  4. Allow up to 24 hours for data to populate

Setting Up Consent Management

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

Tracking Clean Data Filter out your own activity by excluding your IP address in Google Analytics to maintain accurate visitor data.

eCommerce Tracking Squarespace automatically sends these order details to Google Analytics:

  • Order ID
  • Store name
  • Total purchase amount
  • Customer location
  • Product details (name and SKU)

Removing Google Analytics

  1. Go to Developer Tools > External API Keys
  2. Delete measurement ID
  3. Save changes

Key Differences Between Platforms

Traffic Counting

  • Squarespace excludes logged-in activity
  • Google Analytics includes all traffic unless filtered

Data Processing

  • Squarespace uses complete visitor data
  • Google Analytics may use sampled data for large audiences

Commerce Tracking

  • Some discrepancies may occur in order tracking
  • Google Analytics occasionally misses transactions

Traffic Attribution

  • Squarespace bases on last-click referral
  • Google Analytics uses different attribution models
  • Direct traffic numbers may vary between platforms

Location Tracking

  • Both platforms track visitor location
  • IP address interpretation may differ

Ajax Loading Note For version 7.0 sites using Ajax loading, Google Analytics may only record initial page visits. Consider disabling Ajax loading for complete tracking.

Related Articles

Previous Articles