Skip to content
Google Ads

Shopify server-side tracking for Google Ads

Send every purchase from your Shopify store to Google Ads from the server, with the script served from your own domain.

Each purchase is confirmed from Shopify’s order data and sent to Google Ads from the server, through Google’s Data Manager. Nothing in the browser talks to Google, so an ad blocker has nothing to block.

Prerequisites

  • Workspace admin in Product Metrics (editor is enough for the store and destination steps). Google Ads needs Merchant Center connected.
  • A Shopify login that can install apps and edit the theme, and a Product Metrics subscription on the store: the app checks your setup without one, but collects nothing until it starts.

Set it up with AI

Connect your assistant

First time? Add the Product Metrics MCP server to your assistant, then paste the prompt below.

In Claude, choose Add custom connector; in ChatGPT, Settings → Apps & Connectors. Paste this URL:

https://www.productmetrics.io/mcp

Claude Code: run this in your terminal.

claude mcp add --transport http product-metrics https://www.productmetrics.io/mcp

CodexAll clients and details →

Paste the prompt into your assistant.

Set up server-side conversion tracking for my Shopify store in Google Ads with Product Metrics. Check my setup status first, walk me through each open step, and give me the link when I need to click something.
Set up server-side conversion tracking for my Shopify store in Google Ads with Product Metrics. Check my setup status first, walk me through each open step, and give me the link when I need to click something.
Set up server-side conversion tracking for my Shopify store in Google Ads with Product Metrics. Use the Product Metrics MCP server, or the productmetrics CLI with --json and the Product Metrics skills if they are installed (run `productmetrics help agents` first), and tell me when a step needs me in a browser.
Set up server-side conversion tracking for my Shopify store in Google Ads with Product Metrics. Use the Product Metrics MCP server, or the productmetrics CLI with --json and the Product Metrics skills if they are installed (run `productmetrics help agents` first), and tell me when a step needs me in a browser.

In the app

1. Connect Shopify and Google Ads

  • Store: install the Product Metrics app from the Shopify App Store, select Link Shopify store and turn on its app embed. See Shopify.
  • Google Ads: under Ecommerce platforms, select your store → Connect Google Ads → Continue with Google, pick the client account that runs your campaigns and grant Data Manager access. See Google Ads.

You should see: the Shopify app says You’re set up, with ticks for Shopify permissions, App embed and Checkout pixel; Product Metrics lists your Google Ads account under your store.

In Product Metrics, open Tracking → Configure consent and choose Shopify Customer Privacy. Choose OneTrust, Cookiebot, Usercentrics or Osano instead only if your store shows one of those banners. See Consent.

You should see: Configure consent names the banner your store actually shows.

3. Create the conversion actions

In Product Metrics, select Tracking → Create Google Ads conversions → Create 8 conversion actions. All eight are secondary, so nothing changes in your campaigns until you make one primary. See Conversion actions.

The Conversion actions view in Product Metrics showing 0 of 8 managed and the Create 8 conversion actions button, with the eight actions grouped as Customer types (New customer revenue and profit, Returning customer revenue and profit), Order value (Order revenue, Order profit) and Lifetime value (Revenue LTV, Profit LTV), each Missing with Google goal status Unknown.The Conversion actions view in Product Metrics showing 0 of 8 managed and the Create 8 conversion actions button, with the eight actions grouped as Customer types (New customer revenue and profit, Returning customer revenue and profit), Order value (Order revenue, Order profit) and Lifetime value (Revenue LTV, Profit LTV), each Missing with Google goal status Unknown.
Create 8 conversion actions makes all eight as secondary goals in one click.

Then add your additional costs, so the profit actions carry profit.

You should see: the badge next to Tracking reads Tracking active.

4. Check it works

In the Shopify app, open Tracking in the app menu and select Run tracking test: each check shows Passing, Needs attention or Listening. Then place and pay for a test order; it is sent once Shopify marks it paid.

You should see: Tracking is live on your store, which means Product Metrics has seen your storefront. More checks: Check tracking works.

Troubleshooting

Orders are missing in Google Ads

Check that Tracking → Configure consent names the banner your store actually shows: Product Metrics sends an order only with the consent this page lists. See Consent.

FAQ

Do I need Google Tag Manager for this on Shopify?

No. The app embed loads the script through Shopify’s app proxy under /apps/ on your store domain, and the app’s checkout pixel reports the purchase. There is no script tag to add.

When is a Shopify order sent to Google Ads?

Once Shopify marks the order paid. That is why a test order only shows up after you pay for it.

What happens in Google Ads when a Shopify order is refunded?

Shopify reports cancellations and refunds to Product Metrics, and the Google Ads conversion is adjusted.

Will my existing purchase conversion be counted twice?

Not if only one is primary. The eight Product Metrics actions start as secondary; when you make one primary in Google Ads, set your old purchase action to secondary. See Conversion actions.

Where next

Developers: do the same with the CLI or the API.