Tracking

Server-side tracking for Google Ads: more conversions

How server-side tracking for Google Ads works: the Google tag, click conversion uploads and customer data, and how the three layers count each order once.

·7 min read·By the ROASaurus team

Key takeaways
  • Server-side tracking for Google Ads means sending purchases to Google from your server as well as from the browser, so a blocked or broken tag no longer loses the sale.
  • It has three layers: the Google tag in the browser, an upload of each order with the stored click id, and hashed customer data with that upload.
  • The upload goes to an "Import from clicks" conversion action, carries the order id as transaction ID and must arrive within 90 days of the click.
  • Only one purchase action should be primary; the other stays secondary so no order counts twice.
  • ROASaurus uploads every paid web order through Google's Data Manager API and can report margin instead of revenue for profit bidding.

Server-side tracking for Google Ads means that your purchases reach Google Ads from a server, not only from the shopper's browser. The browser tag still runs, but every order is also uploaded with the click id stored when the visitor landed and with hashed customer details. Purchases that the browser tag missed, because it was blocked, never loaded or could not read the click, are then still attributed to the ad that brought them in.

This guide explains the three layers of a server-side setup for Google Ads, how they count each order once, how to send profit instead of revenue, and how ROASaurus sets it up for you.

Why the browser tag misses purchases

The Google tag runs in the shopper's browser. Several things can stop it from reporting a purchase, or stop Google from linking it to a click:

  • Blockers and privacy browsers stop requests to Google's domains.
  • The thank-you page does not load, for example after an external payment method, a closed tab or a slow connection.
  • The click id is lost between landing and purchase: redirects, a second domain or an expired cookie.
  • Declined consent means the tag runs without ad cookies, and Google models part of those conversions rather than observing them.
  • The tag runs in a restricted place. On Shopify, tags in a custom pixel run in a sandbox that cannot read the storefront's cookies by itself. Google lists Google tags inside a Shopify custom pixel as an implementation it does not support.

A server knows about every paid order, because the order comes from your shop system. What it needs is a way to tell Google which ad click the order belongs to. That is what the next two layers do.

Layer 1: keep the Google tag

A server upload does not replace the Google tag. The tag still does things a server cannot:

  • It sets Google's first-party cookies on landing, which hold the click for later.
  • Google can attribute cross-device conversions when the shopper was signed in to Google, and view-through conversions for video and display ads.
  • Consent Mode works through the tag: it tells Google which visitors consented, and Google models conversions for the ones it cannot observe.
  • It feeds remarketing lists and, with item data, cart reporting.

So the tag stays. The question is how to add a second path without counting purchases twice.

Layer 2: upload each order with its click id

When a visitor arrives from an ad with auto-tagging on, the landing URL carries a gclid (or gbraid or wbraid for clicks that involve an iOS app). If your server stores that id with the visitor and keeps it with the order, it can upload the purchase to Google Ads later, independent of the browser.

RequirementWhat it means
Conversion action typeAn "Import from clicks" action for purchases; uploads cannot go to a tag-based action
Click idThe gclid, gbraid or wbraid from the landing page, stored first-party
TimingWithin 90 days of the click; older click conversions are rejected
Transaction IDThe order id, so a repeated upload of the same order is not counted again
Value and currencyThe order value you want Google to bid on
ConsentConsent flags for ad user data and ad personalization, required for users in the EEA
What a click conversion upload needs, based on Google's Data Manager API documentation.

Uploads go through the Google Ads API or Google's newer Data Manager API. A scheduled file upload that Google fetches from your server is a third option that needs no API access.

Layer 3: add hashed customer data

A click id only helps when you have one. For an order whose click id was lost, hashed customer data gives Google a second key: the email address, phone number, and name with postal code and country, each normalized and hashed with SHA-256 before upload. Google matches the hashes to signed-in Google accounts that interacted with your ads. This is enhanced conversions applied to an upload; since April 2026 one Google Ads setting covers customer data from tags, Data Manager and the API.

Normalization matters. Google expects emails in lowercase without spaces, phone numbers in E.164 format with the country code, and names in lowercase. A wrongly formatted value hashes to something Google cannot match. More on the browser side is in enhanced conversions on Shopify.

How the layers count each order once

Google deduplicates by transaction ID within one conversion action. A tag action and an upload action are two different actions, so the same order sent to both is counted in both. The rule is simple: one of them is primary, the other is secondary.

Google tagPurchase action, secondary: reported under All conversions
Server uploadImport from clicks action, primary: in Conversions and bidding
Same order idRetries and re-uploads are ignored inside each action
A setup where the server upload is the purchase action Google bids on.

Making the upload primary means bidding sees every order that could be matched. Keeping the tag action as secondary lets you compare the two in the All conversions column, which shows how much the upload adds.

A worked example

