Google provides step-by-step instructions on how to set up Google Analytics. GA4 is now the default setup experience for new properties. If you want to set up only a GA4 property, follow these instructions. If you want to set up a UA property, or both UA and GA4, follow these instructions. Note, the only difference is simply that after entering a Property Name you will use “Advanced Options” to create a UA tracking code.
Install GA4 and/or UA via the Squarespace integration: copy and paste your GA4 measurement code (G-XXXXXXXX) and/or the UA tracking code (UA-XXXXXX-Y) into Squarespace Settings > Advanced > External API Keys. Use a comma to separate the values.
Install GA4 or UA/GA4 via code injection: copy and paste the entire Global Site Tag (gtag.js) into Squarespace Settings > Advanced > Code Injection > Header.
Last updated Jul 02, 2022
Applies to: Other