The Best Way to Track Google Ad Sales Conversions for a Shopify Site

Before you start advertising your Shopify site via Google Ads, you want to make sure you set up sales conversion tracking. This will allow you to see how many sales your Google Ad Campaigns are generating and more importantly it’ll help you to optimize your Google Ad Campaign to increase sales!

There’s more than one way to set up Shopify Google Ad Sales Conversion Tracking but I’ve always just set it up with the Google Ads tag directly, instead of using Google Tag Manager.

The first step is to create a Google Ads Conversion and name it something like “Purchase” or “Order”. Whatever you want to name it really.

Add the Google Ads Conversion Tag first to your Shopify’s theme, you want it insert it just above the </head> tag in the "theme.liquid" file.

Shopify Theme Edit Code
Edit Shopify theme.liquid file

Then go to your Shopify settings and click on “Checkout”:

Shopify Checkout Settings

And paste the following Google Ads Conversion Tag and Event Tag in the Order Status Page box:

<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXXXX”></script>

<script>

 window.dataLayer = window.dataLayer || [];

 function gtag(){dataLayer.push(arguments);}

 gtag('js', new Date());

 gtag('config', ‘AW-XXXXXXXXXXX’);

</script>

<!-- Event snippet for Purchase conversion page -->

<script>

 gtag('event', 'conversion', {

     'send_to': 'AW-XXXXXXXXXXX/XXXXXXXXXXX’,

     'value': {{ checkout.total_price | money_without_currency }},

     'currency': 'USD',

     'transaction_id': '{{ order.order_number  }}'

 });

</script>

Shopify Order Status Page Tracking Scripts


I’ve also seen clients use Shopify’s Google Shopping App which sets up sales conversion tracking as well. It’ll also set up conversion tracking for add to cart and product views which you’re not going to want as Primary Conversions, so be sure to mark these as Secondary Conversions or delete them all together.

Need More Help With Google Ads?

We offer fixed price Google Ad Management Services to help you maximize the performance of your campaigns.

It's Easy To Get Started, Click Below To Learn More!