Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Pixel advanced matching empty or wrongly formatted: fix

TRK-185Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Advanced matching lets the Meta Pixel send extra customer details, such as email, phone, first name, last name, city and country, along with your events. Meta uses them to link the event to a Meta account. The Pixel hashes (scrambles) the values in the browser before sending.

The issue is when those fields are empty (the form value was not read), mis-named (for example email instead of em in manual setup), or badly formatted (a phone number with no country code, an email with capital letters or spaces, a name with punctuation). Meta then cannot match them, and sometimes drops them.

Why it costs you leads or sales

Meta's ad delivery learns from the conversions it can tie to people. When matching data is missing, fewer conversions are attributed, Event Match Quality drops, and the algorithm has less to learn from. You may see cost per lead rise and reported results fall short of what your CRM shows, even though the leads are real.

Where matching data gets lost
  1. Visitor submits formEmail and phone entered
  2. Pixel reads fieldsEmpty or wrong format
  3. Meta receives eventNo usable em/ph
  4. Match to Meta accountFails
  5. Ad optimisationLearns from less data

The form works, but the Pixel sends nothing useful to Meta.

Conversions Meta can matchExample numbers
Conversions Meta can match (example)Before fix: 35 %; After fix: 70 %027543570Before fixAfter fix%

Example: share of real leads Meta can tie to a person, before and after fixing formats. Numbers are illustrative.

How to check if your site has it

Check what the Pixel actually sends
  1. Open Events Manager

    In Meta Events Manager choose your Pixel, then the Settings tab, and look at Advanced matching. Confirm it is on.

  2. Check the Diagnostics tab

    Look for warnings about customer information parameters that are missing or not formatted correctly.

  3. Open Test events

    Submit your own form with test values. Open the event and read the Customer information parameters. Each field should show as received.

  4. Inspect the request in your browser

    Open DevTools, Network tab, filter for facebook.com/tr. Look for parameters starting with ud[ such as ud[em]. Values should be long hashed strings, not blank.

  5. Test with real-looking data

    Use an address like test+name@example.com and a phone number with country code, and try a form with optional fields left blank.

Meta customer information formats (before hashing)
FieldKeyCorrect formatCommon mistake
Emailemlowercase, trimmed: jane@example.comCapitals, trailing space
Phonephdigits only with country code: 447911123456+, dashes, or no country code
First namefnlowercase letters: janeFull name in one field
Last namelnlowercase letters: smithTitle or punctuation
Cityctlowercase, no spaces: londonPostcode in city field
Countrycountrytwo-letter lowercase code: gbFull country name

How to fix it

The fix depends on how your Pixel is installed. In every case the goal is the same: read the real form value, clean it, and pass it under the right key.

Fix by platform
  1. Use your Pixel plugin's setting

    In the official Meta for WordPress plugin or a similar tool, turn on advanced matching. It works best with forms and checkouts the plugin supports, such as WooCommerce.

  2. Check form plugin field types

    Make sure the email and phone fields use the proper field types, not plain text fields, so the plugin can find them.

Clean values and re-init the Pixel with user datajavascript
function cleanEmail(v) {
  return (v || '').trim().toLowerCase();
}
function cleanPhone(v) {
  // digits only; include the country code, e.g. 447911123456
  return (v || '').replace(/\D/g, '');
}

document.querySelector('form').addEventListener('submit', function () {
  var email = cleanEmail(document.querySelector('[name=email]').value);
  var phone = cleanPhone(document.querySelector('[name=phone]').value);
  var data = {};
  if (email) data.em = email;
  if (phone) data.ph = phone;
  fbq('init', 'YOUR_PIXEL_ID', data);
  fbq('track', 'Lead');
});

How to confirm it's fixed

Confirmation checks
  • Test events shows em and ph as received for your test submission
  • Network requests to facebook.com/tr include ud[em] and ud[ph] with hashed values
  • Email is lowercase and trimmed, phone is digits with country code before hashing
  • Optional blank fields do not send empty values
  • Diagnostics no longer shows customer information warnings after a day or two
  • Event Match Quality improves for your Lead or Purchase event over the following days

How to prevent it happening again

Matching breaks quietly when someone renames a form field, swaps a form builder or updates a theme. Keep a note of the field names your tracking reads. Re-test after any change to forms, checkout or tag setup, and review Diagnostics in Events Manager each month.

Advanced matching data

Broken

  • ph sent as +44 (7911) 123-456
  • Email has capitals and a trailing space
  • Empty ud[em] on submit

Fixed

  • ph sent as 447911123456
  • Email trimmed and lowercase
  • Values only sent when present

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its check looks at the tracking hit sent to Meta during a scheduled test journey and reports whether matching (enhanced conversions style) data is present in it. So it can tell you when a run that should carry customer data arrives without any.

It does not judge whether every value is formatted exactly as Meta wants, and it does not read your Event Match Quality score or the Diagnostics tab in Events Manager. It also cannot see what happens with real customers' varied phone numbers and names.

Cover the rest by hand: use the Test events tab with a few realistic entries (different phone styles, capitals, blank optional fields), and review Diagnostics and Event Match Quality in Events Manager regularly. FunnelGuard's test traffic is marked (utm_source=funnelguard, fg_test=1) and never uses real card details. You can start on the Free plan (1 site, 2 journeys, daily checks, no card), or run the free read-only website audit.

Questions people ask

Why is my Meta Pixel advanced matching not working?

Usually the Pixel is not reading the form values, so the fields are empty, or the values are in the wrong format. Open Events Manager, Test events, submit a form and check which customer parameters show as received. Then fix the field names and formatting.

What format does Meta need for phone numbers in advanced matching?

Digits only, including the country code, with no plus sign, spaces, dashes or brackets. For example 447911123456 for a UK mobile. Meta then hashes it, and a number without a country code often cannot be matched.

Do I need to hash emails myself for the Meta Pixel?

No. The browser Pixel hashes advanced matching values automatically, so send clean plain values. If you use the Conversions API, you must hash with SHA-256 yourself after lowercasing and trimming.

How do I check if advanced matching is sending data?

Use the Test events tab in Events Manager, or open your browser's Network tab and filter for facebook.com/tr. Look for ud[em] or ud[ph] parameters containing hashed values. Blank or missing ones mean the data is not being sent.

Why is my Event Match Quality low?

Meta has too few usable customer details to match events to people. Common causes are empty or badly formatted email and phone fields, or not sending them at all. Fixing formats and passing em and ph usually helps.

Does advanced matching affect ad performance?

It can. Better matching helps Meta attribute conversions and gives its delivery system more to learn from. The effect varies by account, so treat it as an improvement to data quality, not a guaranteed result.

Can FunnelGuard detect empty advanced matching fields?

Partly. It checks the tracking hit sent to Meta in a test journey for matching data. It does not validate every format or read your Event Match Quality, so you should also check Events Manager by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: enhanced_conversions meta.

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.