Tracking guide

How to set up the Meta Pixel and Conversions API

The Pixel tracks what people do in their browser. The Conversions API sends the same events from your server, so they are not lost to ad blockers and privacy settings. Used together, they give Meta the data it needs to find better leads.

Key points

  • Use the standard Lead event for enquiries, not a custom event.
  • Send the same event from Pixel and Conversions API with a shared event ID.
  • Verify your domain in Business Settings.
  • Check Event Match Quality and aim to improve it over time.
On this page
  1. What the Pixel and Conversions API do
  2. Step 1: Create a dataset (pixel)
  3. Step 2: Install the Pixel
  4. Step 3: Add the Conversions API
  5. Step 4: Deduplicate events
  6. Step 5: Verify your domain
  7. Step 6: Test and monitor
  8. Go further: send lead quality back

What the Pixel and Conversions API do

The Meta Pixel is a piece of JavaScript on your website. When someone visits or submits a form, it tells Meta. Browsers and ad blockers increasingly block it, so some events never arrive.

The Conversions API (CAPI) sends events from your server or a connected tool straight to Meta. Because it does not depend on the visitor's browser, it fills the gaps. Meta recommends using both.

Step 1: Create a dataset (pixel)

  1. Open Meta Events Manager in your Business Manager.
  2. Click Connect data sources → Web and give the dataset a name, such as your business name.
  3. Make sure it belongs to your own business account, not your agency's.

Meta now calls pixels "datasets" in Events Manager. One dataset can receive both Pixel and Conversions API events.

Step 2: Install the Pixel

Choose one method:

MethodHowBest for
Partner integrationShopify, WordPress (with Meta's official plugin) and similar platforms connect in a few clicksSites on those platforms
Google Tag ManagerAdd the Pixel base code on all pages, then add an event tag for each actionSites already using GTM
Manual codePaste the base code into the <head> of every page and fire events in your codeCustom-built sites

Then add events. For lead generation, the important ones are:

EventWhen to fireUse
PageViewEvery pageRetargeting and audiences
LeadSuccessful form submissionMain optimisation event
ContactClicks on phone, email or WhatsAppSecondary signal
CompleteRegistrationSign-ups for a webinar or eventIf relevant

Step 3: Add the Conversions API

You have four main options, from easiest to most flexible:

OptionEffortBest for
Platform integrationLowShopify and WordPress sites; the plugin sends server events for you
Conversions API GatewayMediumMeta's hosted setup, run on your own cloud account
Server-side Google Tag ManagerMedium to highOne server container sending to Meta, Google and others
Direct APIHighLeads qualified later in a CRM, sent by your developer or CRM

Include as much customer information as you have, hashed: email, phone, first name, and the fbp and fbc browser IDs. This improves matching.

Step 4: Deduplicate events

If the Pixel and Conversions API both send the same Lead, Meta must know it is one lead, not two. Send the same event name and the same event ID from both. Generate the ID in the browser when the form is submitted, pass it to the Pixel, and include it with the server event.

Step 5: Verify your domain

In Business Settings → Brand safety → Domains, add your domain and verify it with a DNS record or a meta tag. This proves you own the site and lets you configure events for it.

Step 6: Test and monitor

  1. In Events Manager, open Test events, enter your site URL and submit a test form.
  2. Check the Lead event arrives from both Browser and Server, marked as deduplicated.
  3. After a few days, check Event Match Quality. Adding phone numbers and names usually raises it.
  4. In Ads Manager, set your campaign's conversion event to Lead.

Go further: send lead quality back

If you track which leads became customers in a CRM, send that back to Meta as a later event (for example, a qualified or purchased lead). Meta can then optimise for leads that buy, not just leads that fill in forms. This is one of the most effective fixes for low-quality Facebook leads.

Want this done for you?

Conversion tracking setup

We set this up for businesses in India, Australia and the UK, with a fixed fee agreed upfront.

Questions

Do I still need the Pixel if I use the Conversions API?

Yes. Meta recommends both. The Pixel captures browser behaviour such as page views for audiences; the Conversions API makes sure key events like leads are not lost.

Can I track Facebook instant form leads with the Pixel?

No. Instant forms happen inside Facebook, so Meta already records them. You can still send lead quality back with the Conversions API for CRM.

What is a good Event Match Quality score?

Higher is better. Scores improve when you send hashed email and phone numbers with each event. Treat it as something to improve over time rather than a pass mark.

Is the Meta Pixel allowed under UK GDPR?

Yes, with consent. UK and European visitors must agree to marketing cookies before the Pixel fires, so add a cookie banner that blocks it until they accept.

Ashok Saini

About the author: Ashok Saini

Founder of Pavlino Digital. Working in digital marketing since 2002: websites, landing pages, CRMs, Google Ads and SEO for businesses in India, Australia and the UK.

Want us to look at your setup?

WhatsApp