Implement Google Ads conversion tracking on Squarespace

We recommend implementing Google Ads conversion tracking on your Squarespace store in order to be able to see how many sales resulted from your campaigns.

Steps to implement Google Ads conversion tracking

  1. Generate Gtag code from Google Ads
  2. Log into your Squarespace account
  3. Go to Settings > Advanced > Code injection
  4. Scroll down until the Order Confirmation input
  5. Paste your code and replace the value with {orderGrandTotal}

Generating your Gtag

Log into your Google Ads account and go to Tools > Conversions. From here, add a new conversion. Make sure to select “Website” as the kind of conversion you want to track.

From the Create a conversion action screen select, Category = Purchase, give your conversion a name and under value, select Use different values for each conversion. Leave the rest of the settings as they are and click the Create button.

From the Tag Setup page, select, “Install the tag yourself.

Copy the Global site tag code and paste it in a text processor (like Notepad or textEdit).

Copy the Event snippet and paste it in the same text document.

Here is how it should look like:

Paste your tracking codes in Squarespace

Navigate to your Squarespace account, under Settings > Advanced > Code injection. Paste the Global Site tag part of the code (#1 in the screenshot above) into the Header section.

Now, edit the Event Snippet (#2 in the above screenshot) and replace the 1.0 from the value with {orderGrandTotal} and fill in {orderId} between the quotes next to the transaction_id.

Here is how the Header section should look like:

Image 2019-09-30 at 11.57.09 PM.png

And this is how the Order Confirmation Page section should look like:

Image 2019-10-01 at 12.05.00 AM.png