Squarespace: Set up your Google tag

You can measure behavioral data about your site with Google Ads and Google Analytics. Follow the steps in this article to set up a tag for your Google Ads or Google Analytics account. Learn more about Installing your tag with a website builder or CMS.

Before you begin

You’ll need to have your Google tag ID.
 
The instructions for setting up the Google tag are different for tag IDs starting with "AW-" (usually, Google Ads accounts) and tag IDs starting with "G-" (usually, Google Analytics properties). Follow the instructions below that correspond with your tag.

Install your Google tag with Tag Assistant Companion

The Google conversion tracking guide works with Tag Assistant to help troubleshoot installation of the Google tag. Tag Assistant helps you make sure that your Google tags for Google Analytics, Google Ads, Tag Manager, and more are working correctly.

Tag Assistant now assists you with your installation of your Google tag.

Install the Google conversion tracking guide 

  1. Go to the Chrome Web Store.
  2. Search for “Google conversion tracking guide”.
  3. Click Add to chrome and click Add extension from the popup.
  4. Launch the app by clicking Install new tag button on the confirmation page
  5. Launch the app by clicking on the "Google conversion tracking guide" extension button.

Install a new tag with the Google conversion tracking guide

  1. Open the Google conversion tracking guide from the toolbar.
  2. Insert your Google Ads Customer ID.
  3. Enter the URL for the website where you want to measure your conversions.
  4. Click on Scan website to check if it was built with Squarespace, and check for existing tags.
  5. Select installation preference.
    1. If you detect an existing tag already installed on the website, you can end the flow.
    2. If there are no existing tags installed, you should be asked to select one of the installation preferences: 
      1. Show me how: You should be able to find a step-by-step guide on how to proceed further.
      2. Do it myself: You should find the instructions on how to do it manually. 
  6. For unsupported CMS (those not developed with Squarespace), you’ll be guided on how to set up conversion tracking for Wordpress.
  7. Log into your Squarespace account.
  8. Click Install tag to insert and save the code snippet in the header section. 
  9. Click, “Test installation to check if the tag is serving on your website.

If you have a tag starting with "AW-"

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.

  1. Sign in to your Squarespace account.
  2. On the "Dashboard", choose the site you want to modify.
    A screenshot showing the dashboard in Squarespace.
  3. From the main menu, click Pages.
  4. Click Website Tools.
  5. Click Code Injection.
  6. 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://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-"

  1. Click the copy icon to copy your tag ID.
  2. Sign in to your Squarespace account.
  3. On the "Dashboard", choose the site you want to modify.
    A screenshot showing the dashboard in Squarespace.
  4. From the main menu, click Settings.
  5. Click Developer Tools.
  6. Select External API Keys. An animated GIF demonstrating how to navigate to External API Keys in Squarespace.
  7. Paste your tag ID. An animated GIF demonstrating how to add your Google Analytics code to Squarespace.
  8. Click Save.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
8510101278594361443
true
Search Help Center
true
true
true
true
true
69256
false
false