Fix Missing Phone Numbers in Enhanced Conversions for React Forms

Diagnose and fix dropped phone numbers in Google Ads Enhanced Conversions on multi-step React forms. Master state persistence, E.164 formatting, and GTM.

By AdTurbo Team · 2026-12-01

Debugging Google Ads Enhanced Conversions inside single-page applications (SPAs) is notoriously frustrating. You open your Google Ads account, click into conversion goals, and spot a yellow warning banner: Needs Attention or Issues with some Enhanced Conversions fields. When you inspect the diagnostics report, you discover that while hashed email addresses arrive without issue, phone numbers are systematically dropping on multi-step React form submissions.

Because first-party match rates directly impact how your Smart Bidding algorithms value traffic, losing phone numbers can reduce match coverage by 20% to 40%. This loss degrades bidding performance on high-intent lead generation campaigns.

When a multi-step React form unmounts components, refreshes local hook state, or sanitizes strings without adhering to strict normalization standards, Google Tag Manager (GTM) pushes an empty or invalid payload. This guide walks through why Google Ads Enhanced Conversions drops phone numbers on multi-step React forms, how the Google Ads diagnostics pipeline processes user-provided data, and the exact engineering fixes required to ensure complete data delivery.

---

Anatomy of the Issue: React Virtual DOM vs. Google Ads Enhanced Conversions

To understand why phone numbers disappear, you must understand how Google Ads processes user-provided data alongside the lifecycle of a modern React single-page application.

Enhanced Conversions works by collecting first-party customer data (email addresses, phone numbers, names, and physical addresses) captured in lead forms. That data is normalized, hashed using the SHA-256 algorithm on the client or server side, and transmitted securely to Google. Google then matches these hashed records against signed-in Google accounts to attribute conversions that third-party cookies fail to track.

In standard static websites (like WordPress or plain HTML sites), a user fills out fields inside a single element. When the user clicks submit, the DOM still contains the inputs, or the browser performs a standard POST request redirecting to a /thank-you page where server-rendered variables reside.

React functions differently:

1. Component Unmounting: React multi-step wizards conditionally render steps based on active state (e.g., step === 1 ? : ). When the user advances from Step 1 (phone number and personal details) to Step 2 (qualification questions) or Step 3 (scheduling), the Step 1 DOM node is completely removed from the DOM tree.

2. State Scope and Scavenging: If GTM tries to scrape user-provided data via DOM element selectors or Form Submit listeners on the final step, the element no longer exists in the DOM.

3. Event Loop and Asynchronous Execution: React handles form submission asynchronously via event handlers (like Axios or Fetch inside a React Hook Form or Formik wrapper). If your Google Ads Conversion tag fires before your global state resolves, or fires on a custom virtual pageview event before the dataLayer receives the user-provided data payload, the tag sends empty phone parameters.

When these errors compound, your Google Ads account reports that user-provided data is missing or improperly formatted.

---

Understanding the Enhanced Conversions API Diagnostics Report

Before refactoring your frontend codebase or your GTM container, confirm exactly how Google is categorizing your dropped phone data.

How to Access the Diagnostics Report

1. Sign in to your Google Ads account.

2. Navigate to Goals Conversions Summary.

3. Select your primary lead conversion action.

4. Click on the Diagnostics tab at the top of the page.

5. Scroll to the Enhanced Conversions section to view match rate metrics and data quality alerts.

+------------------------------------+-------------------------------------------+

| Diagnostic Status Alert | Root Engineering Cause |

+------------------------------------+-------------------------------------------+

| Needs Attention: Missing Data | Payload sent to Google omitted phone key |

| | due to unmounted React component state. |

+------------------------------------+-------------------------------------------+

| Issues with Some Fields: Formatting| Phone submitted without E.164 standard |

| | (missing country code or raw symbols). |

+------------------------------------+-------------------------------------------+

| Low Match Rate Warning | Tag firing prior to React state push to |

| | window.dataLayer; race condition. |

+------------------------------------+-------------------------------------------+

| No Recent Data Received | Conversion tag firing on button click |

| | rather than successful API 200 response. |

+------------------------------------+-------------------------------------------+

