Blog/Meta Pixel and Conversions API: A Setup Guide for Lead-Generation Businesses
Paid AdsAnalyticsLead Generation12 Min Read

Meta Pixel and Conversions API: A Setup Guide for Lead-Generation Businesses

If your Facebook and Instagram ads report fewer leads than your inbox shows, the Pixel alone is probably missing some of them. Meta's answer is to send the same events from your server too. Here is what that means for a local business, how to set it up without double counting, and how to check it works.

Amresse Farrow

Amresse Farrow

Dec 3, 202612 min read

Meta Pixel and Conversions API: A Setup Guide for Lead-Generation Businesses

The Short Answer

The Meta Pixel is a piece of code in the visitor's browser that tells Meta when someone views a page or submits a form. The Conversions API sends the same kind of event from your server, your CRM or a connected platform instead of the browser.

Meta recommends using both. In its own words: "Use the Conversions API in addition to the Meta Pixel, and share the same events using both tools. This is a _redundant event setup_" (Conversions API best practices).

For a business that gets its customers through form fills, calls and bookings, a sound setup looks like this:

  1. Keep the Pixel on every page and fire an event when a lead form is submitted.
  2. Send the same lead event from the server through the Conversions API, with the customer details you already collected on the form.
  3. Give both copies the same event name and the same event ID so Meta counts the lead once.
  4. Send events as they happen, not in a weekly batch.
  5. Check the result in Events Manager with the Test Events tool and the Event Match Quality score before trusting the numbers.

The rest of this guide explains each step and the mistakes that make reporting worse instead of better.

Why the Pixel Alone Misses Leads

A browser pixel depends on the browser. If the page closes before the code runs, a browser extension blocks it, or the visitor never reaches the thank-you page, the lead happens but Meta never hears about it. Your inbox has the lead; Ads Manager doesn't.

That matters for two reasons:

  • Reporting. You judge campaigns, ad sets and ads by the leads Meta can see. Missing leads make good ads look worse than they are.
  • Ad performance. Meta ties the two together itself: it recommends running the Conversions API alongside the Pixel "for optimal ad performance" (Handling duplicate events).

A server event doesn't depend on what happens in the browser. When your website, form tool or CRM records the lead, it sends the event to Meta directly. Sending from both places gives Meta two chances to receive each lead, which is why Meta calls it "redundant."

The cost of that redundancy is the risk of counting a lead twice. That is what the next section is about.

How to Stop Leads Counting Twice

When the Pixel and the Conversions API both report the same lead, Meta needs a way to recognise them as one. The method Meta recommends is matching on event name and event ID (Handling duplicate Pixel and Conversions API events):

  • The Pixel's eventID must match the Conversions API's event_id.
  • The Pixel's event (the event name) must match the Conversions API's event_name.

If Meta receives matching pairs for the same Pixel ID within 48 hours, it keeps one and discards the rest. When the two copies don't differ meaningfully, Meta says it generally keeps the one received first, and its parameter reference adds that if the server and browser events arrive within about five minutes of each other, it favours the browser event (server event parameters).

In practice that means:

  • Create the event ID once, when the form is submitted, and use it in both places. A form submission ID or the lead's record ID in your CRM works well. A new random number generated separately in the browser and on the server will never match.
  • Use exactly the same event name. If the Pixel sends one name and the server sends another, Meta sees two different events and counts both.
  • Send the server copy promptly. Deduplication only works inside the 48-hour window.

You only need deduplication for events you send twice. Meta's page is explicit that advertisers "who do not send the same event twice via both the Conversions API and Meta Pixel do not need to set up deduplication for those events." So if a booking only ever happens by phone and only your CRM reports it, there is nothing to deduplicate.

What Each Server Event Should Include

Meta's best-practices page lists the parameters it requires and the ones that improve matching (Conversions API best practices).

ParameterWhat it isWhen it's required
action_sourceWhere the conversion happened (website, phone call, physical store and so on)All events
event_source_urlThe page where the event happenedAll website events
client_user_agentThe visitor's browser detailsAll website events
event_idYour ID for this event, shared with the PixelMeta asks you to include it for all events
external_idYour own ID for the customer, such as a CRM contact IDMeta asks you to include it for all events

On top of those, customer information is what lets Meta connect the event to a person who saw your ad. Meta says that sending more of it "may help increase Event Match Quality," and its examples are email address (em), IP address (client_ip_address), first and last name (fn, ln) and phone number (ph). A lead form already collects most of these, which is why lead-generation businesses tend to benefit from the Conversions API.

Three details are easy to get wrong:

  • Personal details must be hashed before sending. Meta notes that its Business SDK does the hashing automatically, and warns that if you don't use the SDK, you need to implement hashing yourself.
  • The fbp and fbc values are browser cookies set in connection with Meta's first-party cookie, and Meta says they "are subject to change." If you send them, refresh them rather than storing one value forever.
  • Thin events are rejected. Meta treats an event as invalid if its customer information is only a weak combination such as first name plus gender. Email or phone should be in every lead event you can manage.

Timing: Send Events as They Happen

Meta says you can send server events "in real time or in batches close to real time," and that sharing events when they happen helps campaigns get the best results (best practices).

There is also a hard limit. An event's time can be at most seven days in the past when you send it, and if any event in a request is older than that, Meta returns an error for the whole request and processes none of the events in it (server event parameters). A weekly export from your CRM is therefore not a safe plan: one stale row can sink the whole upload.

For a website lead form, the simplest pattern is to send the server event at the same moment your site or form tool saves the submission.

