Integrating Google Analytics with Squarespace: A Complete Guide
Integrating Google Analytics with Squarespace allows you to track and analyze your website traffic effectively. Here's how to set it up and understand its features.
Setting Up Google Analytics
- Create a Google Analytics account if you don't have one
- Get your measurement ID (starts with G-)
- Add the ID to Squarespace:
- Open Developer Tools
- Click External API Keys
- Enter your measurement ID
- Save changes
Note: Allow up to 24 hours for data to appear in Google Analytics.
Implementing Consent Collection
Enable Google's consent mode to manage visitor privacy:
- Add your Analytics measurement ID
- Enable Cookie Banner in Cookie and Visitor Data panel
- Select Accept/Reject banner type
- Customize banner text (optional)
- Save settings
Managing Traffic Data
Exclude Internal Traffic:
- Create a filter in Google Analytics to remove your IP address
- Prevents skewed data from your own site visits
E-commerce Tracking Information:
- Order ID
- Store name
- Total order amount
- Customer location
- Product details
- SKU information
Key Differences Between Squarespace and Google Analytics
-
Internal Traffic:
- Squarespace excludes logged-in visits
- Google Analytics counts all traffic unless filtered
-
Bot Filtering:
- Both platforms use different filtering methods
- Results may vary
-
Data Sampling:
- Squarespace: Uses all visitor data
- Google Analytics: May use sample-based estimates
-
Commerce Tracking:
- Some orders might not appear in Google Analytics
-
Traffic Attribution:
- Squarespace: Based on last click
- Google Analytics: Uses multiple attribution models
-
Location Data:
- Both track geographical data
- May show differences due to IP address interpretation
Removing Google Analytics
To disconnect:
- Open Developer Tools
- Click External API Keys
- Delete measurement ID
- Save changes
Ajax Loading Consideration
For Squarespace 7.0 sites using Ajax loading:
- Google Analytics may only record initial page visits
- Disable Ajax loading for complete tracking