Reading Diagnostic Statuses and Types of Data Quality

Google categorizes incoming enhanced conversion data across multiple health metrics:

• Overall Health: Shows whether Enhanced Conversions is actively processing data or flagged with an error. If phone numbers drop completely, this status may remain green if emails are valid, masking severe data loss.

• Match Rate Impact: Indicates the estimated lift in recorded conversions. When phone numbers fail to match, lead gen campaigns with users on mobile devices suffer significant match drops.

• Field Coverage: Highlights which specific parameters (email, phonenumber, firstname, postalcode) are reaching the endpoint. If your phone coverage drops below 10% on a lead campaign that mandates phone capture, your tracking implementation is broken.

If you see lower ROAS or suspect broader setup errors while reviewing your account metrics, inspect your setup using our comprehensive PPC audit checklist before spending more on media.

---

7 Common Causes Why Multi-Step React Forms Drop Phone Numbers

Diagnosing single-page applications requires checking state containers, tag triggers, and string manipulation. These seven issues represent the root causes behind missing phone parameters in React builds.

1. Unmounting of Step Components (Loss of DOM Elements)

Most multi-step React forms do not hide previous steps using display: none. Instead, developers use short-circuit operators:

jsx

{currentStep === 1 && }

{currentStep === 2 && }

{currentStep === 3 && }

If your GTM setup uses CSS Selectors or JavaScript Variables targeting input IDs (e.g., user-phone), the tag engine inspects the document object on step 3. Because was unmounted, the element query returns null or undefined. GTM proceeds to trigger the Google Ads Conversion Tag with an empty string for the phone number.

2. State Reset Across Step Boundaries (Hook Isolation)

Junior developers often declare isolated form state at the component level instead of lifting state up. For example, if Step 1 uses its own local useState() hook, advancing to Step 2 destroys that instance. Unless data is written to a centralized store (Redux Toolkit, Zustand, or a parent context running react-hook-form), the payload submitted on the final step contains only the data captured on that final step.

3. Missing or Non-Compliant E.164 Formatting

Google Ads strictly enforces the international E.164 standard for Enhanced Conversions phone validation. A valid E.164 number must:

• Include a plus sign (+)

• Include the country call code (e.g., 1 for the US/Canada, 44 for the UK)

• Contain no spaces, dashes, brackets, or leading zeros

• Have a maximum length of 15 digits

If a user enters (555) 019-2834 on Step 1, and your application sends 5550192834 without the country code +1, Google's processing pipeline will discard the record during SHA-256 validation. It will register as a dropped field inside your API Diagnostics report.

4. Asynchronous State Resolution Race Conditions

In single-page applications, clicking the submit button triggers an asynchronous workflow:

1. User clicks "Complete Registration".

2. Validation library verifies inputs.

3. POST request sends data to your backend API.

4. Backend returns HTTP 200 OK.

5. Router redirects to a virtual step or updates local state to show a confirmation view.

If your Google Ads Conversion Tag triggers on the submission button's Click rather than waiting for the API promise to resolve and push variables to window.dataLayer, the tag fires before the application collects and normalizes the payload. The tag runs, checks an incomplete state, and transmits empty variables.

5. Tag Firing on Component Mount Instead of Verified Submission

Using a simple useEffect() hook on your confirmation component often introduces severe tracking flaws:

jsx

// DANGEROUS PATTERN

useEffect(() = {

window.dataLayer.push({ event: 'conversionsuccess' });

}, []);

If a user navigates to Step 3, experiences a validation failure, reloads the page, or uses the browser back/forward buttons, this component can mount multiple times without an actual conversion occurring. In other cases, it fires before the customer data context has populated from the preceding steps. This creates false conversion spikes and drops first-party matching data.

6. Consent Mode and Conversion Linker Configuration Gaps

When running Google Consent Mode v2, if your Consent state for aduserdata or adpersonalization evaluates to denied at the moment of form initialization, Enhanced Conversions redacts user-provided data parameters automatically. If your React app updates consent state asynchronously but fails to re-trigger the pending conversion tags with updated storage access, the tag fires without Enhanced Conversion metadata.

7. Duplicate Conversion Tags Overwriting Global Objects

