The twelve checks, and what each one costs you
Every row below is a rule from Meta's own parameter documentation, not a preference. The right-hand column is the failure mode I see most often on client accounts, which is usually the reason someone opens this page in the first place.
| Check | What passes | What happens when it fails |
|---|---|---|
Payload shape | A `data` array, or a bare event object | Meta expects `{data: [...]}`; a single object sent as the body is a 400 |
`event_name` | Non-empty, a standard event or a clean custom name | Empty, spaces or a capitalised custom name break dedup and reporting |
`event_time` | Unix seconds, no older than 7 days | Milliseconds, or anything past 7 days, fails the entire request and processes no events |
`action_source` | One of the nine accepted values | `web`, `site` or `pixel` are rejected — the value is `website` |
`event_source_url` | Full URL, required when the source is website | Missing on a web event means no attribution to a page |
`client_user_agent` | Required for website events, never hashed | Missing on a web event loses browser matching |
`user_data` | At least one identifier present | An empty object returns 400 and no event is recorded |
Hashed fields | `em`, `ph`, `fn`, `ln`, `ct`, `st`, `zp`, `country`, `db`, `ge` must be SHA-256 | Plaintext is rejected; Meta does not hash contact info for you through this API |
Normalisation | Lowercase, no punctuation, country code in `ph` | Hashing a badly formatted value produces a hash that never matches |
`fbc` / `fbp` | `fb.1.<timestamp>.<value>` | A hand-written `fbclid` in `fbc` is ignored for click attribution |
`event_id` | Unique string, identical to the pixel's `eventID` | Missing means the pixel and the server both count the same purchase |
`custom_data` | `value` as a number, `currency` as ISO-4217 | `value` as a string is coerced to zero in some reports, and ROAS goes with it |
Hashing: four mistakes that quietly cost match rate
A hash of the wrong string is still a valid 64-character SHA-256. Nothing errors. The event is accepted, counted, and matched against nobody. This is the most expensive class of bug in a CAPI setup because no dashboard reports it — the only signal is a lower Event Match Quality score weeks later.
| Mistake | Sent | Should be |
|---|---|---|
| Hashing an uppercase email Meta hashes the lowercase form. A hash taken before lowercasing is a different 64 characters that match nobody. | [email protected] | [email protected] |
| Hashing a phone number with the plus sign Symbols, letters and leading zeros come off before hashing, and the country code stays on. | +1 (650) 555-1212 | 16505551212 |
| Hashing a country name instead of a code Two-letter ISO 3166-1 alpha-2, lowercase. The full name produces a hash that is never looked up. | United States | us |
| Hashing a full UK postcode with a space Lowercase, no spaces, no dash. US zips keep only the first five digits. | M1 1AE | m11ae |
The six fields that must never be hashed are just as important: client_ip_address,
client_user_agent, fbc, fbp, lead_id and
subscription_id. Hashing an fbp breaks the browser match entirely, and it is a
common copy-paste error when someone has just written a helper that hashes everything it touches.
Check the hashing yourself
Meta publishes test vectors for exactly this reason. Type one of these into the tool above — normalise it, hash it — and you should get the published value, character for character. If you do not, your hashing helper is wrong before any of your events are.
| Field | Normalised input | Expected SHA-256 |
|---|---|---|
em | [email protected] | 62a14e44f765419d10fea99367361a727c12365e2520f32218d505ed9aa0f62f |
ph | 16505551212 | e323ec626319ca94ee8bff2e4c87cf613be6ea19919ed1364124e16807ab3176 |
country | us | 79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621 |
A worked example
This is a real shape I have found in a Shopify app's server function: five problems, all accepted with a 200.
{
"data": [{
"event_name": "purchase",
"event_time": 1763700000123,
"action_source": "web",
"user_data": { "em": "[email protected]" },
"custom_data": { "value": "79.00", "currency": "usd" }
}]
} - Milliseconds.
1763700000123reads as the year 57842. Meta rejects the whole request if the parsed time is more than seven days old. - Lowercase event name.
purchasedoes not match the pixel'sPurchase, so dedup never fires even once the rest is fixed. action_source: "web". Not an accepted value. It iswebsite.- Uppercase email, unhashed. Two errors in one field: it needs lowercasing and it needs SHA-256.
valueas a string, lowercase currency. The value is written to revenue only when it is a number, and the currency must be ISO-4217 uppercase.
The corrected version, which the button above produces, is 11 fields and about 20 lines. It takes a minute to generate and removes a fortnight of bad learning from the ad account.
What this tool cannot tell you
It does not check your access token, your dataset ID, the API version in the request URL, or whether the
app has the right permissions. It does not know your pixel's event names, so it cannot confirm that the
pixel sends the same event_id as the server — for that you paste both logs into the
Double-count finder. It also cannot predict Event Match
Quality: a payload can be perfectly valid and still match at 4/10 because it carries one identifier.
How to confirm the fix in Events Manager
- Send the corrected payload with your
test_event_codeso it lands in Test Events and not in the live dataset. - Open Events Manager → your dataset → Test Events. Confirm the event appears with the right name and a value.
- Open the event, then the Deduplication tab. A purchase should show a server event and a browser event on the same key, with one of them marked as deduplicated.
- Wait 24 hours, then compare the count in Events Manager against your store's order count for the same window and time zone. Within 5 to 10 percent is normal. Above 20 percent is a configuration problem, not a tracking gap.
- Check Event Match Quality after three or four days of data — the score needs volume before it means anything.
Where this fits in a real rebuild
Validation is step four of a server-side rebuild, after the container, the consent gate and the event map. Doing it first is fine and cheap; doing it never is why a rebuild gets handed over at 70 percent accuracy. The fourteen checks I run on an account, in order, are on the ecommerce tracking checklist, and the reasoning behind the whole sequence is in conversion tracking for ecommerce.