VOOZH about

URL: https://support.google.com/google-ads/answer/11900235

⇱ Squarespace: Set up your Google tag - Google Ads Help


Skip to main content

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 how to Install your Google 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 different tag IDs, so you’ll need to follow the instructions that correspond with your tag.


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.

  1. Sign in to your Squarespace account.
  2. On the "Dashboard", choose the site you want to modify.
  3. From the main menu, click Pages.
  4. Click Custom Code.
  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>


Tags that start with “G-” are generally associated with Google Analytics accounts.

  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.
  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?
false
Achieve your advertising goals today!

Attend our Performance Max Masterclass, a livestream workshop session bringing together industry and Google ads PMax experts.

Register now

Search
Clear search
Close search
Google apps
Main menu
2347493060265111192
true
Search Help Center
true
true
true
true
true
true
73067
false
false
true
true
false
false