Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Enhanced conversions selector pointing to wrong field: fix it

TRK-152Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Enhanced conversions let Google Ads match a conversion to a signed-in Google user by using customer data from your site, such as an email address or phone number. The tag hashes this data (turns it into a scrambled code) and sends it with the conversion.

To find the data, you tell Google where it lives. You can do this with a CSS selector (a rule such as #email that points to one element on the page) or with a variable in Google Tag Manager. This issue happens when that rule points to the wrong element.

Common causes: the selector matches a newsletter or search field that appears earlier in the page, the form was rebuilt and the field ID or class changed, the same ID is used by two forms, or the selector reads a hidden or confirmation field instead of the one the visitor typed in.

Why it costs you leads or sales

The conversion itself may still be recorded, so reports can look normal. But the extra matching data is wrong or empty, so Google Ads matches fewer conversions to ad clicks. Smart Bidding then learns from weaker signals, and your reported cost per lead can drift from reality. You pay for it slowly, in worse bidding rather than in an obvious error.

Where the data goes wrong
  1. Visitor submits formTypes real email in the contact form
  2. Selector reads fieldPoints at newsletter or search box
  3. Wrong value hashedEmpty or unrelated data sent
  4. Google Ads matchConversion not matched to the user

The selector reads the wrong field, so the hashed value cannot be matched.

Matched conversions before and after the fixExample numbers
Matched conversions before and after the fix (example)Wrong selector: 12 % of conversions with matching data; Correct selector: 70 % of conversions with matching data027541270Wrong selectorCorrect selector% of conversions with matching data

Example: illustrative numbers only. A wrong selector leaves most conversions without usable data.

How to check if your site has it

Check what your tag actually reads
  1. Open Google Ads Diagnostics

    Go to Goals, then Conversions, then Summary, open the conversion action and look at the Diagnostics tab. Look for messages about enhanced conversions, such as missing or unmatched data.

  2. Preview in Google Tag ManagerGoogle Tag Manager

    Click Preview, submit a test form, then open your Google Ads conversion tag in Tag Assistant. Check the User-Provided Data variable value.

  3. Compare with what you typed

    The email shown should be the one you entered. If you see another value, an empty value or a different field, the selector is wrong.

  4. Inspect the form field

    Right-click the real email field, choose Inspect, and note its id, name and class. Then run document.querySelectorAll('your-selector') in the console. It should return exactly one element, the right one.

Test a selector in the browser consolejavascript
var els = document.querySelectorAll('#email');
console.log(els.length, els[0] && els[0].name, els[0] && els[0].closest('form'));

How to fix it

The fix is the same everywhere: point the tag at the one field that holds the visitor's email (and phone, if you send it). How you do that depends on how you set up enhanced conversions.

Fix the selector by platform
  1. Open the user-provided data variable

    In Variables, open the User-Provided Data variable used by your Google Ads conversion tag.

  2. Use a specific selector

    For manual configuration, choose CSS selector and enter one that targets only the right field, scoped to the form, for example form#contact input[name='email'].

  3. Or use a data layer variable

    If the selector keeps breaking, push the email into the data layer on success and read it with a Data Layer Variable instead.

  4. Preview and publish

    Test in Preview mode, check the value, then publish.

Example: set user data from the correct field (gtag)javascript
var email = document.querySelector('form#contact input[name="email"]');
if (email && email.value) {
  gtag('set', 'user_data', { email: email.value.trim().toLowerCase() });
}
// then send the conversion event

How to confirm it's fixed

Confirmation checklist
  • Submit a test form with a test email you control.
  • In Tag Assistant, the user-provided data shows that same email, not an empty or other value.
  • The selector returns exactly one element in the console.
  • The Google Ads conversion tag fires once, after the success state.
  • After a few days, Diagnostics for the conversion action shows no enhanced conversions data warnings.
Selector before and after

Before

  • Selector: input[type='email'] (first match is the footer newsletter)
  • Tag sends an empty or wrong email
  • Diagnostics shows unmatched data

After

  • Selector: form#contact input[name='email']
  • Tag sends the visitor's real email
  • Conversions can be matched

How to prevent it happening again

Prevention habits
  • Give the email input a stable ID or name and keep it when you redesign the form.
  • Re-test enhanced conversions after any form, theme or plugin change.
  • Prefer a data layer variable over a CSS selector where your developer can supply one.
  • Document which selector each conversion action uses.
  • Check the Diagnostics tab in Google Ads regularly.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks that enhanced conversions data is present in the tracking hit sent to Google Ads when its robot visitor completes your form. It does not check that the data is correct, meaning it cannot tell whether the value came from the right field.

So a missing value can be caught, but a selector that reads a wrong yet non-empty field can slip through. To cover the rest by hand, run the Tag Assistant check above after each form or tag change, compare the user-provided data with the test email you typed, and review Diagnostics in Google Ads.

FunnelGuard runs your real journeys on a schedule from the EU or US, re-checks a failure from a second region, and sends one alert with a screenshot and likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1). The Free plan covers 1 site and 2 journeys with daily checks, no card needed, and paid plans have a 3-day free trial.

Questions people ask

Why are my Google Ads enhanced conversions not matching?

Common causes are a CSS selector pointing at the wrong field, data that is not hashed correctly, or a form change that broke the selector. Check the User-Provided Data value in Tag Assistant and the Diagnostics tab of the conversion action.

How do I find the right CSS selector for the email field?

Right-click the email input on your live page and choose Inspect. Note its id or name, then test a selector like form#contact input[name='email'] in the console with document.querySelectorAll. It should return exactly one element.

Can a wrong selector still record conversions?

Yes. The conversion usually still counts, but the customer data used for matching is wrong or empty. That is why the problem is easy to miss in normal reports.

Should I use a CSS selector or a data layer variable for enhanced conversions?

A data layer variable is usually more reliable because it does not depend on page markup. A CSS selector works if you give the field a stable ID and scope the selector to the form.

Why does my enhanced conversions tag read the newsletter email?

A broad selector such as input[type='email'] matches the first email field on the page, which may be a footer newsletter box. Scope the selector to your lead form to fix it.

How do I test enhanced conversions without real customer data?

Use Tag Assistant or GTM Preview, submit the form with a test email you control, and check the user-provided data matches what you typed.

Does FunnelGuard check that my enhanced conversions selector is correct?

Only partly. FunnelGuard checks that enhanced conversions data is present in the hit sent to Google Ads, but not that it came from the right field. Verify correctness by hand in Tag Assistant.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: presence checked, not correctness.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.