An example store has 500 orders in a month where ROASaurus stored a Google Ads click id. Here is what each path reports:

OrdersNote
Orders with a stored Google Ads click500Click ids kept first-party from landing to order
Counted by the checkout tag412Blocked requests, pages that did not load, lost cookies
Visitors who declined marketing cookies30Store respects consent: no click id or customer data sent
Uploaded from the server470500 − 30; each with click id and hashed contact details
Purchases the upload adds over the tag58470 − 412
Example store, one month. Illustrative numbers: the size of the gap depends on your traffic, checkout and consent rate.

The 58 extra purchases are not new sales. They are sales that happened and that the bidding did not see. Whether that changes your campaigns depends on how unevenly the losses are spread: if one campaign's traffic comes mostly from Safari or from users with blockers, it was undervalued more than the others.

Send profit instead of revenue

A server path is also the natural place to change the conversion value. The browser only knows the order total. A server that knows product costs, shipping and fees can report the order's margin, so Google bids on profit rather than revenue. With margin as the value, Google's ROAS works like POAS and break-even sits at 100%. Read ROAS vs POAS for why that changes which campaigns grow.

How ROASaurus sets up server-side tracking for Google Ads

ROASaurus runs all three layers. On Shopify, the checkout tag sends the purchase with the order id and customer data. From the server, ROASaurus uploads every paid web order through the Data Manager API, on Shopify and on the other webshops it connects.

  1. Add Google Ads

    Under Connections › Tracking & destinations, add Google Ads with your conversion ID and purchase label.

  2. Connect the account

    Connect your Google Ads account under Setup › Ad spend and grant Data Manager access with Grant Google Ads audience access on the Audiences page.

  3. ROASaurus creates the action

    It finds or creates an "Import from clicks" purchase action named ROASaurus - Purchase (server), sets it as primary and makes the checkout tag's action secondary. You can enter another action's ID instead.

  4. Orders are uploaded

    Each paid web order goes up with the stored gclid, gbraid or wbraid, the order id as transaction ID and the hashed email, phone and address. Web orders of the last 30 days are queued once when the action is created.

  5. Check the log

    Data quality › Deliveries lists each upload with its status and Google's answer, and failed uploads can be sent again.

For profit bidding, set the purchase value to contribution margin. The checkout tag then sends the order total times the store's average margin, and with value corrections turned on, ROASaurus later restates each order's real margin through a conversion adjustment, lowers the value after a refund and retracts a fully refunded order. When the store respects visitor consent, click ids and customer details are left out for shoppers who declined marketing cookies, and an order with nothing to match on is skipped and logged rather than sent. The Google Ads integration page lists every setting; the tracking audit shows what your storefront loads today.

Sources

  1. Google Data Manager API: Send offline conversion events to Google Ads
  2. Google Ads API: Create conversion actions
  3. Google Ads Help: About enhanced conversions
  4. Google Ads Help: How Google Ads tracks website conversions
  5. Google Ads Help: Use a transaction ID to minimize duplicate conversions
  6. Google Ads API: Upload conversion adjustments

In ROASaurus

Keep reading

AdvertisingROAS vs POAS: why revenue targets misleadROAS counts revenue, POAS counts gross profit, so its break-even is always 1.0. Why ROAS targets mislead, worked examples, and how to bid on profit.TrackingGoogle Ads enhanced conversions on Shopify: setup and fixesHow Google Ads enhanced conversions work on Shopify, how to set them up, how to fix "needs attention", and how ROASaurus sends the customer data.Tracking"No recent conversions" in Google Ads: causes and fixesWhat "No recent conversions" (now "Awaiting conversions") means in Google Ads, how to tell a quiet week from a broken tag, and the fix.

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is server-side tracking for Google Ads?

Sending purchases to Google Ads from your server in addition to the browser tag. Each order is uploaded with the click id stored at landing and hashed customer details, so a blocked or broken tag no longer loses the sale.

Do I still need the Google tag?

Yes. The tag sets Google's cookies on landing, handles Consent Mode, measures cross-device and view-through conversions and feeds remarketing. The server upload adds the purchases the tag misses.

Will the same order be counted twice?

Not if only one purchase action is primary. Google deduplicates by transaction ID within a conversion action, so retries are ignored, but a tag action and an upload action are separate and must not both be primary.

How old can an order be when it is uploaded?

Google accepts click conversions up to 90 days after the click. Older ones are rejected.

Can I send profit to Google Ads instead of revenue?

Yes. Send each order's margin as the conversion value, or correct a revenue or estimated value later with a conversion adjustment. Google's ROAS then reads like POAS.

Does ROASaurus do this on WooCommerce?

Yes. The server upload starts from the order, so it works on every webshop ROASaurus connects. The browser checkout tag is Shopify-only.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.