When multiple tracking scripts run simultaneously—such as direct gtag.js snippets mixed with Google Tag Manager containers—the global googletagdata object can experience variable collision. When React updates the DOM without reloading the page, competing scripts can clear enhancedconversionsdata objects, leaving parameters blank.

---

Step-by-Step Engineering Fix: Persisting State and Formatting Phones

Resolving dropped phone numbers requires fixing state management within React, formatting inputs correctly, and synchronizing data pushes with GTM.

[Step 1 Input: User Phone]

│

▼

[Format to E.164: libphonenumber-js]

│

▼

[Store in Central React Context / Global State]

│

▼

[Final Step: Async API Request Returns 200 OK]

│

▼

[Push userdata Payload directly to dataLayer]

│

▼

[GTM Trigger: Custom Event 'enhancedleadsubmitted']

│

▼

[Google Ads Conversion Tag Reads GTM DataLayer Variable]

Step 1: Centralize Multi-Step State

Do not isolate state inside individual sub-components. Use a parent FormProvider using react-hook-form or a global Zustand store so that form data captured on Step 1 persists all the way through Step 3.

Here is an implementation using React Context and react-hook-form:

tsx

// FormContext.tsx

import React, { createContext, useContext } from 'react';

import { useForm, FormProvider, UseFormReturn } from 'react-hook-form';

interface FormData {

firstName: string;

lastName: string;

email: string;

phone: string;

companySize: string;

}

const MultiStepFormContext = createContext | null(null);

export const FormWrapper = ({ children }: { children: React.ReactNode }) = {

const methods = useForm({

mode: 'onBlur',

defaultValues: {

firstName: '',

lastName: '',

email: '',

phone: '',

companySize: '',

},

});

return {children};

};

Step 2: Normalize Phone Input to E.164 via libphonenumber-js

Never send raw user-entered strings to the dataLayer. Instead, sanitize the phone value into E.164 format before pushing the data.

Install the lightweight parsing library:

bash

npm install libphonenumber-js

Create a utility function to format the number:

typescript

// utils/phoneFormatter.ts

import { parsePhoneNumberFromString, CountryCode } from 'libphonenumber-js';

export function formatToE164(phoneInput: string, defaultCountry: CountryCode = 'US'): string | null {

const phoneNumber = parsePhoneNumberFromString(phoneInput, defaultCountry);

if (phoneNumber && phoneNumber.isValid()) {

return phoneNumber.number; // Returns format: +12125550123

}

return null;

}

Step 3: Dispatch Payload to dataLayer on API 200 OK

Never fire conversion tags on button clicks. Ensure the submission succeeds on your backend first, then push the normalized user-provided data directly to the GTM dataLayer:

tsx

// components/FinalStepSubmit.tsx

import React, { useState } from 'react';

import { useFormContext } from 'react-hook-form';

import { formatToE164 } from '../utils/phoneFormatter';

export const FinalStepSubmit = () = {

const { getValues } = useFormContext();

const [isSubmitting, setIsSubmitting] = useState(false);

const handleFormSubmit = async () = {

setIsSubmitting(true);

const values = getValues();

const formattedPhone = formatToE164(values.phone, 'US');

try {

const response = await fetch('/api/submit-lead', {

method: 'POST',

headers: { 'Content-Type': 'application/json' },

body: JSON.stringify(values),

});

if (!response.ok) throw new Error('Submission failed');

// Push structured User-Provided Data to GTM dataLayer

window.dataLayer = window.dataLayer || [];

window.dataLayer.push({

event: 'leadformsubmitted',

enhancedconversiondata: {

email: values.email.toLowerCase().trim(),

phonenumber: formattedPhone, // Properly formatted E.164 string

firstname: values.firstName.trim(),

lastname: values.lastName.trim(),

},

conversionvalue: 50.0,

});

// Proceed to routing or render success UI

} catch (error) {

console.error('Lead submission failed:', error);

} finally {

setIsSubmitting(false);

}

};

return (

{isSubmitting ? 'Processing...' : 'Confirm Submission'}

);

};

---

Configuring Google Tag Manager for SPA Form Submissions

