Key facts
  • Target EMQ benchmarks: Purchase events should reach 8.0 to 9.3/10; InitiateCheckout 6.5 to 8.0/10; AddToCart 5.5 to 7.0/10.
  • Highest-weight CAPI keys: Email (em), Click ID (fbc), Browser ID (fbp), Phone (ph in E.164), External ID, and Client IP + User Agent.
  • Normalization rule: Lowercase and trim email, strip all punctuation from E.164 phone (digits only with country code), then SHA-256 hash; NEVER hash fbc, fbp, client_ip_address, or client_user_agent.
  • First-party fix: Hosting sGTM on a first-party subdomain (metrics.yourbrand.com) preserves _fbc and _fbp past Safari's 7-day JS cookie limit.

Root-Cause & Verification Diagnostic Table

Match the exact symptom observed in your ad account or CRM against the verification check and verified production fix below:

Root-Cause & Verification Diagnostic Table
Observed Symptom Root Cause Verification Check Verified Production Fix
Purchase EMQ stuck between 4.5 and 6.2 despite sending email Server webhook sends email only; _fbc, _fbp, client_ip_address, and client_user_agent are blank Events Manager -> Purchase -> View Details -> inspect parameter coverage percentages Persist _fbc, _fbp, IP, and User Agent at landing via first-party sGTM/Worker into cart attributes and forward to CAPI
Phone number parameter shows 0% match or invalid format warning Phone hashed with parentheses/spaces or missing country code (e.g., (415) 555-0192 instead of 14155550192) Inspect pre-hash phone normalization step in CAPI middleware or GTM server variable Convert to digits-only E.164 without leading + (e.g., 14155550192) before SHA-256 hashing
Click ID (fbc) coverage is under 20% on Meta ad traffic Browser JS cookie _fbc expires after 7 days in Safari ITP or is not synthesized from ?fbclid Inspect Set-Cookie headers on first-party landing requests with ?fbclid=test Construct fb.1.. server-side via HTTP-only Set-Cookie on first-party CNAME/Worker
AddToCart and ViewContent EMQ sits below 4.0 No persistent external_id, IP, or User Agent passed on upper-funnel server events Inspect AddToCart server payload in Meta Test Events Attach hashed Shopify customer ID (when logged in) or persistent first-party UUID as external_id plus IP and UA

Step-by-Step Production Fix Checklist

Execute these steps in order and verify every conversion path in test mode before pushing to live paid traffic:

  1. Open Meta Events Manager -> Data Sources -> select Purchase -> click Event Match Quality details to record baseline coverage for em, ph, fbc, fbp, fn, ln, ct, st, zp, country, external_id, IP, and UA.
  2. Verify _fbc format matches fb.1.. (case-sensitive!) and NEVER lowercase or SHA-256 hash fbc or fbp.
  3. Normalize email (trim + lowercase), name/city/state (lowercase letters only), zip (lowercase, no spaces; 5-digit US), country (2-letter ISO lowercase), and phone (digits-only with country code) before SHA-256 hex hashing.
  4. Capture client_ip_address (preferring IPv6 when available) and client_user_agent from the actual shopper request, NOT your server's IP or 'node-fetch'.
  5. Deploy a first-party sGTM or Cloudflare Worker cookie setter so _fbp and _fbc persist beyond Safari ITP's 7-day client-side JS cap.
  6. Verify Purchase EMQ climbs above 8.0 within 48 to 72 hours of deployment in Events Manager.

Reference Implementation & Verification Pattern

// Strict Meta CAPI user_data normalizer (Node / Cloudflare Worker)
async function sha256(str) {
  const buf = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(str));
  return [...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, "0")).join("");
}

async function buildMetaUserData(order, ctx) {
  const email = (order.email || "").trim().toLowerCase();
  const phoneDigits = (order.phone || "").replace(/\D/g, "");
  return {
    em: email ? [await sha256(email)] : undefined,
    ph: phoneDigits.length >= 10 ? [await sha256(phoneDigits)] : undefined,
    fn: order.firstName ? [await sha256(order.firstName.trim().toLowerCase())] : undefined,
    ln: order.lastName ? [await sha256(order.lastName.trim().toLowerCase())] : undefined,
    zp: order.zip ? [await sha256(order.zip.trim().toLowerCase().replace(/\s+/g, ""))] : undefined,
    country: order.countryCode ? [await sha256(order.countryCode.trim().toLowerCase())] : undefined,
    fbc: ctx.fbc || undefined, // NEVER hash
    fbp: ctx.fbp || undefined, // NEVER hash
    client_ip_address: ctx.clientIp || undefined,
    client_user_agent: ctx.userAgent || undefined
  };
}

Want us to trace 10 real paid clicks end-to-end across your live funnel before editing production? Book our $1,000 Forensic Tracking Audit (3 business days, read-only access, 100% credited toward any sprint) or test your landing page right now in the Free Funnel Leak Inspector.

Frequently Asked Questions

Can a low Meta EMQ score really increase Shopify CPA?
Yes. When Purchase EMQ sits below 6.0, Meta cannot match a large share of server orders back to ad impressions, starving Advantage+ Shopping and conversion campaigns of training feedback.
Why did my EMQ drop after moving from Shopify Additional Scripts to Checkout Extensibility?
Shopify's Checkout Extensibility sandbox restricts direct access to top-level cookies and customer headers unless your Custom Pixel and server pipeline explicitly pass _fbc, _fbp, and client headers from the storefront.
Should fbc and fbp ever be SHA-256 hashed before sending to Meta CAPI?
No. Hashing fbc, fbp, client_ip_address, or client_user_agent breaks Meta matching completely. Only PII fields such as email, phone, name, city, state, zip, and country are hashed.