Squarespace and Google Analytics Integration: Complete Setup Guide

By Michael Chen

December 12, 2024 at 12:22 PM

To integrate Google Analytics with Squarespace, follow these essential steps to track and analyze your site's traffic data.

Setting Up Google Analytics

  1. Create a Google Analytics account if you don't have one
  2. Get your measurement ID (starts with G-)
  3. Add the ID to Squarespace:
    • Navigate to Developer Tools
    • Select External API Keys
    • Enter measurement ID in Google Analytics Account Number field
    • Save changes

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

Implementing Consent Mode

  1. Add your Google Analytics measurement ID
  2. Enable the cookie banner:
    • Open Cookie and Visitor Data panel
    • Toggle Cookie Banner on
    • Choose Accept and Reject banner type
    • Customize banner text (optional)
    • Save changes

Managing Traffic Data

To exclude your own site visits:

  • Create an IP address filter in Google Analytics
  • This prevents internal traffic from skewing visitor data

E-commerce Tracking

Squarespace automatically sends these order details to Google Analytics:

  • Order ID
  • Store name
  • Total amount (including shipping)
  • Customer location (city, region, country)
  • Product details (name, SKU)

Removing Google Analytics

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

Key Analytics Differences

Squarespace vs. Google Analytics variations:

  • Internal traffic counting methods differ
  • Bot filtering approaches vary
  • Data sampling methods are different
  • Commerce conversion tracking may show discrepancies
  • Traffic source attribution varies
  • Location data recording methods differ

Ajax Loading Note

For Squarespace 7.0 sites with Ajax loading: Analytics may only record initial page visits. Disable Ajax loading for complete traffic data.

Remember to monitor both platforms for the most comprehensive understanding of your site's performance, as each offers unique insights and tracking methodologies.

Related Articles

Previous Articles