Google Ads enhanced conversions: a setup guide
How enhanced conversions work, the three ways to set them up, how to hash match keys correctly, and how to check them against your orders.
Google Ads Enhanced Conversions are a first-party data feature that sends hashed customer information — email, phone number, name, address — alongside your conversion tags so Google can match ad clicks to conversions more accurately. Instead of relying solely on cookies and click IDs that degrade under browser restrictions, Enhanced Conversions give Google additional match keys to connect a conversion to an ad click. Sending them server-side from your own domain means the conversion no longer depends on a tag loading in the visitor’s browser.
Google Ads reports the conversions it credits to your ads, so it will never equal your store orders. If the gap between the two has grown compared with your own recent days, or Smart Bidding seems to learn from too few conversions, Enhanced Conversions are one of the first things to check.
Table of Contents
- What Are Enhanced Conversions (and Why They Exist)
- How Enhanced Conversions Work
- Three Implementation Levels
- Server-Side Implementation with a First-Party Gateway
- Match Key Quality: What Actually Matters
- Testing and Validation
- Enhanced Conversions vs Meta CAPI: A Quick Comparison
- Common Pitfalls and How to Avoid Them
- FAQ
What Are Enhanced Conversions (and Why They Exist)
Google Ads conversion tracking was built in an era when third-party cookies were reliable and browser-side JavaScript ran without interference. That era is over.
Today, the standard conversion pixel faces multiple points of failure:
- Ad blockers can stop
gtag.jsfrom loading at all - ITP and cookie restrictions in Safari and other browsers shorten how long cookies set by scripts last, which can break the
gclid→ conversion link - Network interruptions on mobile cause fire-and-forget pixels to silently drop
- Consent banners delay or prevent tag execution entirely
The result: Google Ads sees fewer conversions than actually occurred. Smart Bidding models train on incomplete data. Your CPA looks inflated, your ROAS looks deflated, and the algorithm under-bids on audiences that are actually converting.
Enhanced Conversions address this by sending hashed first-party data alongside the conversion event. When a user completes a purchase on your site, you collect their email, phone number, or address — data they’ve provided directly to your business — hash it with SHA-256, and send it to Google. Google matches these hashed identifiers against their logged-in user graph to confirm: yes, this user clicked that ad.
This isn’t a workaround. It’s a standard part of Google Ads conversion tracking, described in Google’s own About enhanced conversions help page.
What Enhanced Conversions are not
- Not a new tag — they augment your existing conversion tags
- Not a way around privacy rules — consent still applies, and data is hashed before leaving your infrastructure (when done correctly)
- Not offline conversion import — that’s a separate feature for CRM and call data, though they share the same match key model
- Not a bidding setting — but Smart Bidding learns from the conversions Google can record, so conversions Google can’t match are conversions it can’t learn from
How Enhanced Conversions Work
The core mechanic is simple: instead of sending Google a conversion event with only a gclid cookie value, you also send hashed customer identifiers. Google uses those identifiers to match the conversion to an ad click through their user graph, even if the original cookie is gone.
Enhanced Conversions strengthen match quality by sending hashed first-party data alongside the conversion event. A server-side path removes the browser as a single point of failure.
Standard Tracking vs Enhanced vs Full Server-Side
| Capability | Standard Pixel | Enhanced (Browser) | Enhanced (Server-Side) |
|---|---|---|---|
| Needs the conversion tag to load in the browser | ✅ Yes | ✅ Yes | ❌ No |
| Needs the click cookie to survive | ✅ Yes | Less (match keys can stand in) | Less (match keys can stand in) |
| Match keys sent | gclid only | gclid + hashed email/phone | gclid + all available match keys |
| Hashing location | N/A | Browser (JavaScript) | Server (your infrastructure) |
| Can you see Google’s answer per conversion? | No | No | Yes, in the upload response |
| Implementation effort | Low | Medium | Higher (but automatable) |
Browser-side Enhanced Conversions add match keys. Server-side delivery goes further: the conversion itself no longer depends on the visitor’s browser. The click ID still has to be captured in the browser, though, so neither path is complete without the other.
The Match Key Model
Google accepts these match keys for Enhanced Conversions:
| Match Key | Field Name | Format |
|---|---|---|
email | Lowercase, trimmed, SHA-256 hashed | |
| Phone | phone_number | E.164 format, SHA-256 hashed |
| First name | first_name | Lowercase, trimmed, SHA-256 hashed |
| Last name | last_name | Lowercase, trimmed, SHA-256 hashed |
| Street address | street | Lowercase, trimmed, SHA-256 hashed |
| City | city | Lowercase, trimmed |
| Region/State | region | Lowercase, trimmed |
| Postal code | postal_code | Trimmed, not hashed |
| Country | country | ISO 3166-1 alpha-2 |
Get email right first. It’s the key almost every checkout collects. Phone gives Google a second way to match. Name and address help most when email is missing. When gtag hashes for you, pass the fields as plain text; when you upload through the API, check Google’s field list for which ones it expects hashed.
Three Implementation Levels
There are three ways to implement Enhanced Conversions, each with different tradeoffs in effort, reliability, and match quality.
Level 1: Browser-Side Enhanced Conversions (gtag)
The simplest approach. You modify your existing gtag.js conversion tag to include user-provided data alongside the conversion event.
gtag('set', 'user_data', {
email: 'user@example.com', // will be auto-hashed by gtag
phone_number: '+11234567890',
address: {
first_name: 'Alex',
last_name: 'Johnson',
street: '123 Main St',
city: 'Portland',
region: 'OR',
postal_code: '97201',
country: 'US',
},
});
gtag('event', 'conversion', {
send_to: 'AW-XXXXXXXX/CONVERSION_LABEL',
value: 149.99,
currency: 'USD',
transaction_id: 'order_abc123',
});
Pros: Minimal implementation effort. Google’s gtag.js handles hashing automatically.
Cons: Still runs in the browser. Ad blockers prevent loading. ITP can still break the gclid cookie. You’re trusting client-side JavaScript to handle PII correctly. No visibility into whether the event actually reached Google.
Verdict: Better than nothing, but you’re still exposed to every browser-side failure mode.
Level 2: Enhanced Conversions for Web via GTM
Google Tag Manager adds a layer of configuration management. You set up a conversion tag with user-provided data variables that GTM resolves from your data layer.
// Push user data to the GTM data layer before the conversion fires
window.dataLayer = window.dataLayer || [];
dataLayer.push({
event: 'purchase',
transaction_id: 'order_abc123',
value: 149.99,
currency: 'USD',
user_data: {
email_address: 'user@example.com',
phone_number: '+11234567890',
address: {
first_name: 'Alex',
last_name: 'Johnson',
},
},
});
In GTM, you configure the Google Ads Conversion tag to read user_data from the data layer and enable “Include user-provided data from your website” in the tag settings.
Pros: Easier to manage across multiple conversion actions. GTM’s server-side container option gives you a migration path.
Cons: Same browser-side vulnerabilities as Level 1. GTM adds latency. Server-side GTM (sGTM) improves things but introduces its own infrastructure complexity.
Verdict: Good middle ground for teams already using GTM. Server-side GTM is a meaningful improvement, though it still requires managing another infrastructure layer.
Level 3: Server-Side Enhanced Conversions (API)
The most robust approach. Your server sends conversion data to Google with hashed customer information, so delivery doesn’t depend on a tag running in the visitor’s browser.
There are two server-side routes. You can enhance a conversion your tag already recorded with a conversion adjustment, matched by order ID (the sample below). Or you can upload the conversion itself with a click ID and hashed customer data, the same mechanism behind offline conversion imports. Either way, you send it in near real time from your own server.
// Server-side conversion upload via Google Ads API
const conversionAdjustment = {
adjustment_type: 'ENHANCEMENT',
conversion_action: 'customers/1234567890/conversionActions/987654321',
order_id: 'order_abc123',
adjustment_date_time: '2026-03-21 14:30:00-07:00',
user_identifiers: [
{
hashed_email: sha256(normalize('user@example.com')),
},
{
hashed_phone_number: sha256(normalizePhone('+1 (123) 456-7890')),
},
{
address_info: {
hashed_first_name: sha256(normalize('Alex')),
hashed_last_name: sha256(normalize('Johnson')),
country_code: 'US',
postal_code: '97201',
},
},
],
user_agent: originalUserAgent,
};
Pros: Delivery doesn’t depend on a tag loading or a request surviving in the browser. You control hashing and normalization. You see Google’s answer for every upload.
Cons: Requires API integration, OAuth setup, and infrastructure to manage the conversion pipeline. Without automation, this is significant engineering work. It also needs watching: a click ID that stops being captured, or a grant that expires, fails just as quietly as a broken tag.
Verdict: This is the target state, if you can run it or have a gateway run it for you.
Server-Side Implementation with a First-Party Gateway
The engineering cost of Level 3 is real — OAuth token management, API versioning, retry logic, rate limiting, hash normalization. This is the problem a first-party gateway is built for.
A gateway sits between your application and Google’s API. Your application fires a single, standardized event. The gateway handles normalization, hashing and delivery to Google, and to any other destination you send to, such as Meta CAPI.
Anacoic’s gateway can send conversions to Google Ads through Google’s Data Manager API (what the Data Manager API is, in plain words). Google Ads delivery is available on request: we switch it on per workspace, so talk to us if you want it. The steps below describe the pattern whichever gateway you use, with notes on what Anacoic’s does.
Event Payload Example
Here’s a purchase sent from your server to Anacoic’s gateway, in the shape the gateway reads:
// Your server sends one event to your gateway
const event = {
event_name: 'Purchase',
event_id: 'order_abc123', // the same ID the browser sends, so platforms count it once
custom_data: {
value: 149.99,
currency: 'USD',
order_id: 'order_abc123', // Google Ads keeps the first conversion with a given order ID
gclid: 'Cj0KCQjw...', // from the landing page URL, if you stored it
},
// Customer data: the gateway normalizes and hashes it
user: {
email: 'User@Example.com ', // trimmed, lowercased, SHA-256 hashed
phone: '+1 (123) 456-7890', // converted to E.164, then hashed
},
// The visitor's choice from your consent banner (consent mode names)
consent: {
ad_user_data: 'granted',
ad_personalization: 'granted',
},
};
// POST to the gateway (or your own subdomain once it's set up)
await fetch('https://edge.anacoic.com/track', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Gateway-ID': 'YOUR_GATEWAY_ID',
},
body: JSON.stringify(event),
});
What Anacoic’s Gateway Does
When this event arrives, Anacoic’s gateway:
- Finds your gateway from the
X-Gateway-IDheader, or from your subdomain once it’s set up. - Normalizes and hashes — trims and lowercases the email, converts the phone to E.164, and hashes both with SHA-256. For Google Ads it also hashes the email in the form Google matches on (for Gmail addresses, without dots or a ”+” suffix). It adds an event ID and timestamp if the event has none.
- Applies consent for Google Ads — hashed email and phone go to Google Ads only when the ad account has accepted Google’s customer data terms and the visitor didn’t decline
ad_user_data. Thead_user_dataandad_personalizationvalues are passed on to Google. - Sends — for events you mapped to Google Ads (Purchase by default), the gateway queues one conversion record. A background worker uploads those in batches through the Data Manager API with the order ID (or the event ID when there is none), value, currency, one click ID (
gclid, elsewbraid, elsegbraid) and the hashed email and phone. Google’s answer goes into the gateway’s delivery log.
An event with no click ID and no customer data Google may use is left out of the upload, because Google couldn’t match it. Anacoic’s gateway doesn’t send names or addresses to Google Ads.
If you build the normalization step yourself, the core looks like this:
// A generic normalization + hashing pipeline
function normalizeAndHash(userData: UserData): HashedUserData {
const normalize = (str: string) =>
str.trim().toLowerCase().replace(/\s+/g, ' ');
const hash = (value: string) =>
crypto.createHash('sha256').update(normalize(value)).digest('hex');
return {
hashed_email: userData.email ? hash(userData.email) : undefined,
hashed_phone: userData.phone
? hash(normalizePhone(userData.phone))
: undefined,
hashed_first_name: userData.first_name
? hash(userData.first_name)
: undefined,
hashed_last_name: userData.last_name
? hash(userData.last_name)
: undefined,
address: userData.address
? {
hashed_street: hash(userData.address.street),
city: normalize(userData.address.city),
region: normalize(userData.address.state),
postal_code: userData.address.postal_code.trim(),
country: userData.address.country.toUpperCase(),
}
: undefined,
};
}
function normalizePhone(phone: string): string {
// Strip everything except digits and leading +
const digits = phone.replace(/[^\d+]/g, '');
// Ensure E.164 format
return digits.startsWith('+') ? digits : `+${digits}`;
}
The critical advantage: your application never needs to know about Google’s hashing requirements, API versioning, or authentication flow. You fire a standard event once. The gateway handles everything downstream. When Google changes their API (and they will), you update the gateway — not every application touchpoint.
This is the same architecture pattern used for server-side tracking across all platforms. One event in, many destinations out.
Match Key Quality: What Actually Matters
Match keys aren’t equally easy to get right. Work through them in this order:
Where to start
| Priority | Match Key | Notes |
|---|---|---|
| 1 | Email (hashed) | Collected at almost every checkout. Google accounts are tied to an email address. |
| 2 | Phone (hashed) | A second way to match. E.164 format is critical. |
| 3 | First + Last Name (hashed) | Useful when email is missing. Google uses them together with address fields, not alone. |
| 4 | Address fields | Most useful for offline and in-store conversions. |
Hashing Requirements
Google is strict about hashing. If you hash incorrectly, the match fails silently — you won’t get an error, those records just won’t match.
Rules:
- Always normalize before hashing — lowercase, trim leading/trailing whitespace, collapse internal spaces
- Use SHA-256 — not MD5, not SHA-1, not base64 encoding
- Hash the canonical form —
user@example.com, notUser@Example.com(with trailing space) - Phone must be E.164 —
+11234567890, not(123) 456-7890or123-456-7890 - Don’t double-hash — if your CRM stores pre-hashed emails, don’t hash again
- Send the hex digest —
a1b2c3d4..., not the raw binary or base64
// Correct normalization pipeline
const email = ' User@Example.COM ';
// Step 1: Normalize
const normalized = email.trim().toLowerCase();
// Result: 'user@example.com'
// Step 2: Hash
const hashed = crypto.createHash('sha256')
.update(normalized)
.digest('hex');
// Result: 'b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514'
A common failure mode: teams hash the email before normalizing, producing a hash of User@Example.COM instead of user@example.com. These are completely different SHA-256 digests, and Google won’t match them.
When using a first-party gateway, normalization is handled automatically and consistently — which is one of the strongest arguments for infrastructure-level implementation over manual per-tag configuration.
Testing and Validation
Getting Enhanced Conversions deployed is half the job. Validating that they actually work is the other half.
Google Ads Diagnostics
Navigate to Tools & Settings → Conversions → [Your Conversion Action] → Diagnostics in Google Ads. Look for:
- Tag diagnostics — Confirms your tag is firing and data is being received
- Enhanced conversions match rate — This appears a few days after your first Enhanced Conversion upload, not straight away
- Recent conversion adjustments — Shows whether your server-side uploads are being accepted
What you want to see:
- No “data quality” warnings
- A match rate that holds steady from week to week, rather than one that suddenly drops
Verifying Match Rates
Google doesn’t provide real-time match rate feedback. The diagnostics page updates with a delay of a few days. To check sooner:
- Send a test conversion with your own email address (one you use for Google login)
- Wait a day or two and check if it appears in the conversion diagnostics
- Compare Google Ads conversions with your store orders, day by day — Google Ads reports the conversions it credits to ads, so it is never expected to equal your orders. Compare today’s gap with the gap on your own recent days. A change in the gap matters more than its size.
Common Test Pitfalls
- Testing with fake emails —
test@test.comwon’t match any Google user. Use real email addresses for validation. - Not waiting long enough — Enhanced Conversion diagnostics take a few days to fill in. Don’t panic if match rate shows 0% on day one.
- Testing from a VPN — Some VPN exit nodes are flagged, which can affect match behavior.
- Forgetting
transaction_id— Without a transaction ID, Google can’t deduplicate. You’ll see inflated conversion counts. - Mixing hashed and unhashed — If you send pre-hashed data to a tag that auto-hashes, you’ll double-hash and match rate drops to zero.
Enhanced Conversions vs Meta CAPI: A Quick Comparison
If you’re implementing Enhanced Conversions for Google, you’re likely also looking at Meta Conversions API (CAPI) and TikTok Events API. Here’s how they compare:
| Feature | Google Enhanced Conversions | Meta CAPI | TikTok Events API |
|---|---|---|---|
| Match mechanism | Hashed PII → Google user graph | Hashed PII → Meta user graph | Hashed PII → TikTok user graph |
| Primary match key | Email (highest impact) | Email + phone (both high) | Email + phone |
| Hashing | SHA-256, hex digest | SHA-256, hex digest | SHA-256, hex digest |
| Browser fallback | Still useful (provides gclid) | Recommended (dedup via event_id) | Recommended (dedup via event_id) |
| Server-side endpoint | Google Ads API or Data Manager API | graph.facebook.com | business-api.tiktok.com |
| Auth method | OAuth 2.0 | Access token | Access token |
| Deduplication | transaction_id or order_id | event_id | event_id |
| Consent handling | Consent mode v2 integration | LDU (Limited Data Use) | — |
The key similarity: all three platforms are converging on the same architecture — hashed first-party data, delivered server-side, with browser events as a fallback signal.
This is why a first-party gateway approach makes sense. You normalize and hash once, then send to each platform. Without a gateway, you’re maintaining three separate integrations with three separate normalization pipelines, and they drift apart over time.
For a deeper comparison of Meta and TikTok specifically, see our Meta CAPI vs TikTok Events API guide.
Common Pitfalls and How to Avoid Them
These are the common ways an Enhanced Conversions setup goes wrong:
1. Hashing Before Normalizing
The most common mistake. Your system hashes John.Doe@GMAIL.COM and john.doe@gmail.com into two completely different SHA-256 values. Google only matches on the normalized form. Always lowercase and trim before hashing.
2. Sending PII in Plaintext
Enhanced Conversions are designed to receive hashed data. If you send plaintext emails to Google’s API, they may reject the request or flag your account. Worse, if your browser-side implementation sends unhashed PII over the network, you have a privacy incident.
Always hash before data leaves your infrastructure. A server-side gateway handles this by default.
3. Missing transaction_id for Deduplication
If you fire both a browser-side enhanced conversion and a server-side upload for the same transaction, Google needs a shared transaction_id to deduplicate them. Without it, the same sale can be counted twice.
Include the same transaction_id (usually your order ID) in both the browser tag and the server-side API call.
4. Not Checking Consent Status
Enhanced Conversions must respect user consent. If you’re operating in the EU or any jurisdiction with consent requirements, check your consent state before sending user data to Google.
Google’s Consent Mode v2 integrates with Enhanced Conversions — when consent is denied, the tag should fire in “consent denied” mode, which sends conversion pings without user data. Your server-side implementation needs the same logic.
5. Ignoring the Reporting Delay
Teams deploy Enhanced Conversions, check the diagnostics tab the next day, see 0% match rate, and assume it’s broken. The diagnostics take a few days to fill in. Wait for them before drawing conclusions.
6. Using gtag Auto-Hash and Then Hashing Again
Google’s gtag.js auto-hashes user data when you pass it through gtag('set', 'user_data', {...}). If you pre-hash the data before passing it to gtag, the library hashes your hash — and the match rate drops to zero.
Rule: If using gtag.js browser-side, send plaintext. The library handles hashing. If using the server-side API, hash it yourself.
7. Not Monitoring After Launch
Enhanced Conversions aren’t a set-and-forget feature. Match rates can degrade if:
- Your data collection changes (checkout form removes phone field)
- A new consent banner blocks data layer population
- A site redesign breaks the
dataLayer.push()call - Google updates their API or hashing requirements
Set up a recurring check: put your store orders and the conversions Google Ads reports side by side every day. The two never match, because Google Ads counts conversions it credits to ads. When the gap changes compared with your own recent days, investigate.
The free tracking check shows whether the Google tag loads on your site. Watch (early access) compares store orders with Meta every day; Google Ads is built for Watch and available on request.
FAQ
What is the difference between Enhanced Conversions and offline conversion tracking?
Enhanced Conversions augment your online conversion tags with hashed first-party data to improve match rates in real-time. Offline conversion tracking imports conversions that happened outside your website — phone calls, in-store purchases, CRM stage changes. Both use the same hashed match key system, but Enhanced Conversions are for web events where you already have a conversion tag firing. Think of Enhanced Conversions as “make your existing tags better” and offline imports as “report conversions that tags can’t see.”
Do I need Enhanced Conversions if I’m already using Google Consent Mode v2?
Yes — they solve different problems. Consent Mode controls whether and how data is sent based on user consent. Enhanced Conversions improve match quality for the data you are authorized to send. When consent is granted, Enhanced Conversions ensure Google can actually match that conversion to an ad click. When consent is denied, Consent Mode ensures you don’t send user identifiers. They’re complementary, not alternatives.
Will Enhanced Conversions work with cookieless tracking?
Partially. Enhanced Conversions reduce your dependency on cookies by providing alternative match keys (email, phone, name). But browser-side implementations still benefit from having the gclid cookie available. For a server-side setup that relies less on cookies, server-side Enhanced Conversions are essential — you capture the gclid at click time, store it server-side, and send it with the conversion event later, even if the cookie has expired.
How long does it take to see results after enabling Enhanced Conversions?
Give it a couple of weeks before drawing conclusions. The diagnostics tab takes a few days to show match rate data, and Smart Bidding then needs time to learn from the extra conversions. Avoid big bid or budget changes in that period, so you can tell what changed what.
Can I use Enhanced Conversions for lead generation, not just ecommerce?
Yes. Google offers “Enhanced Conversions for Leads” specifically for this use case. Instead of a transaction_id, you send hashed lead data (email, phone) when the form is submitted. Later, when the lead converts offline (closes a deal, makes a purchase), you upload an offline conversion with the same hashed identifier. Google connects the dots: ad click → lead → closed deal. This is particularly powerful for B2B where the sales cycle spans weeks or months.
What happens if I send badly formatted data?
Google won’t tell you directly. There’s no error message that says “your hash was wrong.” Instead, your match rate silently drops. This is why normalization is critical — and why a gateway that enforces normalization before hashing catches issues that manual implementations miss. Monitor your match rate in the diagnostics tab. If it drops sharply compared with your own recent weeks, check your normalization pipeline first.
Is there a cost to using Enhanced Conversions?
No additional cost from Google — Enhanced Conversions are a free feature within Google Ads. The cost is in implementation: engineering time to set up the data pipeline, especially for server-side. The case for it is simple: Smart Bidding can only learn from the conversions Google records. Conversions that never reach Google, or arrive without anything Google can match, don’t count toward what the algorithm learns from.