How to use Google Analytics with Squarespace

Add Google Analytics tracking ID to your Squarespace website.
To connect Google Analytics to your site, you need a Universal Analytics tracking ID. See Google's documentation for more information about generating and locating this tracking ID. At this time, Squarespace sites aren't compatible with Google Analytics 4 properties.
To add your Google Analytics tracking ID to your site:
- In the Home menu, click Settings, and then click Advanced
- Click External API keys.
- In the Google Analytics account number field, enter your tracking ID for this site.
- Click Save.
It may take up to 24 hours for site statistics to populate in Google Analytics. Hide your own visits Every time you preview a page when you're logged in, Google Analytics registers it as a pageview. If you don't want data from your visits mixed in with data from visitors, you can exclude your IP address.