Shopify & Google Shopping: Solving Conversion Tracking Mysteries

google shopping app purchase conversion shopify - google shopping app purchase conversion shopify
A profile picture of Steve Pogson, founder and strategist at First Pier Portland, Maine
Steve Pogson
Published
June 12, 2025
Last Updated
July 1, 2026

A common and costly problem for Shopify stores running Google Shopping is a gap between the sales Shopify records and the conversions Google Ads reports. When purchase conversions from the Google & YouTube app under-count sales, budget gets optimized against incomplete data — and Google's automated Smart Bidding strategies (Target ROAS, Target CPA, Maximize Conversions) end up making decisions on that same flawed data. This guide explains how the tracking works, how to set it up correctly — through the app or with more hands-on methods — why it breaks, and how to fix the most frequent issues.

A quick checklist for when conversions look wrong:

  • Confirm the Google & YouTube app is connected to the correct Google Ads account.
  • Verify conversion tracking is enabled in the app's settings.
  • Check that the tracking tag is firing on the order status / thank-you page.
  • Use Google Tag Assistant to confirm the conversion fires on a test order.
  • If tracking still fails, disconnect and reconnect the Google Ads account in the app.

How purchase tracking works

When a customer completes checkout, a chain of events has to succeed for Google Ads to record the sale. The conversion tag (usually gtag.js) fires on the thank-you page, a purchase event is recorded with the transaction ID, order value, and items, that data is sent to Google, and Google Ads attributes the sale to the campaign that earned it based on the account's attribution settings.

The Google & YouTube app creates this connection by installing the tracking code and mapping Shopify's checkout events to Google's conversion actions. It also links the product catalog in Merchant Center to conversion tracking in Google Ads. The most common failure point is the final step: if the purchase event does not fire on the order status page, Google never learns the sale happened, even though Shopify recorded it.

Setting up the Google & YouTube app

Install the Google & YouTube app from the Shopify App Store, then connect the Google Ads account — signing in with the Google account that manages the ads and selecting the correct account if there are several. During setup, the app maps Shopify events to Google conversion actions; the important one is that the Purchase event maps to the primary conversion action. Mapping Add to cart and Begin checkout as secondary actions gives a clearer view of the funnel.

The app adds the necessary tracking code automatically, so basic setup does not require editing theme code. When it is working, a conversion action named for the app's purchase event appears in Google Ads.

Creating the purchase conversion manually

To set up or fine-tune the conversion directly in Google Ads: go to Goals > Conversions, add a new Website conversion, name it clearly (for example "Purchase"), and set the category to Purchase. Choose to use different values for each conversion so actual order amounts are captured, and set the count to "One" so a single order is not counted multiple times. For ecommerce, a 30-day click-through and 1-day view-through window is a common standard, with a data-driven or position-based attribution model.

Conversion actions can also be marked primary or secondary: primary actions (usually Purchase) are the ones Smart Bidding optimizes toward, while secondary actions — like add-to-cart or newsletter sign-ups — are logged for reporting only. Keeping only Purchase as primary keeps automated bidding focused on revenue rather than softer engagement signals.

Enhanced conversions

Enhanced conversions recover sales that cookie-based tracking misses by matching hashed customer data — such as an encrypted email — to Google accounts. It is enabled in the Google Ads settings within the app after accepting the terms. Because the data is hashed before it is sent, it is privacy-safe, and it is especially useful as browser privacy changes reduce what cookies can track.

Manual code and Google Tag Manager: alternatives to the app

The app covers most stores, but some need more control — a custom checkout flow, several marketing tags to manage at once, or conversion data more detailed than the app captures. For those cases, tracking can be implemented directly instead of through the app.

Manual code implementation

After creating the conversion action in Google Ads (as described above), two snippets need to be placed in the store: the global site tag, which loads on every page, and an event snippet, which fires only on the order status page. The global site tag goes in theme.liquid, just before the closing </head> tag. The event snippet goes under Settings > Checkout > Order status page > Additional scripts, wrapped in a Liquid conditional so it only fires once per order:

{% if first_time_accessed %}
<script>
  gtag('event', 'conversion', {
    'send_to': 'AW-CONVERSION_ID/LABEL',
    'value': {{ checkout.total_price | divided_by: 100.0 }},
    'currency': '{{ checkout.currency }}',
    'transaction_id': '{{ order.order_number }}'
  });
</script>
{% endif %}

The Liquid variables matter: checkout.total_price | divided_by: 100.0 converts Shopify's cents-based price into a decimal value, checkout.currency passes the correct currency code, and order.order_number gives Google a unique transaction ID so the same order can't be counted twice. This approach gives full control over what's tracked and works with any theme, but it requires comfort editing theme code, and tracking code needs to be re-added if the theme is replaced.

Google Tag Manager

Google Tag Manager (GTM) is a heavier but more flexible option, particularly for stores managing tags for several platforms at once, not just Google Ads. A single GTM container snippet is added to theme.liquid; after that, tags, triggers (such as "fires on the order status page"), and variables can be created or changed from the GTM interface without touching theme code again. GTM also supports a richer data layer — passing order and line-item detail (product IDs, prices, categories) alongside the conversion event — which is useful for remarketing and audience building beyond basic purchase tracking. The tradeoff is setup time: configuring GTM correctly, and building out a full data layer, typically takes more effort than either the app or a single manual tag.

Why tracking breaks

