The Meta pixel is a piece of JavaScript code on your website that sends Meta information about what visitors do, such as viewing a page, submitting a form or making a purchase.
How the Meta pixel works
The Meta pixel, formerly the Facebook pixel, is JavaScript code you place on your website. When someone visits, the pixel sends Meta information about an event from their browser, such as a page view (PageView), a form submission (Lead) or a purchase (Purchase). Meta matches these events to Facebook and Instagram accounts, as far as the user's consent and settings allow.
You see the events in Events Manager. Besides standard events, you can create your own, such as a click on your phone number, and custom conversions based on the page URL, such as a visit to your thank-you page.
What the pixel is for
Without the pixel, a campaign that sends people to your website does not know which clicks ended in an inquiry. You cannot optimize it for website leads then, only for traffic, and the system looks for people who click rather than people who leave their details.
- Measurement: how many leads or purchases a specific ad brought in.
- Optimization: the system looks for people similar to those who triggered the event.
- Remarketing: audiences of people who visited your website or a chosen page.
- Lookalike audiences based on people who have already submitted a form or bought.
Limits of the pixel
The pixel runs in the browser, so it does not always reach Meta. Ad blockers, browser privacy restrictions (for example in Safari) and missing cookie consent mean some events get lost. Meta then sees fewer conversions than actually happened and optimizes the campaign less well.
That is why Meta recommends combining the pixel with the Conversions API, which sends the same events from a server. So that one conversion is not counted twice, both sources pass the same event name and the same identifier (event_id), and Meta removes the duplicates.
It is best to send the Lead event after the form is actually submitted, not on a simple button click. That way the system learns from real inquiries.
The Meta pixel at Gen Z Agency
Tracking in our campaigns is built on Google Tag Manager, GA4, the Meta pixel and the Conversions API. We install the pixel through Google Tag Manager together with the other tags, and in Events Manager we check that events arrive and are not counted twice.
Read more about the setup on the GA4 and GTM analytics page. Book a free 30-min call and we will check whether the pixel on your website counts leads correctly.
Example: 50 people submitted the form on your website, but Meta shows 35 leads. The missing events are often caused by ad blockers and missing consent. The Conversions API lets you recover some of them.
Frequently asked questions
01Do I need the Meta pixel for instant forms?
Not for collecting the leads themselves, because the form runs inside Meta's app and inquiries are counted without a website. The pixel is useful when you send traffic to your website or want to run remarketing to its visitors.
02Does the Meta pixel require cookie consent?
In the EU, yes. The pixel uses cookies for advertising purposes, so it should only fire after the visitor consents. A consent banner connected to Google Tag Manager helps with this.
03How do I check whether the pixel works?
In Meta Events Manager, in the test events tab, or with the Meta Pixel Helper extension for Chrome. Visit your website, submit a test form and check whether the event shows up.




