Meta Pixel plus Conversions API: the setup that stops your UAE ads optimising on half the data

Server rack in blue light in a data centre

Meta recommends running the Conversions API alongside the Meta Pixel: the Pixel sends events from the visitor's browser, the API sends the same events from your server, and Meta removes duplicates when both carry the same event_name and event_id within 48 hours. Most UAE small businesses can set it up through their platform's built-in integration (Shopify, WordPress, Wix) in an afternoon. Phone numbers must be sent with the 971 country code, digits only and hashed, for example 050 123 4567 becomes 971501234567 before hashing.

Key facts

FactValueSource
Meta's recommendationConversions API alongside the Pixel (redundant setup)developers.facebook.com
Deduplication keySame event_name and event_iddevelopers.facebook.com
Deduplication window48 hours from the first event with that event_iddevelopers.facebook.com
Must be SHA-256 hashedEmail, phone, names, city, country and other personal fieldsdevelopers.facebook.com
Must not be hashedIP address, user agent, fbc, fbpdevelopers.facebook.com
Required for website eventsevent_source_url, client_user_agentdevelopers.facebook.com
Event Match QualityScored 1–10, web events onlydevelopers.facebook.com

Why the Pixel alone undercounts

The Meta Pixel is a script in the visitor's browser. When it loads and fires, Meta learns that someone viewed a page, submitted a form or paid. When it doesn't, because of an ad blocker, a browser's tracking protection, a slow mobile connection or a cookie banner the visitor ignored, the event never arrives. Meta's delivery system then optimises your campaign on the leads it can see, not the ones you got.

The Conversions API sends the same events from your server, where the browser can't block them. Meta's own guidance is to run both: "we recommend that advertisers implement the Conversions API alongside their Meta Pixel".

Laptop with a pink analytics dashboard among reports
Laptop with a pink analytics dashboard among reports · Photo: Pexels

Pick your setup route

Your websiteRouteEffortNotes
ShopifyMeta's sales channel app, data sharing set to maximum1 hourPurchases flow automatically
WordPress / WooCommerceMeta's official plugin, or server-side Google Tag Manager2–4 hoursWatch for a second pixel plugin firing the same events
Wix, SquarespaceBuilt-in Meta integration in the platform's marketing settings1 hourLimited control over custom events
Custom site or landing pagesDirect API calls from your backend, with Meta's Parameter Builder Library1–3 days of developer timeFull control; needed for CRM events like "qualified lead"
Leads close offline or in WhatsAppWebsite API plus CRM events, or Business Messaging API for WhatsAppVariesLets Meta optimise on sales, not form fills

The effort column is our estimate for a typical small-business site, not a Meta figure.

How deduplication works

When the Pixel and the server both report the same lead, Meta must count it once. It does that by matching event_name and event_id: the browser event and the server event must carry the same name and the same ID, and the second one must arrive within 48 hours of the first.

In practice: when the form is submitted, generate one ID (an order number or a random string), pass it to the Pixel as eventID, and send the same value as event_id from the server. Name the event identically on both sides: Lead and lead are two different events.

Hand holding a phone with a social profile
Hand holding a phone with a social profile · Photo: Pexels

What to send with each event

Meta matches server events to people through customer information. Its parameter reference splits them in two:

Hash with SHA-256 before sendingSend as is
Email (em), phone (ph), first and last name, city, country, date of birthIP address, browser user agent, fbp cookie, fbc click ID

Meta's best practices make event_source_url and client_user_agent required for website events and ask for external_id and event_id on all events. Normalise and hash once, either in the browser or on the server, never both.

The UAE phone number, worked:

Customer typedNormalisedThen
050 123 4567971501234567SHA-256 hash
+971 (50) 123-4567971501234567SHA-256 hash
00971501234567971501234567SHA-256 hash

Meta's rule is to remove symbols, letters and leading zeros and always include the country code. Forms in Dubai collect numbers in every one of these formats, so normalise in code, not by hand. Country goes in as ae, also hashed.

Eight checks in Events Manager

  1. Test Events tab: submit a test lead; you should see one browser and one server event.
  2. Deduplication: the event's overview shows events as "deduplicated", not doubled.
  3. Event names match exactly between Pixel and server.
  4. Event Match Quality: Meta scores matching from 1 to 10 for web events. Note the score, add email and phone, compare.
  5. Value and currency on purchases: AED, a number, not "AED 250".
  6. No test code left on the live site after testing.
  7. One pixel per site. Old agency pixels and plugin pixels double-fire.
  8. Consent: events stop for visitors who refused marketing cookies.

What nobody tells you

Unmatched events are wasted for optimisation. Meta says only matched events can be used for attribution and delivery optimisation. A server event with no email, phone or browser IDs gets counted but can't teach the algorithm anything.

A form fill is not a customer. If you optimise for Lead, Meta finds people who fill in forms. In Dubai, where many form leads never answer the phone, sending a later QualifiedLead or Purchase event from your CRM is what moves cost per sale. Our guide on tracking WhatsApp leads to the CRM covers the WhatsApp side.

Consent applies to the server too. Moving tracking to the server doesn't remove the PDPL duties to inform and get consent. Send server events only for visitors who accepted; see our guide to cookies and consent on UAE websites.

Vladimir Chernyshev, GM: we don't start a Meta campaign until the test lead shows up twice in Events Manager, once from the browser and once from the server, and is counted once. Half a day of setup decides whether the next six months of budget teaches the algorithm or confuses it. What ads cost once the tracking works is in our guide to Meta ad prices in the UAE.

Questions people ask

Do I still need the Meta Pixel if I set up the Conversions API?

Yes. Meta recommends running both. The Pixel catches browser signals the server can't see, the API catches events the browser loses, and deduplication keeps the count honest.

How do I format a UAE phone number for the Conversions API?

Strip spaces, dashes, brackets and the leading zero, add 971, then SHA-256 hash it. 050 123 4567 and +971 50 123 4567 both become 971501234567 before hashing. Meta's docs say to always include the country code.

What is a good Event Match Quality score?

Meta scores matching from 1 to 10 for web events and doesn't publish a pass mark. Use the score to compare before and after you add parameters: email and phone usually move it most. Only matched events can be used for attribution and delivery optimisation.

Can I send WhatsApp sales to Meta too?

Yes, through the Conversions API for Business Messaging on the WhatsApp Business Platform, using the click ID from click-to-WhatsApp ads. It is a separate setup from the website API; see our guide to tracking WhatsApp leads.

Is the Meta Pixel legal on a UAE website?

Yes, with consent and disclosure. The PDPL requires provable consent and telling visitors which tools receive their data. Load the Pixel after the visitor accepts marketing cookies, and send only server events for people who agreed.

Sources

  1. Meta for Developers: Handling duplicate Pixel and Conversions API events
  2. Meta for Developers: Customer information parameters
  3. Meta for Developers: Conversions API best practices
  4. Meta for Developers: Omni optimal technical setup guide (Event Match Quality)
  5. Meta for Developers: Parameter Builder Library
  6. Meta for Developers: Conversions API for Business Messaging

Reviewed . By Vladimir Chernyshev, General Manager, Savage Media. Photos: our own shoots and Pexels.

More from Savage Journal

All guides →