How to Add Google Tag Manager to Squarespace
If you want to track your Google Analytics data and conversions from Google Ads, adding Google Tag Manager (GTM) to your Squarespace website is essential. This guide will walk you through the process step by step.
Step 1: Create a Google Tag Manager Account
Open your web browser and go to Google Tag Manager.
Click on Sign In and enter your Google account credentials.
Once logged in, you will see that no accounts exist under your Google Tag Manager dashboard.
Click on Create Account.
Enter a name for your account (e.g., "Digital Growth Club").
Select your country (e.g., United Kingdom).
Choose whether to share data anonymously with Google (optional).
Enter your website’s domain as the Container Name (e.g., www.digitalgrowthclub.com).
Select Web as the target platform.
Click Create and accept the terms of service.
Step 2: Install Google Tag Manager on Squarespace
Once your account is created, Google Tag Manager will provide two code snippets for installation.
Step 2.1: Add the First Code Snippet to the Header
Copy the first code snippet, which needs to be placed in the head section of your website.
Log into your Squarespace website.
Click on Settings in the main menu.
Navigate to Advanced and then Code Injection.
In the Header section, paste the copied Google Tag Manager code.
Click Save.
Step 2.2: Add the Second Code Snippet to the Footer
Copy the second code snippet, which should be placed immediately after the opening
<body>
tag.In Squarespace, there is no direct access to the
<body>
tag, so instead, paste this code into the Footer section under Code Injection.Click Save.
Step 3: Verify Installation
To ensure Google Tag Manager is correctly installed:
Return to your Google Tag Manager dashboard.
Enter your website’s URL in the Preview & Debug Mode section.
Click Test.
If the test detects your GTM installation, you will see a confirmation message.
Conclusion
By following these steps, you have successfully installed Google Tag Manager on your Squarespace website. This will allow you to track analytics, conversions, and other key metrics efficiently.