---
title: "How to Set Up Server-Side Tracking for Google Ads"
description: "Set up Google Ads server-side conversion tracking for ecommerce. Choose a purchase route, map click IDs and consent, then test one paid order."
canonical: "https://www.productmetrics.io/blog/google-ads-server-side-tracking"
pageType: article
language: en
publisher: "Product Metrics"
author: "Berend Vrakking"
datePublished: 2026-11-30
dateModified: 2026-12-01
image: "https://www.productmetrics.io/og/blog/google-ads-server-side-tracking.png"
---

> Content index: https://www.productmetrics.io/llms.txt

# How to set up server-side tracking for Google Ads

## Key takeaways

- Start with a confirmed paid order and verify its conversion action, transaction ID, value and currency.
- Pick one path and stick with it per purchase event, so bidding learns from one clean source.
- A transaction ID deduplicates repeat purchases within one Google Ads conversion action. Keep one purchase action in the bidding goal.

Google Ads server-side conversion tracking sends purchase data from a tagging server or store backend. Start with a confirmed paid order and trace it from payment through delivery to the intended purchase action. Check whether the setup captures the value you want Shopping and Performance Max to bid on.

**Set up server-side tracking.** Today: Ad blockers hide your sales. With Product Metrics: Track every sale and improve your campaign performance. Connect the Product Metrics MCP server (https://www.productmetrics.io/mcp) to Claude, ChatGPT, Cursor or VS Code, or run `claude mcp add --transport http product-metrics https://www.productmetrics.io/mcp` in Claude Code ([how the connection works](https://www.productmetrics.io/docs/mcp/connect)). Then ask it: "Set up server-side conversion tracking for my store with Product Metrics, so Google Ads, Meta and ChatGPT Ads get every paid order. Check my setup status first, walk me through each open step, and give me the link when I need to click something." About 60 seconds in Claude, ChatGPT or Cursor.

## Steps to configure server-side tracking fast

1. Choose an architecture for Google Ads conversions.
2. Map the IDs, values and customer data you will send.
3. Capture the click ID in the browser on your own domain.
4. Send purchases server-side to Google Ads.
5. Configure enhanced conversions if your Google Ads destination supports it.
6. Configure Consent Mode and verify grants and denials.
7. Prevent double counting with a transaction ID.
8. QA in Google Ads diagnostics and Tag Assistant.
9. (Optional) Post refunds and returns as conversion adjustments.

## What you need before you start

- Admin access to Google Ads and Merchant Center.
- Your ecommerce platform login (Shopify, WooCommerce, [Magento/Adobe Commerce, Shopware, Lightspeed](https://www.productmetrics.io/blog/server-side-tracking-lightspeed-shopware-magento) or custom).
- If you choose Google Tag Manager server-side: a Google Cloud project with billing enabled. Cloud Run is pay-per-use with an always-free tier; estimate cost with the pricing calculator.
- If you advertise to users in the EEA: a CMP or banner that can pass [Consent Mode v2](https://www.productmetrics.io/glossary/consent-mode) signals.
- Basic skills: create conversions in Google Ads, publish tags, [read network requests](https://www.productmetrics.io/sdk-debugger) and logs.

### Where should the purchase event start?

If the browser sends the purchase to server-side Tag Manager, test the web event and the server tag. If your store backend sends the event when payment is confirmed, trace the order from the store to the upload. In both routes, verify the transaction ID, currency and expected conversion action before switching what the campaign uses.

## 1. Choose an architecture for server-side conversions

Choose the paid-order source and the Google Ads destination separately. Use one purchase action for campaign bidding.

| Route | Paid-order source | Google Ads destination |
| --- | --- | --- |
| Server-side Google Tag Manager (sGTM) | The browser forwards the purchase event to your tagging server | The Google Ads Conversion Tracking tag in the server container |
| Direct backend delivery | Your store or order management system sends the confirmed order | An offline click conversion action reached through the [Data Manager API](https://developers.google.com/data-manager/api/devguides/events/google-ads/offline) |
| Google Analytics 4 (GA4) fallback | Browser tagging or backend delivery, depending on how GA4 receives the purchase | A GA4 purchase imported into Google Ads |

New offline click-conversion and enhanced-conversions-for-leads integrations must use the Data Manager API following [Google’s June 2026 migration notice](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion). A GA4 import is a fallback destination. Check its event source before describing it as server-side.

> **Related:** Comparing a tagging server with direct backend delivery? [Server-side GTM vs a hosted app](https://www.productmetrics.io/blog/google-ads-server-side-tracking-cost) prices both, and [server-side tracking tools](https://www.productmetrics.io/blog/server-side-tracking-tools) compares self-hosted, managed and hosted options.

## 2. Map the data Google Ads needs for Shopping and Performance Max

Map these purchase data points to the parameter names and requirements of your chosen route:

- order_id - your [transaction or order number](https://www.productmetrics.io/glossary/transaction-id), used for deduplication.
- [value and currency](https://www.productmetrics.io/glossary/conversion-value) - the net revenue you want bidding to learn from.
- timestamp - in UTC and within your account’s lookback window.
- click identifier - [gclid](https://www.productmetrics.io/glossary/gclid) when present, otherwise wbraid or gbraid.
- [enhanced conversions](https://www.productmetrics.io/glossary/enhanced-conversions) data (if available) - email, phone or address hashed with SHA-256.

Result: a field-by-field map from your checkout to the payload you will send.

## 3. Capture the click ID on your own domain

- Keep gclid/wbraid/gbraid on the user’s path until checkout.
- If you run GTM server-side, configure a client to receive web requests from your browser tag, then set [first-party storage](https://www.productmetrics.io/glossary/first-party-cookie) on your domain.
- If you rely on a GA4 import, verify the Google Ads account link and use the GA4 ecommerce `transaction_id` for the purchase. Check acquisition and attribution in GA4.

![Four-step route of a Google Ads click ID: gclid in the landing URL, stored first-party on your domain, attached to the order with the order_id, then sent server-side to Google Ads](https://www.productmetrics.io/images/blog/google-ads-server-side-tracking/sst-setup-click-id-route.webp)

_The click ID has to survive every hop between the ad click and the order; storing it on your own domain is what keeps it through checkout redirects._

Test whether the click ID and order ID survive your payment redirects.

## 4. Send purchases server-side to Google Ads

- **Browser-fed sGTM.** Add a [Google Ads Conversion Tracking tag in the server container](https://developers.google.com/tag-platform/tag-manager/server-side/ads-setup). Trigger it on the received purchase event. Map the transaction ID, value and currency and verify the conversion linker and destination in preview.
- **Direct backend delivery.** Send the confirmed purchase using the [Data Manager API offline conversion schema](https://developers.google.com/data-manager/api/devguides/events/google-ads/offline). Map the original click identifier when available, transaction ID, timestamp, value and currency, then check delivery diagnostics.
- **GA4 import fallback.** Verify that GA4 receives the purchase, link the Google Ads account and [import the GA4 key event](https://support.google.com/google-ads/answer/10632359). Check the imported action separately.

## 5. Enable enhanced conversions on supported Google Ads actions

Google Ads uses a [unified enhanced conversions setting](https://support.google.com/google-ads/answer/13258081) for supported tags, Data Manager and API connections. Accept the customer data terms and send data only when permitted.

- **Server-side Tag Manager.** Configure user-provided data in the web and server containers following [Google’s server-side Ads tag guide](https://developers.google.com/tag-platform/tag-manager/server-side/ads-setup). Use preview to check the available fields and consent.
- **Data Manager API.** Follow the route’s documented user-data fields and normalisation and hashing requirements for the chosen conversion type. Check the API result and Ads diagnostics.
- **GA4 import.** Google Ads enhanced conversions does not apply to conversions imported from Google Analytics. Use a supported Google Ads action if Google Ads enhanced conversions is required.

> **Google's guide:** Running enhanced conversions through Tag Manager? Google’s guide to [enhanced conversions for web with Google Tag Manager](https://support.google.com/google-ads/answer/13262500) covers the user-provided data setting and the Ads side.
>
> [Full Signal Tracking](https://www.productmetrics.io/server-side-tracking) sends each purchase server-side, [through ad blockers](https://www.productmetrics.io/ad-blocker-conversion-tracking), to Google Ads and Meta with order ID, value and hashed customer data, so this step needs no container. Profit, new or returning status and LTV go with each order to Google Ads, Meta and ChatGPT Ads.

> **Related:** Not sure whether you need both? [Enhanced conversions vs server-side tracking](https://www.productmetrics.io/blog/enhanced-conversions-vs-server-side-tracking) explains what each one recovers, and [server-side vs client-side tracking](https://www.productmetrics.io/blog/server-side-vs-client-side-tracking) where a hybrid setup fits.
>
> Doing this step in Tag Manager's server container? How to set up enhanced conversions with server-side tagging covers the user_data variable and Consent Mode v2.

## 6. Set consent mode if you serve users in the EEA

Set consent defaults before measurement and update them when the shopper makes a choice. With [Basic Consent Mode](https://support.google.com/google-ads/answer/10000067), Google tags are blocked until the shopper grants consent. With Advanced Consent Mode, tags load with defaults and can send cookieless pings when consent is denied, subject to your policy and applicable requirements. Carry the consent state to the server and verify it for both choices. Check `ad_storage`, `analytics_storage`, `ad_user_data` and `ad_personalization`. See [Google’s EU consent guidance](https://support.google.com/google-ads/answer/14009343).

## 7. Prevent double counting with a transaction ID

Google Ads uses the same transaction ID to deduplicate repeat purchases within a single conversion action. A browser tag and a server route can still record the same order separately if they send to different actions, including a Google Analytics 4 import. Keep one primary purchase action in the campaign’s bidding goals. During migration, validate the replacement as secondary and check campaign custom goals, which can still use a secondary action for bidding. Segment Google Ads reports by conversion action before comparing volumes or values. Follow [Google’s transaction ID guidance](https://support.google.com/google-ads/answer/6386790) and keep the identifier stable across retries.

## 8. QA that the setup works in Google Ads

Place a paid test order. Compare its order ID, action, value and currency with the tag request or supported delivery log, then check Google Ads diagnostics. Use Tag Assistant for tag routes and upload diagnostics for API routes. Delivery and attribution are different checks: compare Google Ads and store totals in aggregate after allowing for reporting lag, using the same conversion-time basis, time zone and value definition. Product Metrics users can trace paid orders in [Check tracking](https://www.productmetrics.io/docs/using/check-tracking).

## 9. Post refunds and returns as conversion adjustments (optional but recommended)

For adjustments supported by your route and within [Google Ads’ adjustment window](https://support.google.com/google-ads/answer/7686280), test a partial refund with the original transaction ID and action. Check that RESTATE carries the full revised conversion value. Use RETRACT for an eligible fully cancelled conversion. Check the adjustment result before switching bidding.

![An illustrative €120 purchase is restated to €80 after a €40 return or retracted after a full refund.](https://www.productmetrics.io/images/blog/google-ads-server-side-tracking/sst-setup-refund-adjustments.webp)

_Illustrative data. Restate the remaining €80 after a €40 refund, or retract the original conversion after a full cancellation._

See the [refund workflow for retailers](https://www.productmetrics.io/blog/google-ads-refund-conversion-adjustments).

## Troubleshooting

- Purchases counted twice - two sources are Primary for the same event or order_id changes between sources. Fix by keeping [one Primary purchase action](https://www.productmetrics.io/glossary/primary-conversion-action) and one order_id format, then recheck Diagnostics.
- “No recent conversions” - verify delivery to the expected action, then check eligible attribution and reporting lag.
- Offline rows rejected - invalid or expired click ID, duplicate order_id, or wrong time zone. Use partial failure logs and fix the field causing the reject.
- Enhanced conversions warning - hashing or normalisation is wrong. Normalise email and phone then SHA‑256 before sending; verify in the diagnostics report after 48 hours.
- EEA consent issues - ads personalization paused for EEA users. Implement Consent Mode v2 on your banner and verify ad_user_data is present.

> **Get every conversion back into Google Ads, Meta and ChatGPT Ads.** Full Signal Tracking gets through every adblocker, so bidding works on your full revenue. Sends revenue, profit and new customers to Google Ads, Meta and ChatGPT Ads. [Book a demo](https://www.productmetrics.io/demo)

## Tips and alternatives

- If you start with a GA4 import, validate the replacement Google Ads action as secondary before changing the bidding goal.
- If you prefer managed infrastructure, GTM server-side runs on Cloud Run with automated provisioning or manual Docker deploys. Use the pricing calculator to estimate cost by traffic. (developers.google.com)
- Use [conversion adjustments](https://www.productmetrics.io/glossary/conversion-adjustments) to restate values after partial returns so [value-based bidding](https://www.productmetrics.io/glossary/value-based-bidding) tracks contribution profit, not gross revenue.
- For Shopping segmentation, map business rules to [custom labels](https://www.productmetrics.io/glossary/custom-labels), for example: custom_label_0: margin_tier (high, medium, low), custom_label_1: stock_cover_days (&lt;=14, 15-45, &gt;45), custom_label_2: price_position (below, match, above), custom_label_3: return_rate (&lt;=5, 5-10, &gt;10). Use these labels in your [PMax and Shopping structures](https://www.productmetrics.io/product-segmentation).

## Next step

Trace the next confirmed purchase through your selected route and use its delivery record to choose the campaign’s bidding action.

> **Grow revenue and profit from every order and every product.** Product Metrics is a profit optimisation platform for ecommerce advertising: one app for server-side tracking, profit bidding, product segmentation and campaign planning across Google Ads, Meta and ChatGPT Ads. It sends each order’s profit, new or returning status and lifetime value to the ad platforms, so merchants can bid on POAS, new customers and LTV. Machine learning segments every product into custom labels for Shopping and Performance Max, and the campaign plan sets out the ideal campaign structure for those segments. A dashboard shows profit, customers, stock and returns. [Compare the free analysis and Pro](https://www.productmetrics.io/pricing#included)

## Sources

- [Server-side tagging overview](https://developers.google.com/tag-platform/tag-manager/server-side/overview)
- [Set up enhanced conversions for web using the Google tag](https://support.google.com/google-ads/answer/13258081)
- [Google’s June 2026 offline conversion upload migration](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion)
- [Obtain user consent for EEA users and Consent Mode v2](https://support.google.com/google-ads/answer/14009343)
- [Use a transaction ID to minimize duplicate conversions](https://support.google.com/google-ads/answer/6386790)

## Frequently asked questions

### Does server-side tracking improve Google Shopping performance?

It improves the reliability of the data your bid strategies learn from. When verified conversions and values reach one purchase action for bidding, Performance Max can optimise towards revenue or [profit signals](https://www.productmetrics.io/blog/poas-tracking-google-ads).

### Do I still need enhanced conversions if I send conversions server-side?

For supported Google Ads destinations, [enhanced conversions](https://support.google.com/google-ads/answer/13258081) uses permitted customer data to improve matching. Check that the selected action accepts this data. Conversions imported from Google Analytics are outside the Google Ads enhanced conversions setting.

### What if my site uses app proxies or payment redirects?

Persist the click ID on your own domain and pass one consistent order_id into the event you send to Google Ads. Map the identifier to the paid order. Use the same transaction ID for repeats sent to the same conversion action.

### We sell to Europe. What exactly changed with consent?

From March 2024, advertisers with EEA users must collect consent and send Consent Mode v2 signals for measurement, personalization and remarketing to continue as before. Use Google’s diagnostics to confirm signals are present. (support.google.com)

### Should I use the Google Ads API for offline conversions?

If you’re building net-new as of June 15, 2026, use the Data Manager API instead. Existing integrations should be checked and migrated if needed. ([developers.google.com](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion))

## Keep reading.

- [Product Metrics vs Elevar vs Littledata for Google Ads](https://www.productmetrics.io/blog/elevar-vs-littledata-vs-product-metrics)
- [How to recover Google Ads conversions on iOS and Safari](https://www.productmetrics.io/blog/recover-google-ads-conversions-ios-safari)
- [Server-side vs client-side tracking for Google Ads](https://www.productmetrics.io/blog/server-side-vs-client-side-tracking)

---

Written by Berend Vrakking, founder of Product Metrics. Last updated 2026-12-01.

1M+ products analysed · Nominated at the Dutch Search Awards for Best Measurement Campaign (2023) and Best Use of Data (2024)

HTML version: https://www.productmetrics.io/blog/google-ads-server-side-tracking
