Created on 7 August, 2018 | Updated on 5 July, 2021

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.

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="https://www.googletagmanager.com/gtag/js?id=xx-123456789123"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'xx-123456789123');
</script>

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)

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

Need Help?

10 thoughts on “Add Google Ads Conversion Tracking To Squarespace”

  1. 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

    1. Hello, Michael thank you for your question. Please note that an ad click is always equal to at least 1-page visit. So I’m unsure what you would want to track a page visit as a conversion, something not generally done. A good micro-conversion would be a click on add to cart, view cart, search, etc. But not a page visit. However, if you like to track this, it needs to be set up using Google Analytics. If you need help, please send an email at [email protected]

  2. Samuel David Ayres

    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.

    1. Emmanuel Flossie

      If you want to track contact forms, you need to setup a more advanced setup with Google Tag Manager and Google Analytics. You may contact Sqaurespace support for more info or if you like I can help set this up for you. You can contact me [email protected]

    2. 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..

      1. For post submit, or button clicks conversion tracking is best done using Google Tag Manager and Google Analytics. Track events in Google Tag Manager and then create a goal in Google Analytics, then import the goals in Google Ads.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.