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.
- Visitor submits formEmail and phone entered
- Pixel reads fieldsEmpty or wrong format
- Meta receives eventNo usable em/ph
- Match to Meta accountFails
- Ad optimisationLearns from less data
The form works, but the Pixel sends nothing useful to Meta.
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
Open Events Manager
In Meta Events Manager choose your Pixel, then the Settings tab, and look at Advanced matching. Confirm it is on.
Check the Diagnostics tab
Look for warnings about customer information parameters that are missing or not formatted correctly.
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.
Inspect the request in your browser
Open DevTools, Network tab, filter for
facebook.com/tr. Look for parameters starting withud[such asud[em]. Values should be long hashed strings, not blank.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.
| Field | Key | Correct format | Common mistake |
|---|---|---|---|
| em | lowercase, trimmed: jane@example.com | Capitals, trailing space | |
| Phone | ph | digits only with country code: 447911123456 | +, dashes, or no country code |
| First name | fn | lowercase letters: jane | Full name in one field |
| Last name | ln | lowercase letters: smith | Title or punctuation |
| City | ct | lowercase, no spaces: london | Postcode in city field |
| Country | country | two-letter lowercase code: gb | Full 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.
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.
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.
Use the Meta channel or Facebook & Instagram app
Open the app's data sharing settings and choose the maximum level so customer information is sent with events.
Test a checkout
Customer details are only available once entered. Check events after the contact step.
Create variables for each field
Add data layer or DOM element variables for email and phone. Add a custom JavaScript variable that lowercases and trims the email and strips non-digits from the phone.
Pass them in the Pixel tag
Fire the init with user data before the event, using the code shown below, and trigger it on a real form submit.
Add custom code
In Project settings, Custom code, add the Pixel with user data. Ensure form field names are consistent so your script can read them.
Check the funnel tracking code
Add the Pixel in the funnel's tracking code and pass values from the submitted form through custom code. Confirm in Test events.
Use Marketing Integrations
Connect the Pixel in Marketing Integrations. For custom values, use Custom Code in Settings and test the request.
Use Code Injection
Add the Pixel under Settings, Advanced, Code Injection, and pass cleaned form values in a submit handler.
Pass clean values
Call fbq('init') with user data once the values are known, or send them on the event. See the snippet below.
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
- 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.
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.
Related issues
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide
- TRK-184Advanced matching sending unhashed data in URLFix guide
- TRK-178event_id missing on browser eventsFix guide
- TRK-179CAPI not deduplicating with browser event (event_id mismatch)Fix guide
- TRK-171Lead event missing on submitFix guide
- TRK-186_fbp cookie not setFix guide