How to improve Event Match Quality on Facebook (Meta) with Google Tag Manager
To improve Event Match Quality on Facebook, send customer details such as email, phone, name, city and country with as many of your Meta events as you can, not just the purchase. With Google Tag Manager you can save those details the first time a customer gives them, then add them to every pixel and Conversions API event after that. Meta matches more events to real people, and the score goes up over the following days.
The video above shows the whole setup in seven minutes. This post is the written version, with what to check and what to watch out for.
What Event Match Quality is
Event Match Quality (EMQ) is Meta's score for how well the customer details on your events can match them to a Facebook account. It runs from 1 to 10. Meta says a high score can help decrease your cost per action, and it typically recommends aiming for 6.0 or higher (Meta, verifying your setup).
You'll find it in Events Manager: open your pixel, then Overview, and click an event. When a score is low, Meta often shows Update recommended next to it. Click the score to see which details Meta thinks are missing.
Why your score is low
Most visitors never type in their details. Someone lands on a product page, looks around and leaves. Their PageView, ViewContent and AddToCart events carry no email, phone or name, so Meta has little to match them with.
Even customers who have bought from you before come back as strangers, unless you send their details again.
The fix is to keep the details a customer gives you once, and send them with every event they trigger after that.
Step 1: save the customer's details in local storage
When a customer enters their details, at checkout or on the purchase, your data layer has them. In GTM, add a Custom HTML tag that saves each one in the browser's local storage with localStorage.setItem: email, phone, first name, last name, city, country and postal code.
Fire it on the event where your data layer has the details, usually the purchase.
Only do this when you're allowed to. These are personal details kept in the customer's browser. Fire the tag only when the visitor has given consent for marketing, and say in your privacy policy that you share this data with advertising partners.
Step 2: read them back in Google Tag Manager
For each detail, create a Custom JavaScript variable that returns the saved value with localStorage.getItem. Name them clearly, for example LS - email, LS - city.
Check in Preview that each variable shows the real value after a test purchase, and undefined before it.
Step 3: send them with every event
Add the variables to every Meta event, not just Purchase.
In the browser: in each Meta Pixel tag, fill in the customer information (advanced matching) fields: email, phone, first name, last name, city, country, postal code. The pixel hashes them with SHA-256 for you before they leave the browser (Meta, advanced matching).
On the server: in each GA4 event tag that feeds your Conversions API, add the same details as user data parameters, so the server events carry them too. Meta requires email, phone and name to be hashed in Conversions API events (Meta, customer information parameters); the Conversions API tag in your server container should do that for you. If you haven't set up the server side yet, start with the Conversion API setup.
Then submit and publish the container.
Step 4: test it and check Events Manager
Make a test purchase so the details are saved, then visit a product page. In GTM Preview:
- Click the ViewContent event. The Meta Pixel tag should show the customer details in its advanced matching fields.
- Check the server tag for the same event: the user data should be there too.
- With the Meta Pixel Helper browser extension, open the event and check the details are being sent.
In Events Manager, open a PageView or ViewContent event from the browser and from the server. You should see the customer details Meta received with it, such as email, name, city and country.
The score won't jump straight away. Meta works it out from your recent events, so give it a few days of normal traffic.
What moves the score most
- Email and phone on as many events as you can. Phone needs the country code.
- The same details on browser and server events, so Meta can match both copies.
- External ID, your own ID for the customer, on every event.
- The
fbpandfbccookies on server events, so Meta can tie them to the browser and the ad click. - Deduplication set up properly, with one event ID shared by the pixel and the server.
Common mistakes
Details only on Purchase. A purchase with full details and every other event empty still leaves your average low. Send them with every event.
Variables that return undefined or the text "undefined". Check in Preview. Sending an empty or fake value doesn't help matching.
Formatting. Meta wants email in lowercase with no spaces, and phone with the country code and digits only. The pixel and most Conversions API tags normalise this, but check if your score stays low. Our free hash generator shows what a correctly normalised and hashed email looks like.
Saving details without consent. Respect your cookie banner: only save and send personal details when the visitor has agreed.
Questions people ask
What is a good Event Match Quality score?
Meta recommends aiming for 6.0 or higher. Purchase events usually score highest, because that's when customers give their details. PageView usually scores lowest.
What does "Update recommended" mean in Events Manager?
Meta thinks the event could match better with more or better customer details. Click the score to see which details it suggests adding.
How long does it take for the score to improve?
A few days. Meta calculates it from recent events, so it changes as new events with better details come in.
Is it safe to send customer emails to Meta?
They're hashed before Meta uses them: the pixel hashes advanced matching data in the browser, and Conversions API data must be hashed too. Only send them with consent, and mention it in your privacy policy.
Where KiteTrack fits
KiteTrack sends your events to Meta from your own tracking server, with the customer details hashed and the same event ID as the pixel. It also shows your Event Match Quality for each event in your dashboard, and checks your tracking every 30 minutes, so a drop becomes an alert instead of something you find weeks later. See how it works for Shopify and for WooCommerce.
Not sure how well Meta can match your events? Start with the free Tracking Check. It looks at your site in about two minutes, no signup. If you'd rather talk it through, book a call with me.
Sources
- Meta, Conversions API: verifying your setup (Event Match Quality): https://developers.facebook.com/docs/marketing-api/conversions-api/verifying-setup/
- Meta, Meta Pixel advanced matching: https://developers.facebook.com/docs/meta-pixel/advanced/advanced-matching
- Meta, Customer information parameters: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
Get tracking tips by email
Short, practical fixes for Meta, Google Ads and GA4, from Abir.
You’re in. First tip lands soon.