How to Set Up and Use Google Analytics with Your Squarespace Website: A Step-by-Step Guide

By Michael Thompson

December 12, 2024 at 12:23 PM

Google Analytics connects easily with Squarespace to track visitor data and create valuable insights for your website. Here's how to set it up and use it effectively.

Getting Started

  1. Create a Google Analytics account if you don't have one
  2. Obtain your measurement ID (starts with G-)

Adding Google Analytics to Squarespace

  1. Open Developer Tools panel
  2. Click External API Key
  3. Enter your measurement ID in the Google Analytics Account Number field
  4. Save changes

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

Setting Up Cookie Consent

  1. Add your Google Analytics measurement ID
  2. Access Cookie and Visitor Data panel
  3. Enable Cookie Banner
  4. Select Opt-in and Opt-out options
  5. Customize banner text (optional)
  6. Save settings

Tracking Features

  • Order tracking includes:
    • Order ID
    • Store name
    • Total purchase amount
    • Customer location
    • Product details and SKU

Data Accuracy Tips

  • Filter out your IP address to exclude personal visits
  • Disable Ajax loading on Version 7.0 sites to ensure accurate tracking
  • Expect some differences between Squarespace and Google Analytics data due to:
    • Internal traffic counting
    • Bot filtering methods
    • Data sampling approaches
    • Traffic source attribution
    • Location tracking variations

Removing Google Analytics

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

For optimal tracking, regularly check your settings and ensure proper implementation of filters and consent mechanisms.

Related Articles

Previous Articles