Add Google Ads Conversion Tracking To Squarespace

Step 1

Log in to Squarespace and navigate to Settings > Advanced > Code Injection

Squarespace Code Injection

Step 2

Scroll to the bottom when you see Order Confirmation Page, then add the code from step 3 and save.

SquareSpace Add Google Ads Conversion Code

Step 3

Login to Google Ads and click on the 3dot menu in the top right corner and select Conversions under Measurement column.

Google Adwords Menu Conversions

Click on the big blue plus sign and select website as your tracking template. If you already have an existing one, simply delete it and create a new one.

Then do the following :

  • Conversion name
    • enter any name
  • Category
    • Purchase / Sale
  • Value
    • Use different values for each conversion
  • The rest can be as defaulted

Click on Create and continue

Create your website conversion action

There are two parts, click on download snippet for both the Global site tag and Event snippet

Go back to Squarespace and scroll down until you see Order Confirmation Page (from step 2), at the bottom of this section you will have a field where you can paste code which is labeled.

First past your Global site tag such as the example below (do not use this example, use your own downloaded code snippet)

<!-- Global site tag (gtag.js) - Google AdWords: Created By FeedArmy -->
<script async src=""></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'xx-123456789123');

Then right after that, we paste the event snippet, before we do this we need to edit the code. replace the following lines from your downloaded code snippet to the code example below :

  • ‘send_to’: ‘xx-123456789123/lkadsjKDweLK45W’,
    • change this line with your snippet
  • currency
    • change USD to your currency value

Code Example (change the send_to to your code snippet)

  gtag('event', 'conversion', {
      'send_to': 'xx-123456789123/lkadsjKDweLK45W',
      'value': {orderGrandTotal},
      'currency': 'USD',
      'transaction_id': '{orderId}'

Need Help?

Notify of
Oldest Most Voted
Inline Feedbacks
View all comments
Michael Leber
2 years ago

Hello Emmanuel,

I am trying to add the conversions tag for page loads as well, rathe than purchases, as the company I am paired with for a school project is a non-profit and I have to walk a person from their company through the process. Could you please send me the details for this. It would be greatly appreciated. So far, I have added the global site tag and the event snippet tag as followed in upper instructions, but the tracking status shows up unverified in my google ads status. Please help and thanks.

-Michael Leber

Samuel David Ayres
Samuel David Ayres
4 years ago

So, this describes how to add conversion tracking to Squarespace for purchases as opposed to forms, button clicks, page loads or the other numerous conversion types.I was told that, if I have the Google Analytics code dropped into the back-end of Squarespace, adding the Global site tag will invalidate that… is that correct? I’m looking to add conversion tracking to some specific page loads.

5 years ago

thats good explination but doesnt work for form conversions.

Shane L Fernand
Shane L Fernand
Reply to  Matt
2 years ago

To track form submissions as conversions on your google Ads, paste the event snippet under “Post submit html”.
(form- edit form- advanced- post submit html)..

For a button click you need to get the event snippet customised and add it in the common footer..

Agencia de Diseño de Empaque y
Agencia de Diseño de Empaque y
5 years ago

Didnt understand entirely.

Would love your thoughts, please comment.x