Search

How to set up enhanced conversions with server‑side tagging

Set up and test Google Ads enhanced conversions with server-side Tag Manager. Trace consent and customer data from web checkout to the server tag.

By , Founder
Updated 6 min read

Enhanced conversions for web add permitted customer data to a purchase event so Google Ads can better match it to an ad interaction. In server-side Google Tag Manager (GTM), verify user_data reaches the server container and the Google Ads tag fires with the right conversion ID and label.

Quick steps

First check that the store sends a purchase event to the server container. Then add permitted customer data and verify the tag sends it to the correct conversion action. Run the test once with consent granted and once with it denied.

The web Google tag sends the purchase to the first-party server container, where the Conversion Linker and Google Ads tag run.
Check the request to your own subdomain in the browser, then check delivery to Google Ads in the server container’s preview.

What you need

  • Admin access to Google Ads and Google Tag Manager (web and server containers)
  • An existing Purchase conversion action in Google Ads with Conversion ID and Label
  • GTM server container running and reachable at your subdomain (for example: sgtm.yourdomain.com)
  • GA4 client in sGTM and a GA4 event or Google tag on the web container for the purchase
  • Ability to surface customer fields on the order confirmation page or via dataLayer (email preferred; name and postal address optional; phone optional)
  • A consent banner that supports Consent Mode v2 if you serve EEA/UK users

Step by step

1. Enable enhanced conversions in Google Ads

  • Action: In Google Ads, open Goals › Conversions › Settings › Enhanced conversions and accept the customer data terms if prompted. The unified account setting accepts website tag, Data Manager and API data together.
  • Result: Enhanced conversions are enabled for the account. Configure customer data on the intended native Purchase tag separately. GA4 imports do not support enhanced conversions for web.

2. Capture user‑provided data in GTM web

  • Action: In GTM web, create a User‑Provided Data variable. In Manual configuration, map email or phone from the confirmed purchase and optionally the supported name and address fields. Gate access to these fields on ad_user_data consent.
  • Result: In GTM Preview on a test order, the User‑Provided Data variable resolves with values for the fields you mapped.

3. Pass user_data to the tagging server

  • Action: Route the web Google tag to your tagging server. In the web GA4 Event tag, set the event parameter user_data to your consent-gated User‑Provided Data variable. The server tagging instructions also document supported pre-hashed keys.
  • In a standard setup, the tag handles hashing for unhashed inputs. When scripts are served through the server container or Google tag gateway, Google documents that the browser sends the data to the container and the server Ads tag encrypts it before sending it to Google. Use hex-encoded SHA‑256 only in the fields that accept pre-hashed values.
  • Result: In Preview with test data, the server client claims the purchase event. Permit the Google Ads tag to receive user_data and remove it from any general analytics forwarding path.

4. Configure Google Ads Conversion Tracking in sGTM

  • Action: In sGTM, add a Conversion Linker tag (All events). Then add a Google Ads Conversion Tracking tag. Enter your Conversion ID and Label, and trigger it from the server event that represents a completed order. Ensure value, currency and transaction_id flow from ecommerce fields. During a separate-action pilot, keep the current Purchase Primary and the test action Secondary outside bidding custom goals. Remove the overlapping web sender after validation if the server tag replaces it.
  • Result: In sGTM Preview, your Google Ads Conversion Tracking tag fires once per successful order with value, currency and transaction_id.
  • Action: In GTM web, set default consent on the Consent Initialization trigger so ad_user_data and ad_personalization are denied by default for EEA/UK users. On consent granted by your CMP, update consent state to granted. Keep ad_storage consistent with your cookie policy.
  • Result: Basic Consent Mode blocks tags before consent. Advanced Consent Mode can send cookieless pings under denied storage defaults. Only send customer data when ad_user_data is granted.