With your React application pushing normalized customer data to the dataLayer, you need to configure Google Tag Manager to handle single-page lifecycle events properly.

1. Create Data Layer Variables

Inside GTM, define custom variables to extract values from the payload:

• Variable Name: dlv - userdata.phonenumber

• Variable Type: Data Layer Variable

• Data Layer Variable Name: enhancedconversiondata.phonenumber

• Variable Name: dlv - userdata.email

• Variable Type: Data Layer Variable

• Data Layer Variable Name: enhancedconversiondata.email

• Variable Name: dlv - userdata.firstname

• Variable Type: Data Layer Variable

• Data Layer Variable Name: enhancedconversiondata.firstname

2. Configure the User-Provided Data Variable

1. In GTM, navigate to Variables New User-Provided Data.

2. Set Mode to Manual Configuration.

3. Map the fields to their corresponding Data Layer Variables:

• Email: {{dlv - userdata.email}}

• Phone Number: {{dlv - userdata.phonenumber}}

• First Name: {{dlv - userdata.firstname}}

4. Name the variable UserData - Lead Submission.

3. Create Custom Event Trigger

Do not use the standard Form Submission trigger, as it relies on traditional DOM POST events.

1. Go to Triggers New.

2. Choose Custom Event.

3. Set Event name to: leadformsubmitted.

4. Set Trigger fires on: All Custom Events.

5. Save as Custom Event - leadformsubmitted.

4. Wire the Google Ads Conversion Tag

1. Go to Tags New Google Ads Conversion Tracking.

2. Add your Conversion ID and Conversion Label.

3. Check Include user-provided data from your website.

4. Under User-Provided Data, select {{UserData - Lead Submission}}.

5. In the Triggering box, assign Custom Event - leadformsubmitted.

6. Save and publish your workspace.

Keeping conversion paths clean and accurately configured avoids wasting ad spend. If you want an objective review of your setup, you can run a free Google Ads audit to identify missing data layers, broken conversion actions, and structural leaks across your account.

---

How to Test and Verify Your Phone Payload

Never deploy conversion code updates to production without validating the payload across every step of your tracking stack.

1. Debugging with GTM Preview Mode

1. Open Google Tag Manager and click Preview.

2. Enter the URL where your React multi-step form is hosted.

3. Complete Steps 1 and 2, entering a test phone number (e.g., (201) 555-0123).

4. Complete the final step to fire the API call.

5. Locate the leadformsubmitted event in the left-hand GTM Summary panel.

6. Click on the event, select your Google Ads Conversion Tag, and open the Tag Details view.

7. Check the User-Provided Data property. Confirm that phonenumber outputs +12015550123 and is not null, undefined, or raw unformatted text.

+-------------------------------------------------------------+

| Tag Details: Google Ads Conversion Tracking |

+-------------------------------------------------------------+

| Status: Succeeded |

| Triggered on Event: leadformsubmitted |

| |

| User-Provided Data: |

| - email: "[email protected]" |

| - phonenumber: "+12015550123" <-- Correct E.164 Format |

| - firstname: "Alex" |

+-------------------------------------------------------------+

2. Inspecting Outgoing Network Payloads

Inspect outgoing network traffic directly in Chrome DevTools to confirm what the browser transmits:

1. Open Chrome DevTools (F12) and navigate to the Network tab.

2. In the filter box, enter /pagead/1p-conversion/ or google.com/pagead/conversion.

3. Trigger the form submission on your React app.

4. Click on the matching conversion network request.

5. Inspect the payload query string parameters or payload body:

• Locate the parameter labeled em (Enhanced Match parameter).

• Google hashes user values with SHA-256 before transmission. You will see a long alphanumeric hash string prefixed by matching types (e.g., tv.1~em.e1...~pn.p1...).

• If pn (phone number) is missing from the hashed string, your variable did not populate correctly before the tag ran.

When conversion tracking drops essential lead metadata, automated bidding models lack clear signals on which clicks generate genuine business value. Using ppc management software can help flag attribution discrepancies before they skew your bidding data.

---

When to Move Beyond Client-Side Tracking: Server-Side GTM

While properly structured React state and client-side GTM configurations resolve most dropped phone number issues, client-side tracking still faces challenges from ad blockers, strict iOS browser policies, and unexpected JavaScript exceptions.

