Before you begin
The instructions for setting up the Google tag are different for different tag IDs, so you’ll need to follow the instructions that correspond with your tag.
If you have a tag starting with "AW-"
Tags that start with “AW-” are generally associated with Google Ads accounts.
If you’d like to set up your Google tag using this method, a Squarespace Business or Commerce subscription is required. Learn more about Squarespace pricing.
- Sign in to your Squarespace account.
- On the "Dashboard", choose the site you want to modify.
- From the main menu, click Pages.
- Click Website Tools.
- Click Code Injection.
- Under “Header”, paste your Google tag and click Save. Don’t add more than one Google tag to each page of your website.
<!-- Google tag (gtag.js) -->
<script async src="https://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 "ignored"
Tags that start with “ignored” are generally associated with Google Analytics accounts.
- 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.