Shopify Google Ads Conversion Tracking Setup with GTM (Step-by-Step Guide)

Why Accurate Google Ads Conversion Tracking is Critical for Shopify

Before diving into the setup, understand why this is non-negotiable for your Shopify success. Accurate tracking empowers you to…

  • Optimize bids for actual purchases.
  • Improve campaign targeting and retargeting.
  • Calculate true ROAS and CPA.
  • Scale profitable campaigns with confidence.

Prerequisites: What You Need Before You Start

  • An active Google Ads account.
  • A Shopify store.
  • A Google Tag Manager (GTM) container linked to your Shopify store.
  • Basic understanding of HTML (for data layer snippets).

Step-by-Step Guide: Setting Up Google Ads Purchase Tracking

 

Step 1: Create a Google Ads Conversion Action

First, log into your Google Ads account and navigate to Tools and Settings > Conversions. Click the plus button to add a new conversion.

Select ‘Website‘ as your conversion source.

 

Choose ‘Purchase‘ as the category.

 

Assign a conversion name (e.g., ‘Shopify Purchase’).

 

Select ‘Use different values for each conversion‘ and set a default value.

 

Choose ‘Every‘ as the count.

 

Continue with all (Google Ads settings)

 

Step 2: Link Google Tag Manager to Your Shopify Store

If you haven’t already, ensure your GTM container is correctly integrated with your Shopify store. This involves adding the GTM code snippets to your Shopify theme.

How to get “GTM code snippets.

How to get GTM code snippets

 

Where to paste them in Shopify’s theme.liquid file.

Where to paste them in Shopify's theme.liquid file.

 

Step 3: Add Data Layer Code to Shopify for Transaction Details

To capture dynamic values like purchase value, currency, and transaction ID, we need to push them into the data layer on Shopify’s ‘Order Status Page’.

Navigate to Shopify Admin > Settings > Customer events > Add custom pixel.

Navigate-to-Shopify-Admin-Settings

 

How to enable Shopify Data layer.

Here is the Shopify data layer code

 

Step 4: Create GTM Variables for Purchase Data

Now, in GTM, we’ll create Data Layer Variables to extract the purchase information we pushed into the data layer.

Create a Data Layer Variable for ‘ecommerce.purchase.value’.

 

Create a Data Layer Variable for ‘ecommerce.purchase.currency’.

 

Create a Data Layer Variable for ‘ecommerce.purchase.transaction_id’.

 

Create a User-Defined Variable for ‘user_id’ (for Enhanced Conversions, if applicable).

 

Step 5: Set Up the Google Ads Conversion Tracking Tag in GTM

With the variables ready, we can now configure the Google Ads Conversion Tracking tag in GTM.

Create a new Tag > Tag Configuration > Google Ads Conversion Tracking.

 

Enter your Conversion ID and Conversion Label (from Google Ads).

 

Map your GTM Variables to the ‘Conversion Value’, ‘Currency Code’, and ‘Transaction ID’ fields.

 

Configure Enhanced Conversions if desired (mapping user parameters).

 

Set the Trigger to a custom event that fires on the ‘purchase’ (data layer event).

 

Step 6: Test and Publish Your GTM Container

Testing is crucial to ensure everything is working correctly before publishing.

Use GTM’s Preview Mode.

Simulate a purchase on your Shopify store.

Verify the Google Ads Conversion Linker tag and Google Ads Conversion Tracking tag fire correctly.

 

Once confirmed, Publish your GTM container.

 

“Still unsure if your Shopify tracking is 100% accurate? Don’t let hidden data issues drain your ad budget.”

As an ROI-Driven eCommerce Tracking Specialist, I help store owners like you fix data discrepancies and unlock profitable growth.

Let me personally review your Google Ads, GA4, and Facebook CAPI setup to identify exactly where you’re losing money.

👉 [Click Here to Book Your FREE, No-Obligation Tracking Audit Now] 👈

(This is a limited-time offer for serious eCommerce businesses looking to scale. No pressure, just clear, actionable insights to boost your ROI.)

Leave a Reply

Your email address will not be published. Required fields are marked *

About the Author

I’m Abir Molla, an ROI-Driven eCommerce tracking specialist. I help Shopify and WooCommerce brands fix inaccurate data and stop wasting ad spend, enabling them to scale with confidence.

Table of Contents

Explore More

You Might Also Like

Are you struggling with inaccurate sales data? This guide provides...
The Shopify Checkout Extensibility Update has deprecated "Additional Scripts," potentially...
Discover how strategic Google Ads optimization drove $258K in conversion...