You can measure behavioural data about your site with Google Analytics and Google Ads. Follow the steps in this article to set up your Google Analytics and Google Ads accounts with Squarespace.
Before you start
You’ll need to have your Google tag ID.
The instructions for setting up the Google tag with Squarespace are different for tag IDs starting with 'AW-' (usually, Google Ads accounts) and tag IDs starting with 'G-' (usually, Google Analytics properties).
If you have a tag starting with 'AW-'
- Sign in to your Squarespace account.
- On the 'Dashboard', choose the site that you want to modify.
- From the main menu, click Settings.
- Click Developer tools.
- Click Code Injection.
- Under 'Header', paste your Google tag and click Save.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>
If you have a tag starting with 'G-'
- Click the copy icon to copy your tag ID.
- Sign in to your Squarespace account.
- On the 'Dashboard', choose the site you want to modify.
- From the main menu, click Settings.
- Click Developer tools.
- Select External API Keys.
- Paste your tag ID.
- Click Save.