When Shopify shows sales but Google Ads shows few or none, the usual causes are:

  • Attribution model limits. A last-click model credits only the final ad clicked, missing earlier touchpoints that influenced the purchase.
  • Cross-domain issues. If checkout happens on a different domain than the main store, tracking can break without proper cross-domain configuration.
  • Cookie consent. Under GDPR-style rules, if a shopper has not accepted marketing cookies, the tracking tag may be blocked from firing.
  • Shop Pay and accelerated checkout. Customers using Shop Pay can bypass the standard thank-you page where the tag normally fires, so those conversions go unrecorded.
  • Currency mismatches. A mismatch between the store's currency and what Google expects can inflate or distort conversion values — a small local-currency order can appear as a much larger figure.
  • Ad blockers and privacy tools. A meaningful share of shoppers block tracking entirely, so some conversions never reach Google.

Fixes for the most common problems

  1. Disconnect and reconnect the app. In the Google & YouTube app, disconnect the Google Ads account and reconnect it, re-enabling conversion tracking during reconnection. This resolves a surprising number of cases.
  2. Remove legacy tags. Check the theme for old Google Ads conversion snippets that compete with the app's tags. Duplicate tracking methods can produce double-counted or, paradoxically, missing conversions.
  3. Fire conversions conditionally. To avoid duplicate conversions when a customer refreshes the thank-you page, wrap the tracking in a check that only fires on first access:
    {% if first_time_accessed %} /* conversion tracking here */ {% endif %}
  4. Move tracking to the order status page. Adding the conversion code under Settings > Checkout > Order status page (Additional scripts) helps catch conversions from accelerated checkouts like Shop Pay.
  5. Check GA4 import settings. If conversions are imported from Google Analytics 4, confirm the GA4 purchase event fires correctly and that the import is not double-counting alongside direct tags.
  6. Demote secondary tracking sources. If more than one tracking method is running at once — app, manual tag, and GA4 import — pick one as the source of truth and set the others' "Include in 'Conversions'" to No in Google Ads. They'll still log data for comparison without inflating the primary conversion count.

Advanced options

Stores that need higher accuracy have three broad choices: the Google & YouTube app (simplest, least customizable), a GA4 import (consistent with analytics, but a different attribution model that excludes view-through conversions), or a direct Google Ads tag implemented manually or through GTM, as described above (most accurate attribution, more setup). Server-side tracking goes further — it works despite ad blockers and cookie-consent limits and improves cross-device accuracy — by sending purchase data from Shopify's Customer Events to a server-side container that forwards it to Google. This can recover a notable share of otherwise-lost purchase data, which matters most for higher-value stores.

Post-purchase upsell apps add a wrinkle: they often create a separate flow after the initial order that can break tracking or double-count value. The fix is to capture the full order value once, including upsells, or to track the initial purchase and upsells as separate but related conversions.

Testing before spending

Before scaling campaigns, place a test order through Shopify's test gateway and complete checkout to the thank-you page, then use Google Tag Assistant to confirm the conversion tag fires without errors. After 24–48 hours, check that the test conversion appears in Google Ads with the correct value, and compare Shopify orders, Google Ads conversions, and GA4 purchases to spot discrepancies. Duplicate tags, tags that never fire, and incorrect currency or value parameters are the usual culprits.

Frequently asked questions

Does the Google & YouTube app replace GA4 or Google Tag Manager?

No. The app focuses on the product feed and conversion tracking for Google Shopping and YouTube. GA4 provides broader site analytics and Google Tag Manager offers flexible tag deployment for multiple platforms at once. Many stores use them together.

How do you avoid counting the same sale twice?

Use a single tracking method as the source of truth rather than running several at once, fire the tag only on first access to the thank-you page, set conversion counting to "One" in Google Ads, and check the theme for duplicate instances of the same tag. If a secondary method (like a GA4 import) needs to stay active for comparison, set its "Include in 'Conversions'" to No so it doesn't inflate the primary count.

What attribution window and model work best for Shopify stores?

A 30-day click-through and 1-day view-through window is a reasonable default. For the attribution model, linear attribution splits credit evenly across every touchpoint, position-based attribution gives 40% credit to the first interaction, 40% to the last, and divides the remaining 20% among the interactions in between, and data-driven attribution uses machine learning to assign credit based on the account's own conversion patterns — but it requires at least 600 conversions in 30 days to activate. Use data-driven where that volume exists, and position-based or linear otherwise.

What's the difference between primary and secondary conversions?

Primary conversions are the ones Google Ads uses for bidding and optimization — typically Purchase. Secondary conversions, like add-to-cart or newsletter sign-ups, are tracked for reporting only and don't influence Smart Bidding. Keeping the conversion list focused this way prevents automated bidding from chasing lower-value actions.

The bottom line

Accurate Google Shopping conversion tracking is the foundation of profitable campaigns — without it, optimization and Smart Bidding both run on flawed data. Most discrepancies come down to tags not firing on the order status page, duplicate or legacy tags, accelerated-checkout bypasses, or currency mismatches, and most are fixable without a developer; stores that need finer control can move to manual code or Google Tag Manager. Re-auditing tracking every few months, and after major Google or Shopify updates, keeps the data reliable.

First Pier is an ecommerce agency in Portland, Maine that builds and optimizes Shopify and Shopify Plus storefronts. For help with conversion tracking or conversion rate optimization, get in touch.

Get More Ecommerce Insights:

Free store teardown

Let's Do This!

Drop your Shopify store URL and we'll send back 3 quick wins — free, no pitch, and usually within 2 business days.

Prefer to talk? Book a call

Get your 3 quick wins

Thanks! We'll review your store and send your 3 quick wins within 2 business days.

Oops! Something went wrong while submitting the form.

No sales call required. Usually back within 2 business days. Unsubscribe anytime.