Integrate Google Analytics with Squarespace: A Complete Setup Guide
Google Analytics offers powerful tracking capabilities for Squarespace websites. Here's how to set it up and use it effectively:
Adding Google Analytics to Squarespace
- Create a Google Analytics account if you don't have one
- Get your measurement ID (starts with G-)
- In Squarespace, go to Development Tools > External API Keys
- Enter your measurement ID in the Google Analytics Account Number field
- Save changes
Note: Allow up to 24 hours for data to appear in your Analytics dashboard.
Setting Up Consent Management
- Add your measurement ID first
- Enable cookie banner in Cookies and Visitor Data panel
- Select "Opt in & out" banner type
- Customize banner text (optional)
- Save settings
Tracking Features
- Order tracking data includes:
- Order ID
- Store name
- Purchase total (with shipping)
- Customer location
- Product details and SKUs
Excluding Your Own Traffic
Create a filter in Google Analytics to exclude your IP address to prevent your site visits from affecting analytics data.
Key Differences Between Squarespace and Google Analytics
- Internal traffic counting
- Bot filtering methods
- Data sampling approaches
- Commerce conversion tracking
- Traffic source attribution
- Location data recording
Ajax Loading Consideration
For version 7.0 sites using Ajax loading, Google Analytics may only record initial page visits. Disable Ajax loading for complete tracking.
Removing Google Analytics
- Go to Development Tools
- Open External API Keys
- Clear the measurement ID
- Save changes
For optimal tracking accuracy, regularly check both Squarespace and Google Analytics data to ensure proper functionality and identify any discrepancies.