If you run high-volume lead acquisition where every percent improvement in match rate drives revenue, consider moving your Enhanced Conversions implementation to Server-Side Google Tag Manager (sGTM).

+------------------------+-----------------------------+-----------------------------+

| Feature | Client-Side Enhanced Conv. | Server-Side GTM (sGTM) |

+------------------------+-----------------------------+-----------------------------+

| Resilience to React | Vulnerable to component | Zero risk; phone pushed to |

| State Loss | unmounting & DOM changes. | API and parsed on server. |

+------------------------+-----------------------------+-----------------------------+

| Formatting Validation | Client-side regex & parsing | Validated via secure server |

| | bundles (adds JS weight). | environments (Node/Go/PHP). |

+------------------------+-----------------------------+-----------------------------+

| Ad Blocker Resilience | Easily blocked by Brave, | Highly resilient; runs on |

| | uBlock Origin, etc. | custom first-party domain. |

+------------------------+-----------------------------+-----------------------------+

| Security & Compliance | Hashed on user device; | PII is stripped before |

| | visible in DevTools. | forwarding to Google. |

+------------------------+-----------------------------+-----------------------------+

In a server-side setup, your React app makes an API call directly to your backend or your sGTM cloud endpoint (https://data.yourdomain.com/collect). Your server receives the phone number, formats it via server-side libraries, hashes the string using SHA-256, and dispatches the data directly to the Google Ads API via the Google Ads Conversion API (Server-to-Server).

This approach decouples conversion reporting from the React DOM lifecycle, permanently solving component-unmounting and hydration race conditions.

---

Maintaining High Match Rates on Dynamic SPAs

Diagnosing dropped phone numbers in React forms often reveals broader conversion-tracking inconsistencies. Keep these best practices in mind:

• Standardize state persistence: Never rely on the DOM to read form inputs on single-page applications. Always maintain global React state and pass data via custom dataLayer events.

• Enforce international input masks: Integrate phone input components (like react-phone-number-input) that force users to select country codes, guaranteeing valid E.164 compliance.

• Validate network payloads during releases: Include conversion event validation as part of your QA workflow whenever frontend components or tracking containers change.

If you find tracking issues are undermining your campaign results, review our guide on Google Ads not working to systematically troubleshoot your bidding configurations, keyword match types, and tracking infrastructure.

---

Related Guides

• Google Ads Not Working? 11 Things to Check Before You Panic

• PPC Audit Checklist: 12 Steps to Fix a Leaking Google Ads Account

• Google Ads Optimization Checklist: 15 Things to Check Every Week

---

Frequently Asked Questions

Why does Google Ads require phone numbers in E.164 format for Enhanced Conversions?

Google Ads matches hashed customer parameters against Google account profiles globally. Without the standard E.164 format (such as +1 for North America or +44 for the United Kingdom), matching algorithms cannot reliably distinguish between local and international numbers. Raw numbers missing country codes fail Google validation checks and are excluded from attribution matching.

Can I use GTM DOM Element variables to capture phone numbers on multi-step forms?

Using GTM DOM Element variables on multi-step forms is unreliable because single-page applications remove previous steps from the document object when users advance. Once the component unmounts, DOM-based selectors return null. Instead, store user input in centralized application state and push the data directly to dataLayer on the final submission event.

Does SHA-256 hashing client-side in React affect Google Ads matching?

You can hash the data client-side using standard Web Crypto APIs, but manual hashing is usually unnecessary if you pass plain text to GTM using standard User-Provided Data variables. The official Google Ads Conversion Tag hashes email, phone, and address strings automatically before transmitting them across the network. If you hash data manually, ensure you normalize inputs (lowercasing strings and removing non-numeric characters) prior to hashing.

How long does it take for the Google Ads Diagnostics Report to reflect tracking fixes?

The Enhanced Conversions diagnostics report in Google Ads does not update in real time. Once you deploy your fixes to production, it typically takes 24 to 48 hours for the platform to process new conversion payloads and update match rate statuses. For lower-volume conversion actions, accumulating enough conversion data to clear diagnostic warnings can take up to a week.