Setting Up Google Ads Conversion Tracking
Why Conversion Tracking Is Non-Negotiable
Every important metric in Google Ads depends on conversion tracking. Cost per conversion tells you how much you spend to acquire a customer. Return on ad spend tells you how much revenue each advertising dollar generates. Conversion rate tells you what percentage of clicks result in purchases. Without these numbers, you cannot make data-driven decisions about bids, budgets, keywords, or ad copy.
Automated bidding strategies like Target ROAS and Maximize Conversions use your conversion data to predict which searches are likely to produce sales and how much to bid for each auction. Without conversion data, these strategies have nothing to optimize against and will spend your budget inefficiently. This means your campaigns stay on Manual CPC forever, which produces lower overall performance than properly trained automated bidding.
Remarketing audiences also depend on tracking. The code that tracks conversions is the same code that identifies cart abandoners, product page viewers, and past purchasers for your remarketing campaigns. Installing conversion tracking correctly enables both measurement and audience building simultaneously.
Step-by-Step Setup
In Google Ads, go to Goals, then Conversions, then Summary, and click the plus button to create a new conversion action. Choose Website as the source. Name it "Purchase" or "Order Completed." Set the category to Purchase/Sale. For the value, select "Use different values for each conversion" because ecommerce orders have different totals. Set the count to "Every" to track each individual purchase rather than just one per user. Set the click-through conversion window to 30 days (the default) and the view-through conversion window to 1 day. Leave the attribution model on Data-driven, which distributes credit across all touchpoints in the conversion path rather than giving all credit to the last click.
After creating your conversion action, Google provides a Global Site Tag (also called the Google tag) and an event snippet. The Global Site Tag goes on every page of your store, typically in the head section of your HTML. This tag serves multiple purposes: it enables conversion tracking, builds remarketing audiences, and connects to Google Analytics if configured. For Shopify stores, go to Online Store, then Preferences, and paste your Google Ads tag ID in the Google Analytics field, or use the Google and YouTube app for a more complete integration. For WooCommerce, install the Google Ads and Marketing plugin or add the tag through your theme's header. For other platforms, add the tag manually to your site's header template or use Google Tag Manager as a container for all your tracking tags.
The event snippet fires on your order confirmation (thank-you) page to record each completed purchase. It must include dynamic variables that pass the order value, currency, and a unique transaction ID. The transaction ID prevents duplicate conversions if a customer refreshes the confirmation page. Most ecommerce platforms make the order total and ID available as template variables on the confirmation page. In Shopify, these variables are automatically populated through the Google and YouTube app. In WooCommerce, the Google Ads plugin handles this, or you can use Google Tag Manager with a dataLayer push that includes the transaction details. The key is that the value passed must match the actual order total the customer paid, including tax and shipping or excluding them based on your preference, as long as you are consistent.
Purchase tracking is essential, but tracking earlier funnel events gives you much more insight into campaign performance. Create additional conversion actions for "Add to Cart" and "Begin Checkout." Set both of these as secondary conversion actions (not primary) so they inform your reporting without affecting automated bidding, which should optimize only for actual purchases. Add-to-cart tracking reveals which products and keywords generate shopping intent even when the visitor does not buy immediately. Checkout initiation tracking shows where you lose shoppers during the purchase process. Together with purchase tracking, these events give you a complete picture of your conversion funnel. Use the same Google tag with different event snippets on the cart and checkout pages, or configure these events through Google Tag Manager.
Enhanced conversions improve tracking accuracy by sending hashed (encrypted) customer information like email address and phone number to Google alongside the conversion event. This helps Google match conversions to ad clicks more accurately, which is increasingly important as browsers restrict third-party cookies and tracking becomes less reliable. In your conversion action settings, turn on enhanced conversions and choose automatic setup (Google automatically detects form fields on your checkout page) or manual setup (you specify which data fields to capture). Enhanced conversions are privacy-safe because the data is hashed before leaving the customer's browser, and Google uses it only for measurement, not for building user profiles. This feature typically increases reported conversion volume by 5% to 15% compared to standard tracking alone.
Before trusting your conversion data, verify that everything works correctly. Install the Google Tag Assistant browser extension and run it while completing a test purchase on your store. The Tag Assistant shows you which Google tags fire on each page, whether the conversion event triggers on the confirmation page, and what values are being passed. Check three things: the Global Site Tag fires on every page (not just the confirmation page), the purchase event fires only on the confirmation page, and the revenue value matches the actual test order total. If you see discrepancies, check your tag implementation, your platform's template variables, and whether any caching or optimization plugins are interfering with the JavaScript. Also verify in your Google Ads account by going to the conversion action and checking its status. It should show "Recording conversions" within 24 hours of a valid test conversion.
Platform-Specific Setup
Shopify
Shopify offers two methods. The simplest is the Google and YouTube app, which handles the Global Site Tag, purchase tracking with dynamic values, enhanced conversions, and Merchant Center product feed in one integration. Install the app, connect your Google Ads account, and it configures everything automatically. The alternative is adding your Google Ads tag ID in Online Store, then Preferences, then paste the conversion tracking snippet in the Additional Scripts section of your checkout settings (under Settings, Checkout). Use Shopify's Liquid variables to pass dynamic order values.
WooCommerce
The Google Ads and Marketing plugin (formerly Google Listings and Ads) provides a straightforward integration. After installation, connect your Google Ads account and the plugin handles tag placement, conversion tracking, and product feed syncing. For more control, use Google Tag Manager with the GTM4WP plugin, which pushes ecommerce dataLayer events for page views, product clicks, add-to-cart, checkout, and purchase. Configure GTM triggers and tags to fire the Google Ads conversion event on purchase with the transaction value from the dataLayer.
Other Platforms
For other ecommerce platforms, the general process is the same. Place the Global Site Tag in your site's header template. Add the purchase event snippet to the order confirmation page template, using your platform's template variables to pass the order total and transaction ID dynamically. Consult your platform's documentation for the specific variable names for order total (often something like order.total or checkout.total_price) and order ID.
Connecting Google Ads to Google Analytics 4
Linking your Google Ads account to Google Analytics 4 gives you additional conversion tracking capabilities and a more complete view of the customer journey. In GA4, go to Admin, then Google Ads Links, and connect your account. Once linked, you can import GA4 conversion events into Google Ads as conversion actions, see Google Ads performance data in GA4 reports, and use GA4 audiences in your Google Ads campaigns.
Some advertisers use GA4 purchase events as their primary conversion action in Google Ads instead of the native Google Ads tag. This works but has a disadvantage: GA4 conversion data is typically 24 to 48 hours delayed compared to the near-real-time reporting of native Google Ads conversion tracking. For automated bidding optimization, the native Google Ads tag provides faster feedback to the algorithm. The best approach is to use both: native Google Ads conversion tracking as your primary conversion action for bidding and optimization, and GA4 as a secondary source for cross-channel analysis and audience insights.
Troubleshooting Common Issues
Conversions not recording. Verify the Global Site Tag fires on all pages, the event snippet fires on the confirmation page, the conversion action status shows "Active" in Google Ads, and test purchases actually reach the confirmation page (some stores redirect before the tag fires). Use Google Tag Assistant or your browser's developer console to check for JavaScript errors preventing the tag from loading.
Revenue values showing as zero. The dynamic value variable in your event snippet is not populated correctly. Check that your platform passes the order total to the variable and that the variable name matches exactly. A common mistake is using the wrong Liquid variable in Shopify or the wrong dataLayer variable in Google Tag Manager.
Duplicate conversions. If your conversion count exceeds your actual order count, the event snippet might be firing multiple times per order. Ensure you pass a unique transaction ID with each conversion event so Google deduplicates automatically. Also check that the conversion counting is set to "Every" for purchases (which counts each transaction) rather than accidentally having the snippet on multiple pages.
Conversion count does not match platform orders. Some discrepancy is normal. Google Ads tracks conversions within the attribution window (default 30 days post-click), while your ecommerce platform records orders in real time. Cross-device conversions, post-view conversions, and attribution model differences all create gaps. A 5% to 15% variance between Google Ads conversion data and your platform's order data is typical and acceptable.
