Get the #1 Action Upsell App 💰 Over $75m in upsells!Add to Shopify

Increase revenue 50% 💰 with upsells!Get App

How to Setup Google Adwords Conversion Tracking for Shopify

SellUp Shopify Upsell App

Last Updated on January 7, 2022 by LAUNCHTIP

Setup Google Adwords Conversion Tracking for Shopify Stores

Do you run Google Ads to drive traffic to your store? Do you use the Google Shopping App for Shopify? Setting up Conversion tracking is the easiest way to see if your Ads are delivering a return on Investment (ROI).

Although Google’s Adwords supports other types of conversion tracking, we are going to focus on the tracking a sale.

Before we get started, this guide assumes you have a Google Adwords Account and a Shopify Account. You should also have a Google Analytics account which should be tracking visitors on your store.

The following guide is in 2 parts. The first part will be use setting up the conversion snippet under Adwords. This is the default code we will be putting on your shopify site. The second part will be us changing this code so that it accurately records the sales figures, not just a successful conversion.

Part 1 – Setting Up the Conversion Code under Google Adwords

First off, login to your Adwords account and from the top menu select Tools > Conversions

Next, we need to click the orange +Conversion button.

Now we need to select the type of conversion tracking code we need. As this is a Shopify site, we select the first one “Website”.

Now we need to fill in settings for the conversion snippet.

  • Name: For the name field, you can just enter anything you want. Naming it “Shopify Conversion” seems logical.
  • Value: For this field, select the middle option “The value of this conversion action may vary (for instance, by purchase price)” and leave it at 1. Don’t worry about the value, we are changing this later on.
  • Count: This should be defaulted to “Every Conversion” which is correct.
  • Conversion Windows: This again should be fine on the default setting as picture. You can change it if you want a shorter or longer window but the default setting works fine.
  • Category: Change this to “Purchase/Sale”.
  • Include In Conversions: Leave this checked/ticked. It should be checked by default.
  • Attribution Model: This should be defaulted to “Last Click”. There is no real need to change this. The main 2 are First/Last referring to the Ad a customer clicked. First Click only comes into play if the customer has clicked more than one ads to get to your store. We suggest leaving it to Last Click.

Once you have filled in all the settings as above, click “Save & Continue”.

The next step is pasting the code it has generated on to your site and making a few changes to it. So copy the code generated on page after you clicked Save & Continue. It should look like the below (Clicking the box will select all the text for you so you just need to copy it Ctrl + C on Windows or right click > copy, Apple/Cmd + C on Mac) :


Part 2 – Implementing the Snippet on your Shopify Site

Now we have our snippet from Part 1, you need to paste this into your Shopify site and make some changes so it records the correct values.

So, Log in to your Shopify admin and click “Settings“.

Next, click “Checkout“.

Scroll down until you find the section titled “Order Processing“. At the bottom of this section, you will see a text box titled “Additional Scripts“. This is where you need to paste the script you should have copied from Part 1 into that box.

Once you have pasted the script we will next need to make some changes to it.

The first change we are going to make is so the correct total value for the conversion is shown in Adwords.

We need to replace where it says var google_conversion_value = 1.00;

with this instead if ({{ subtotal_price }}) { var google_conversion_value = {{ subtotal_price | money_without_currency }}; }

Please note at this point: The change we just made reports the value of the item only. If you want the value reported to include Shipping & Taxes for the conversion, you need change the snippet to if ({{ total_price }}) { var google_conversion_value = {{ total_price | money_without_currency }}; } 

Lastly, we just need to change value in the bottom part of the script. We need to replace value=1.00

to value={{ subtotal_price | money_without_currency }}

As we mentioned in the previous change, if you want the Total price including Shipping & Taxes, you will need to use total price here. That code will instead be value={{ total_price | money_without_currency }}

Now you need to click Save and you are done!

A couple of points to add. This method gets data into Adwords for conversion tracking purposes. We still suggest you use Google Analytics to report accurate conversion tracking. This method implemented relies on you using Shopify supported Payment methods which return the user as standard to your store’s Thank You page when they complete payment.


SellUp Shopify Upsell App

More To Explore