Accurate conversion tracking is the foundation of any successful Google Ads campaign. Without it, you’re essentially flying blind - unable to measure what’s working and what’s wasting your budget.

In this guide, I’ll walk you through the exact process I use to set up Google Ads conversion tracking on Shopify stores for my clients. This method ensures accurate data collection and enables enhanced conversions for better attribution.

Why Proper Tracking Matters

Before we dive into the technical setup, let’s understand why this matters:

Step 1: Create Your Conversion Action in Google Ads

First, we need to create the conversion action that will track purchases:

  1. Go to your Google Ads account
  2. Click GoalsConversionsSummary
  3. Click + New conversion action
  4. Select Website
  5. Enter your domain and click Scan
  6. Click Add a conversion action manually

Configure the conversion with these settings:

💡 Pro Tip: Always use "different values for each conversion" so you capture the actual order value, not a static amount. This gives you accurate ROAS data.

Step 2: Set Up Google Tag Manager

While you can use Shopify’s native Google integration, I recommend Google Tag Manager for more control and flexibility.

Install GTM on Shopify

  1. Go to your GTM account and copy your container code
  2. In Shopify, go to Online StoreThemesEdit code
  3. Open theme.liquid
  4. Paste the GTM head code right after the opening <head> tag
  5. Paste the GTM body code right after the opening <body> tag

Configure the Data Layer

For accurate e-commerce tracking, you need to push purchase data to the data layer. Add this code to your checkout success page (Settings → Checkout → Additional scripts):

<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'purchase',
  'transaction_id': '{{ order.order_number }}',
  'value': {{ checkout.total_price | divided_by: 100.0 }},
  'currency': '{{ shop.currency }}',
  'items': [
    {% for item in checkout.line_items %}
    {
      'item_id': '{{ item.sku }}',
      'item_name': '{{ item.title }}',
      'price': {{ item.final_price | divided_by: 100.0 }},
      'quantity': {{ item.quantity }}
    }{% unless forloop.last %},{% endunless %}
    {% endfor %}
  ]
});
</script>

Step 3: Create the Conversion Tag in GTM

Now let’s create the tag that fires the conversion:

  1. In GTM, go to TagsNew
  2. Name it “Google Ads - Purchase Conversion”
  3. Tag type: Google Ads Conversion Tracking
  4. Enter your Conversion ID and Conversion Label (from Google Ads)
  5. For Conversion Value, use: {{dlv - value}}
  6. For Transaction ID, use: {{dlv - transaction_id}}
  7. Currency: {{dlv - currency}}

Create the Trigger

  1. Click on Triggering
  2. Create a new trigger
  3. Trigger type: Custom Event
  4. Event name: purchase

Step 4: Enable Enhanced Conversions

Enhanced conversions help recover data lost due to cookie restrictions by sending hashed first-party data (email, phone, address) to Google.

  1. In your conversion tag, scroll to Enhanced conversions
  2. Check Include user-provided data
  3. Select Data Layer as the source

Add this to your checkout additional scripts (alongside the purchase event):

<script>
window.dataLayer.push({
  'event': 'purchase',
  // ... existing purchase data ...
  'user_data': {
    'email': '{{ checkout.email }}',
    'phone_number': '{{ checkout.billing_address.phone }}',
    'address': {
      'first_name': '{{ checkout.billing_address.first_name }}',
      'last_name': '{{ checkout.billing_address.last_name }}',
      'city': '{{ checkout.billing_address.city }}',
      'region': '{{ checkout.billing_address.province_code }}',
      'postal_code': '{{ checkout.billing_address.zip }}',
      'country': '{{ checkout.billing_address.country_code }}'
    }
  }
});
</script>

Step 5: Test Your Setup

Before going live, always test:

  1. Enable Preview mode in GTM
  2. Make a test purchase on your store
  3. Verify the purchase event fires on the thank-you page
  4. Check that all data (value, transaction ID) is captured correctly
  5. In Google Ads, verify the conversion shows in ConversionsSummary
💡 Pro Tip: Use the Google Tag Assistant to debug your implementation in real-time.

Common Issues & Solutions

Conversion not firing

Value showing as 0

Duplicate conversions

Conclusion

Proper conversion tracking is not optional - it’s essential for running profitable Google Ads campaigns. By following this guide, you’ll have accurate purchase tracking with enhanced conversions enabled, giving you the data you need to optimize your campaigns and scale profitably.

If you’re struggling with your tracking setup or want a professional audit of your current implementation, feel free to reach out.

Related Posts

Why Shopify Sales and Google Ads Sales Don't Match: Understanding the Discrepancy

10 min read

ShopifyGoogle AdsConversion TrackingAttributionEcommerceShopify Tracking Series

Enhanced Conversions for Shopify: The Practical Setup Guide

Google AdsEnhanced ConversionsShopifyConversion TrackingGoogle Ads Strategy Series

WooCommerce Google Ads Conversion Tracking via GTM Using GTM4WP

14 min read

GTMGoogle Tag ManagerGoogle AdsConversion TrackingGTM Advanced Series
Adnan Agic

Adnan Agic

Google Ads Strategist & Technical Marketing Expert with 5+ years experience managing $10M+ in ad spend across 100+ accounts.

Need Help With Your Google Ads?

I help e-commerce brands scale profitably with data-driven PPC strategies.

Get In Touch
Back to Blog