6. Validate end‑to‑end

  • In GTM web Preview, place a test order and verify the purchase event, consent state and permitted user_data. Use the browser’s request trace to check that the web tag reaches your first-party server endpoint.
  • In server Preview, select the same purchase. Verify the event reached the container, the Google Ads tag fired with the intended ID and label, and the server sent the outgoing request. Check value, currency and transaction_id. The browser request trace only sees the browser-to-server hop in this setup.
  • Once Google Ads processes eligible conversions, check Goals › Conversions › Summary › your action › Diagnostics. Allow time for data to accumulate and avoid copying customer identifiers into QA logs.

Where did enhanced conversion data stop?

Trace the same test purchase in the web and server previews. If the web event has no permitted customer data, check the variable and the consent state at purchase. If the server receives the event but the Google Ads tag does not fire, check its trigger and conversion label before changing the checkout. Use Google’s server-side setup guide to check the tag mapping.

How to check that it worked

Test both consent outcomes. With customer-data permission granted, the test should reach the intended Google Ads tag with the permitted fields. When ad_user_data is denied, verify the integration withholds those fields. Inspect the conversion action’s diagnostics once the reports have processed.

Troubleshooting

  • Enhanced conversions not working at all: In Diagnostics, look for user‑provided data missing. Fix by ensuring the User‑Provided Data variable resolves on real orders and that user_data is attached to the purchase event.
  • Consent issues in EEA/UK: Check that the consent management platform passes each choice to the correct consent signal. Test decline as well as accept.
  • Duplicates or inflated conversions: If both web and server Ads tags fire, you can double count. Use a stable transaction ID for retries within an action. If testing separate web and server actions, keep one Primary and segment reports by action.
  • Wrong hashing mode: Check whether the field expects raw or pre-hashed data and follow the format specified for the chosen delivery method. Avoid hashing twice.
  • Missing transaction_id or value: Check those fields in the incoming purchase event, then map them to the Google Ads tag.

Tips and alternatives

  • Start fast: If you cannot surface user data on the page yet, enable automatic collection in the Google tag, then graduate to Manual once your dataLayer is ready.
  • Keep user-provided data out of analytics destinations and operational logs. Limit it to the configured ads measurement path.
  • For a direct Google Ads API web implementation, use Google’s normalisation and hashing example. Google’s sample removes dots and the plus suffix in the local part for Gmail and Googlemail addresses before hashing. Follow the documented format for the specific route.
  • Consent Mode basics vs advanced: Basic blocks tags until consent; Advanced lets tags send cookieless pings for modelling until consent is granted. Use what fits your policy.

Sources

Written by

, Founder of Product Metrics

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

Linkedin

Keep reading.

Frequently asked questions.

Do I still need enhanced conversions if I already use server‑side tracking?

Server-side delivery gets your order to the destination. Use enhanced conversions when you want Google Ads to use eligible customer data for matching.

Enhanced conversions vs server‑side tagging - which is better?

Neither replaces the other. Use server‑side tagging to stabilise tagging and protect page speed, and use enhanced conversions to give Ads privacy‑safe identifiers for better attribution and bidding.

What is the best way to send hashed customer data to Google Ads?

Use the supported format for your implementation. The server tagging guide describes unhashed and hex-encoded SHA‑256 inputs. For a direct Ads API web implementation, follow the API normalisation example before hashing, including its Gmail and Googlemail rules.

What does Consent Mode v2 change for ecommerce?

For EEA/UK users, you must collect and pass ad_user_data and ad_personalization signals to keep using Ads personalization and measurement features. Basic Consent Mode blocks tags before consent. Advanced Consent Mode loads tags with your configured defaults and can send cookieless pings while storage consent is denied.

See which of your products to push, fix or pause. Start with your own products, or a 30-second estimate.

Check one product first: work out its break-even ROAS in the calculator. Then see where all your products stand.

Find your hidden profit30-second estimate · no login
Analyse your products for freeFree analysis, no credit card

Questions, or want to spar about your products? Book a demo: a video call with Berend, then a demo account.