Meta Pixel & Conversions API: Tracking Setup for Saudi Sites

Analytics charts showing tracked conversions from Meta Pixel and Conversions API

Short answer: the Meta Pixel is a piece of code on your website that tells Meta when visitors take actions such as viewing a product, submitting a form or buying. The Conversions API sends the same events from your server, so tracking still works when browsers or ad blockers stop the pixel. Using both, with duplicates removed, gives Meta better data to optimise your Facebook and Instagram ads.

Good tracking is the first thing we set up in our Facebook and Instagram ads work, because without it campaigns optimise for clicks instead of customers.

What is a pixel in Facebook ads?

A pixel in Facebook ads is the Meta Pixel: a short JavaScript snippet loaded on every page of your site. When someone who saw or clicked your ad later takes an action on your website, the pixel records it as an event and reports it back to Meta Ads Manager.

Measure

See how many leads, purchases or bookings each ad produced.

Optimise

Let Meta show ads to people most likely to take your chosen action.

Retarget

Build audiences of visitors, product viewers or cart abandoners.

Lookalikes

Find new people similar to your converters.

What is the Meta Conversions API?

The Conversions API (CAPI) sends events directly from your server or platform to Meta instead of from the visitor’s browser. Browser tracking can miss events because of ad blockers, privacy settings, slow pages or cookie limits. Server events fill those gaps and can include offline results, such as a lead that became a paying customer in your CRM.

Developer adding Meta Pixel tracking code to a website
The pixel runs in the browser; the Conversions API runs on the server.

Meta Pixel vs Conversions API: do you need both?

Meta Pixel

Runs in the browser. Quick to install, captures on-site behaviour, but can miss events.

Conversions API

Runs on the server. More reliable, can send offline and CRM events, needs more setup.

Both together

Meta recommends using both, with deduplication so each action is counted once.

Deduplication works by sending the same event name and a shared event ID from the pixel and the server. Meta then keeps one copy. Without it, results can be counted twice and reports look better than reality.

Which Meta Pixel events should you track?

  • PageView: every page load, installed by default.
  • ViewContent: a product or key service page view.
  • Lead: a submitted enquiry form.
  • Contact: a click on a WhatsApp or call button.
  • Schedule: a completed booking.
  • AddToCart, InitiateCheckout and Purchase: for online stores, with value and currency in SAR.

Pick one main event per campaign to optimise for, usually Lead or Purchase. Tracking too many low-value events as conversions confuses optimisation.

How to set up the Meta Pixel and Conversions API

  1. Create the pixel (dataset) in Meta Events Manager inside your Business portfolio.
  2. Install the pixel: through your platform’s integration, a WordPress plugin, or Google Tag Manager.
  3. Set up events for forms, WhatsApp clicks, bookings or purchases.
  4. Connect the Conversions API: through a platform integration, a server-side tag manager, or a partner app.
  5. Turn on deduplication with matching event IDs.
  6. Verify your domain in Business settings.
  7. Test using the Test Events tool before running ads.
Business team reviewing conversion tracking results from the Meta Pixel
Test every event before spending: a broken pixel wastes budget quietly.

Meta Pixel setup on WordPress, Salla, Zid and Shopify

WordPress and WooCommerce

Use Meta’s official integration or a tag manager; WooCommerce events and Conversions API can be sent through the integration.

Salla and Zid

Both offer marketing integrations where you add your pixel ID; check which events and server options your plan supports.

Shopify

Connect through the Facebook and Instagram sales channel app, which can send pixel and server events.

How to test that tracking works

  • Use Test Events in Events Manager while you submit a test form or order.
  • Check the Meta Pixel Helper browser extension on key pages.
  • Look at Event Match Quality and fix low scores by sending more customer parameters, such as hashed email and phone, where you have consent.
  • Compare a week of reported leads with the enquiries you actually received.

Privacy and consent in Saudi Arabia

Saudi Arabia’s Personal Data Protection Law (PDPL) sets rules for collecting and using personal data. Explain tracking in your privacy policy, collect only what you need, and get consent where required before sending customer data such as emails or phone numbers to Meta. Rules change, so confirm your setup with a qualified legal or compliance adviser.

For targeting once tracking works, see Instagram and Facebook ads targeting, and for full campaign setup read how to run Facebook and Instagram ads in Saudi Arabia. MTR sends a written, fixed quote after a free call.

Frequently asked questions

What is a pixel in Facebook ads?

It is the Meta Pixel, a code snippet on your website that reports actions such as leads and purchases back to Meta so you can measure and optimise ads.

What is the Meta Conversions API?

It sends events from your server or platform directly to Meta, so tracking still works when browsers block the pixel, and it can include offline sales.

Do I need both the Meta Pixel and the Conversions API?

Meta recommends both. Use matching event IDs so each action is counted once.

Can I track WhatsApp clicks with the Meta Pixel?

Yes. Track clicks on WhatsApp buttons as a Contact event, or use click-to-WhatsApp ads, which report conversations in Ads Manager.

Can MTR set up my Meta tracking?

Yes. MTR sets up and tests the Meta Pixel, Conversions API and events on WordPress, WooCommerce, Salla, Zid and Shopify sites.

Written by MTR Marketing Agency, Riyadh. Last reviewed: November 2026. Sources: Meta Business Help Center (Meta Pixel, Conversions API, event deduplication); Saudi PDPL (SDAIA).