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.
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.

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_dataconsent. - 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_datato 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_dataand 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.
5. Configure Consent Mode v2 for EEA/UK
- 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_datais 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_idor 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
Berend Vrakking, Founder of Product Metrics
1M+ products analysed · Nominated at the Dutch Search Awards for Best Measurement Campaign (2023) and Best Use of Data (2024)
Keep reading.
Product Metrics vs Elevar vs Littledata for Google Ads
Compare Elevar, Littledata and Product Metrics for Shopify Google Ads tracking. Check setup, pricing, cart data and what each sends for a paid order.
Google Ads Conversion Tracking by Ecommerce Platform
Compare manual Google Ads conversion tracking with Product Metrics for Shopify, WooCommerce, Magento, Shopware 6 and Lightspeed eCom C-Series.
Google Ads conversion tracking with Customer Match remarketing lists
Verify Google Ads purchase tracking and Customer Match together. Trace one paid order to its conversion action and check the audience refresh independently.
Frequently asked questions.
Do I still need enhanced conversions if I already use server‑side tracking?
Enhanced conversions vs server‑side tagging - which is better?
What is the best way to send hashed customer data to Google Ads?
What does Consent Mode v2 change for ecommerce?
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.
Questions, or want to spar about your products? Book a demo: a video call with Berend, then a demo account.