On this page
The short version
- The Pixel reports from the visitor's browser, the Conversions API from a server. Most sites running Meta ads need both.
- Send the same event name and the same event ID from both, so Meta keeps one copy and drops the other.
- Track real business steps only, and test everything in Test Events before launch.
- In Serbia, marketing cookies need consent first. The Pixel can wait for it.
Meta Pixel vs Conversions API: what each one does
The Meta Pixel is a piece of JavaScript on your site. When someone opens a page, sends a form or buys something, the Pixel tells Meta about it from that person's browser. It is easy to install and sees what happens on the page.
The Conversions API (often called CAPI) does the same job from a server. Your site or a separate server sends the event straight to Meta, without the browser in between.
Why you usually need both: the browser is no longer a reliable messenger. Ad blockers and some browsers stop the Pixel, Safari and iOS limit cookies and tracking, and visitors who reject cookies are not tracked by the Pixel at all. Some results also happen away from the page, for example when an inquiry becomes a client in your CRM. The server covers part of these gaps, the Pixel still brings browser data the server can't see, and your ads learn from more real results. What the server does not do is get around consent.
Event deduplication: how Meta counts an event once
If the Pixel and the server both report the same form, Meta receives it twice. To count it once, both copies need:
- the same
event_name, for exampleLeadin both; - the same event ID. In the Conversions API the field is
event_id, in the Pixel the parameter is calledeventID.
The ID has to be unique for each event, such as an order number or a random ID created when the form is sent, and it has to reach both the Pixel and the server. Meta keeps the event that arrived first and drops the matching one, within 48 hours of the first event with that ID. Matching by external_id or fbp also exists, but a shared event ID is the cleaner route. Details are in Meta's guide on handling duplicate Pixel and Conversions API events.
Which Meta standard events to send
Meta has standard events with fixed names, so it knows what each one means. Most businesses need these:
- Lead: someone sent their details and expects you to contact them, usually through an inquiry form.
- Schedule: someone booked an appointment to visit you.
- Purchase: a completed order, always with
valueandcurrency. - CompleteRegistration: a finished sign up.
- Contact: someone reached you by phone, SMS, email or chat.
- ViewContent, AddToCart, InitiateCheckout: the steps before a purchase in an online shop.
PageView comes with the base Pixel code. Full definitions are in Meta's standard events specifications.
If you remember the old rules: you no longer pick and rank 8 events per domain, the Aggregated Event Measurement tab is gone, and domain verification is not needed to set up events. AEM still runs in the background for iOS traffic. See Meta's page on Aggregated Event Measurement.
How to set up the Conversions API
There are four common ways. Which one fits depends on what your site runs on and who looks after it.
- Built in platform integration. Many site and shop platforms connect to Meta directly and send both kinds of events. Usually the simplest start.
- Partner integration. In Events Manager, Meta lists partners that set up the server side for you. Check which events each one sends and who controls the data.
- Conversions API Gateway. Meta's own option that runs on a cloud server. It needs little code, but someone has to look after that server and its hosting.
- Your own server. Your developer sends events from the site's backend or through a server side tag manager. Most control, most work.
Whichever way you choose, first decide which events you track and what counts as a conversion. Then set up the Pixel and the server side so they send the same events with the same IDs. That plan is where our Tracking & Analytics work starts.
The more customer information the server sends, hashed, the easier it is for Meta to match the event to a person. Email and the click ID matter most. Send only what you collected legally.
Cookie consent in Serbia and the Meta Pixel
The Serbian Law on Electronic Communications (Zakon o elektronskim komunikacijama, article 160) allows storing or reading data on a user's device, which is what cookies and the Pixel do, only if the user gave consent after clear information about the purpose and with the option to refuse. The exception is what is technically necessary or what the user explicitly asked for. You can read the text on paragraf.rs.
In practice, analytics and marketing tags wait until the visitor accepts. The Pixel supports this: call fbq('consent', 'revoke') before init, and fbq('consent', 'grant') once the visitor agrees. Meta explains it in the Pixel consent documentation.
Sending from a server does not change the rule. Meta's Business Tools terms ask for the legal right and the needed consents before you send data, and each business is responsible for its own compliance. What your cookie notice should say is a question for your lawyer.
How to test Meta Pixel and Conversions API
Test before launch and after every bigger change on the site.
- Test Events. In Events Manager open Data sources, choose your dataset and open Test events. Use your site in another tab. Web events are logged only while that page is open, stay visible for 24 hours, and show which ones Meta deduplicated. Meta's Test Events guide has the steps.
- Meta Ads Data Advisor. The Chrome and Edge extension, formerly Meta Pixel Helper, shows which Pixel events fire on a page. Turn off ad blockers while you use it. For button clicks, Test Events is more reliable.
- Event Match Quality. Web events sent through the Conversions API get a score from 0 to 10, based on the last 48 hours. A low score usually means you send too little customer information. See About Event Match Quality.
- Our Tracking Checker. The free Tracking Checker shows which tags a page loads and points out duplicates and tags that load before consent.
Also give campaign links clean UTM parameters with our UTM builder, so GA4 and Meta tell the same story.
Common mistakes
- Duplicate events. No shared event ID, or the Pixel installed twice, by a plugin and by hand. The ads then look better than they are.
- Lead on every click. Lead fires when someone clicks a button, not when the form is actually sent. Meta then learns to find people who click, not people who inquire.
- Wrong value. Purchase without value or currency, a value in the wrong currency, or the same fixed value on every order.
- Test code left on. The
test_event_codefield is meant only for testing. Remove it from server events once you are done.
Questions
Is the Meta Pixel enough on its own?
It can be a start, but some events get lost to blockers and browser limits. If Meta ads matter to you, add the Conversions API with deduplication.
Do I need to verify my domain to set up events?
No. Meta removed that requirement together with the limit of 8 events per domain. Verification can still be needed for other things in your business account.
What is a good Event Match Quality score?
Higher is better, on a scale from 0 to 10. Rather than chasing a number, check which customer details you send and add the ones you have legally, starting with email and click ID.
How do I know if events are counted twice?
Open Test Events and send one test form. If two Lead events appear and neither is marked as deduplicated, the event ID is missing or different between the Pixel and the server.
This guide explains general rules and is not tax or legal advice. Rules and platform settings change, so check the linked sources or ask your accountant before you act.