Step by step
- In Google Analytics, create a GA4 property with a web data stream and copy the measurement ID (G-…).
- In Squarespace, open Developer Tools and choose External API Keys.
- Paste the ID in the Google Analytics account number field and save.
- Turn on Squarespace’s cookie banner, so EU visitors can accept.
- Data can take up to 24 hours to appear. Check Realtime in Google Analytics after a test visit.
If you had an older ID
If the field still holds an old Universal Analytics ID (UA-…), replace it with your GA4 measurement ID.
Don’t add it twice
Squarespace says not to add Google Analytics code through code injection if you use the built-in field. Code-based setups such as Google Tag Manager are outside Squarespace’s support.
Without a banner
Google Analytics in the EU only measures people who accept cookies. If you would rather count everyone without a banner, see the Okidoki Squarespace guide.