---
title: "Meta Conversions API (CAPI) Event Match Quality Diagnostic & Normaliser"
description: "Interactive normalisation tool for Meta CAPI customer parameters. Normalise phone numbers to E.164, inspect SHA-256 hashes, and predict Event Match Quality scores."
canonical: "https://gordongeraghty.com/resources/meta-capi-emq-diagnostic"
type: "resource"
date: "2026-08-22T08:00:00+10:00"
updated: "2026-09-24T15:40:35+10:00"
---



# Meta Conversions API (CAPI) Event Match Quality Diagnostic & Normaliser

**Gordon Geraghty:** Meta Conversions API (CAPI) Event Match Quality Diagnostic & Normaliser. Interactive normalisation tool for Meta CAPI customer parameters. Normalise phone numbers to E.164, inspect SHA-256 hashes, and predict Event Match Quality scores.

**Category: GTM & Analytics · Type: calculator-widget · Level: intermediate · Licence: MIT**

## How Event Match Quality Affects Ad Delivery

Event Match Quality measures how effectively Meta matches server events with active user profiles. Hashed email and E.164 phone numbers deliver the largest improvements. Including browser cookie identifiers like fbp and fbc lifts match rates above 8.5 out of 10.

### Client-Side First-Party Parameter Normaliser

```typescript
export async function hashSha256(value: string): Promise<string> {
  const clean = value.trim().toLowerCase();
  if (!clean) return '';
  const buffer = new TextEncoder().encode(clean);
  const hashBuffer = await crypto.subtle.digest('SHA-256', buffer);
  return Array.from(new Uint8Array(hashBuffer))
    .map((b) => b.toString(16).padStart(2, '0'))
    .join('');
}

export function normaliseAustralianPhone(phone: string): string {
  const digits = phone.replace(/[^\d+]/g, '');
  if (digits.startsWith('04') && digits.length === 10) {
    return '+614' + digits.slice(2);
  }
  if (digits.startsWith('0') && digits.length === 10) {
    return '+61' + digits.slice(1);
  }
  return digits.startsWith('+') ? digits : '+' + digits;
}
```

### Changelog
- **1.0.0:** Initial release with E.164 phone normalisation and client-side SHA-256 hashing inspection.

**Tags:** Meta CAPI, Server-Side GTM

[Canonical URL](https://gordongeraghty.com/resources/meta-capi-emq-diagnostic)