Calls, Bookings and Other Offline Leads

Not every customer arrives through a web form. Some call, some book in person, some message you. The Conversions API can report those too, as long as you label them honestly.

The action_source field tells Meta where the conversion happened. The values Meta lists include "website", "email", "phone_call", "chat", "physical_store", "system_generated", "business_messaging" and "other" (server event parameters). Meta's best-practices page says offline events should use the appropriate value, which "should not be "website"."

A few examples for a service business:

  • A job booked over the phone after someone saw your ad: "phone_call".
  • A purchase made at your shop counter: "physical_store".
  • A booking that doesn't fit any of the listed types: "other".

Offline events don't come with browser cookies, so matching depends almost entirely on the customer's email and phone number. Record both in your CRM for every customer if you want these events to count. If your call tracking already records the caller's number, our guide to call tracking for local businesses covers how to keep that data organised.

One limitation to know: Meta says Event Match Quality "is currently available only for web events." For offline events, Meta points advertisers to their Meta representative for guidance on match quality, so you will have less feedback on how well those events match.

Three Ways to Set It Up

How you connect the Conversions API depends on where your website and leads live.

1. A partner integration. Events Manager has a Partner Integrations section (Conversions API Gateway setup guide). If your website builder, form tool or CRM offers a Meta connection, this is usually the least technical route. Check two things before relying on it: whether it sends the same event ID from the Pixel and the server, and which customer details it passes.

2. The Conversions API Gateway. Meta's Gateway runs in your own cloud account and relays events for you. Meta's setup guide walks through creating it in an Amazon Web Services (AWS) account, says the creation process takes about 30 to 40 minutes, notes it can only be set up in one region, and recommends a custom domain because it "may help optimize data routing and may reduce costs." Because it runs in your own AWS account, check AWS pricing for what it creates before you start.

3. A direct integration. A developer sends events from your website's server or your CRM to the Conversions API. This gives you the most control over event IDs, customer data and offline events, and is usually the right choice when leads move through a CRM with several stages. Meta's Business SDK handles hashing, which saves some of the work.

Whichever route you choose, the Pixel stays in place. The Conversions API adds a second source; it doesn't replace the first.

Test It Before You Trust It

Meta gives you two checks in Events Manager.

The Test Events tool. Meta recommends it to confirm that your server events arrive and that deduplication works, by showing which events were processed and which were deduplicated (best practices). Submit a real test lead on your site using your own name, email and phone number. Meta says to use real details like these because test events can be discarded if they don't match a Facebook or Meta account. You should see the Pixel event and the server event, with one marked as deduplicated.

Event Match Quality. This score runs from 1 to 10 and estimates how well your server events' customer information matches Meta accounts. Meta recommends aiming for 6.0 or higher where possible (verifying your setup). If your score is low, the usual fix is sending more of the details you already collect, such as phone number as well as email, and the visitor's IP address and browser details on website events.

Meta also says you should be able to see server events within about 20 minutes of sending them. If nothing shows up after that, check the access token, the Pixel (dataset) ID and the error messages in the integration before changing anything in your ads.

Finally, compare totals. Take one week of leads from your inbox or CRM and compare them with the leads Ads Manager reports for the same week. The two will never match exactly, because not every lead came from Meta, but a lead that you can trace to a Meta ad and that never shows up in Events Manager is worth investigating. If you tag your Meta ad links with UTM parameters, you can see which leads came from Meta in your own analytics as well.

Common Mistakes

  • Different event IDs in the browser and on the server. The single most common cause of doubled lead counts.
  • Different event names. One name in the Pixel and another on the server means two events, not one.
  • Batching events weekly. Anything older than seven days makes the whole request fail.
  • Labelling phone and in-store sales as "website". Use the action_source that matches where the sale happened.
  • Sending events with almost no customer information. Without email or phone, matching suffers and some events are rejected as invalid.
  • Firing the lead event on page load instead of on a real submission. Visitors who only open the contact page would count as leads. Fire it when the form is actually submitted or the thank-you page loads after one.
  • Setting it up once and never looking again. Form changes, new plugins and expired access tokens break events quietly. Add a quick Events Manager check to your website maintenance routine.

Setup Checklist

  1. Confirm the Meta Pixel is on every page and fires a lead event only on a real form submission.
  2. Choose how you will send server events: a partner integration, the Conversions API Gateway or a direct integration.
  3. Generate one event ID per submission and use it in both the Pixel and the server event.
  4. Use the same event name in both.
  5. Send action_source, event_source_url, client_user_agent, event_id and external_id, plus hashed email and phone.
  6. Send server events as they happen, never more than seven days late.
  7. Report phone and in-person sales with the matching action_source, not website.
  8. Submit a test lead with your own details and check it in the Test Events tool.
  9. Check Event Match Quality and aim for 6.0 or higher on web events.
  10. Compare a week of leads in your CRM with Ads Manager, then review monthly.

How Logical Leap Can Help

Logical Leap is a marketing agency in Center Valley, Pennsylvania, in the Lehigh Valley. Our paid ads team plans and manages Google, Meta and TikTok campaigns, including account audits, testing and reporting. Our Salesforce team handles implementation, integrations, automation and reporting dashboards, which covers the CRM side of sending offline events.

To see where your tracking stands first, the free marketing audit checks whether your site has Google Analytics, Google Tag Manager, Google Ads conversion tracking and the Meta Pixel installed. Plans and what's included are on the pricing page.

Level up your business

This is your sign to level up

Stress-free creative support, delivered fast.