Google Analytics Integration Guide for Squarespace: Setup and Best Practices

By Michael Thompson

December 12, 2024 at 12:23 PM

Google Analytics connects to your Squarespace site to track visitor data and analyze traffic patterns. Here's how to set it up and use it effectively.

Before Starting

Create a Google Analytics account if you haven't already. Sign up through Google's official site.

Adding Your Measurement ID

  1. Access Developer 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.

Enabling Consent Collection

  1. Add measurement ID first
  2. Open Cookie and Visitor Data panel
  3. Enable Cookie Banner
  4. Choose Accept/Reject banner type
  5. Customize banner text (optional)
  6. Save settings

Tracking Considerations

Internal Traffic

  • Google Analytics counts your own site visits
  • Create an IP filter to exclude your traffic
  • Find your IP through Google's documentation

Commerce Tracking Google Analytics receives:

  • Order ID
  • Store name
  • Purchase amount
  • Customer location
  • Product details
  • SKU information

Removing Google Analytics

  1. Open Developer Tools
  2. Click External API Keys
  3. Delete measurement ID
  4. Save changes

Key Differences: Squarespace vs Google Analytics

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 sample-based estimates

Commerce Tracking

  • Some orders might not register in Google Analytics
  • Squarespace typically shows higher conversion rates

Traffic Sources

  • Squarespace: Last-click attribution
  • Google Analytics: Multiple attribution models
  • Direct traffic often higher in Squarespace

Location Tracking

  • Both use IP-based location
  • Results may vary due to different tracking methods

Ajax Loading Notice: For version 7.0 sites using Ajax loading, Google Analytics may only record initial page visits. Disable Ajax loading for complete tracking.

Related Articles

Previous Articles