How to Set Up Google Ads Conversion Tracking in Shopify

eCom (Shopify) Google Ads conversion tracking setup

Hi,
I’ve never set up conversions for a ecom client before. I’d like to set up conversions for a transaction, add to cart and begin checkout. I’ve looked around for a bunch of guides and have got an import for the transaction (I understand this might not be super accurate) but not sure how to go about setting conversions for the add to cart and checkout – can anyone point me to a resource?
Thanks!

The short answer is:

How does the Google Ads API improve conversion data accuracy from a Shopify store?

The most robust and accurate method for tracking ‘Add to Cart’, ‘Begin Checkout’, and ‘Purchase’ conversions from your Shopify store into Google Ads is through a server-side setup utilizing the Google Ads API and the Shopify API for server-side data collection.

You would leverage a service like Google Tag Manager (GTM) in a server container, hosted on a platform like Stape or Google Cloud Platform (GCP), to receive data from the Shopify frontend.

The Shopify theme’s liquid files or a custom app will fire events to your server container, capturing necessary details like the Google Click ID (gclid) and the event data for ‘Add to Cart’ and ‘Begin Checkout’.

The server container then sends these events directly to the Google Ads system using the Google Ads API, specifically for Enhanced Conversions, which bypasses many client-side tracking limitations for cost-effective, high-integrity data, crucial for optimization.

The long answer is:

Your existing method of importing the transaction conversion, likely from the Google & YouTube Shopify App or a simple GTM client-side setup, often suffers from significant underreporting due to browser-level privacy restrictions like Intelligent Tracking Prevention (ITP) and ad-blockers, making your data inaccurate for Google Ads optimization.

The recommended solution is to move conversion tracking for all three events – ‘Add to Cart’, ‘Begin Checkout’, and ‘Purchase’ – to a server-side architecture.

This involves using the Shopify API data layer, typically accessed via custom code in your theme or a custom pixel in the Customer Events section, to send event data to a server-side GTM container.

For ‘Add to Cart’ and ‘Begin Checkout’, you would configure a server-side GTM tag to capture the event data payload and the client ID, then use the Google Ads API to post these events as server-side conversions or, even better, as Google Ads Enhanced Conversions for Web.

This server-to-server approach is highly reliable because it is not affected by client-side cookie consent or browser restrictions, ensuring that the valuable pre-purchase events are captured accurately.

For the final ‘Purchase’ event, the Shopify system’s backend is ideal for triggering the server-side event, providing the most accurate and authoritative transaction data.

Hosting your server GTM on a dedicated platform like Stape or GCP is a cost-effective choice because it centralizes all tracking logic and leverages the robust, privacy-respecting power of direct API communication via the Google Ads API, providing the comprehensive, technical, and actionable solution you need for optimizing your ad spend based on a complete and truthful conversion funnel.

For a complete reporting system, you can also integrate the data into Looker Studio via the Looker Studio API or into BigQuery via the BigQuery API for advanced analysis, creating a single source of truth for your e-commerce performance.

About The Author