Customer Impact

Advertising

Meta Pixel explained: what it is and why you combine it with CAPI

Copy for AI

The Meta Pixel is a JavaScript snippet that tracks what visitors do on your website.

It measures actions, links them to your Facebook and Instagram ads, and builds audiences for remarketing and lookalikes.

The verdict: without the Meta Pixel, Meta has no idea what happens after a click, and you don’t know which euro of ad budget produced a lead. But the Pixel alone isn’t enough anymore.

TL;DR: the Pixel records events (a form filled in, a quote requested, a demo booked) and sends them to your ad account.

That shows which campaigns lead to real conversions.

It also lets Meta point your budget at people likely to convert.

Since browsers started restricting cookies and tracking scripts, the Pixel misses more and more data. So you connect it to the Conversions API (CAPI), which sends conversions server-side.

And in Belgium and the EU, the rule is simple: you only track after valid cookie consent. Skip that and you’re not just flying blind, you’re taking a GDPR risk.

What exactly does the Meta Pixel do?

Meta’s developer documentation calls it “a snippet of JavaScript code that allows you to track visitor activity on your website”.

For B2B advertisers, that boils down to three jobs. Our Meta Pixel wiki entry has the short definition.

1. It measures conversions

Conversions are the actions on your site that genuinely count.

For a web shop that’s a purchase, but you aren’t a web shop. In B2B it’s:

  • a completed contact form
  • a downloaded whitepaper
  • a requested demo or booked call

The Pixel records that action as an event and links it to the ad the visitor came from.

2. It feeds audiences

Everyone who visited your site, or viewed a particular page, can be reached again.

That’s the basis of remarketing, and specifically of retargeting through B2B social ads.

Meta also uses that data for lookalike audiences: people who resemble your best leads. Our guides to custom audiences and lookalike audiences show how to build both.

3. It delivers insight

You see which campaign, ad and audience actually produce leads, not just clicks.

That difference is the whole point.

Clicks are cheap; leads that turn into revenue aren’t.

That’s why it sits under every social ads campaign we run for B2B clients.

How does the Meta Pixel work under the hood?

It’s a JavaScript snippet in the <head> of your site that fires an event on every page view.

Technically, the base code fires a PageView event on each page load.

For specific actions, you add extra events.

Check that it fires

Whether it fires correctly is easy to check with a browser tool such as the Meta Pixel Helper.

Open your site with the extension on, and it lists every event the Pixel sent on that page:

The standard events that matter for B2B

Meta works with a set of standard events. The most useful ones for B2B:

EventWhat Meta says it meansB2B example
Lead”When a sign up is completed”contact form, whitepaper download
CompleteRegistration”When a registration form is completed”webinar sign-up
ViewContent”A visit to a web page you care about”services or pricing page
Contacta person initiates contact by phone, SMS, email or chatclick on your phone number
Schedulea person books an appointmentbooked discovery call

Event descriptions from Meta’s standard events reference, checked 21 October 2026.

Watch out: ViewContent only records that a URL was visited, not what the visitor did there. Don’t optimize a campaign on it as if it were a lead.

Add parameters to weigh leads

You can attach parameters to every event, such as a value or a category.

That way you count not only how many leads come in, but which ones are worth more.

For example, say a request for a large project is worth more to you than a newsletter sign-up. Give the first a higher value parameter, and Meta can tell them apart.

Want the broader picture across Meta, Google Ads and GA4? Our explainer on event tracking is your starting point.

Why there’s only one Pixel now

A short historical note, because it explains the logic.

Meta used to work with two separate pixels: one for your audience and one for conversions. According to Meta, those were merged into a single Pixel that handles both jobs.

That made installation simpler. It also made your site faster, because there’s less code on your page.

Site speed counts toward your findability through the Core Web Vitals. So it wasn’t a detail.

Why is the Pixel alone no longer enough?

Because it runs in the browser, and the browser is exactly where tracking has been locked down.

Here’s the part you don’t read everywhere.

What browsers and ad blockers do

Browsers like Safari and Firefox block third-party cookies by default and restrict tracking scripts. Ad blockers pile on top.

Our explainer on third-party cookies covers which browsers do what.

The result: part of your conversions never reaches Meta.

What that does to your reporting

Your Pixel doesn’t fire. The event doesn’t arrive. The ad looks like it produced no leads.

But it did.

Your ROAS then looks worse than reality, and you optimize on the wrong data.

Why that’s expensive

It’s a serious problem if you want to steer your social media advertising on results.

Judge ads on incomplete data, and you put budget on the wrong campaigns.

In PPC, where every euro is weighed against a lead, that’s expensive.

What is the Conversions API and why do you connect it?

CAPI sends conversions from your server to Meta, out of reach of browser blocking.

Where the Pixel measures from the browser, CAPI sends conversions straight from your server. That server side sits beyond ad blockers and browser cookie limits.

Meta itself recommends advertisers “implement the Conversions API alongside their Meta Pixel” (Meta’s deduplication guide).

How Pixel and CAPI work together

In practice you run both at once, something you can even largely automate.

The Pixel catches what it can catch. CAPI fills in what the browser lets slip:

EXAMPLE Measured conversions Pixel only 68 % browser blocks part Pixel + CAPI 95 % Example figures for illustration

The figures above are an illustration, not a measurement. The direction is what counts: two channels catch more than one.

How Meta avoids double counting

Meta merges the two and deduplicates events that arrive through both channels. Its documentation describes the recommended method:

  1. Send the same event name from the Pixel and from CAPI.
  2. Send the same ID: the Pixel’s eventID must match CAPI’s event_id.
  3. Send both within 48 hours. Meta only deduplicates events received within that window.

When two matching events arrive, Meta generally keeps the first one and discards the rest.

Watch out: skip the shared event ID, and every lead can count twice. Your cost per lead then looks half of what it really is.

Why a small B2B team needs both

For a small B2B team, that isn’t a luxury but a necessity.

You probably have fewer conversions per month than a web shop, so every missed lead distorts your picture harder.

The lower your volume, the more each conversion matters. Without Pixel plus CAPI, you’re partly flying blind and steering budget on gut feel.

Same problem, same fix.

The Pixel may only fire after a visitor actively accepts cookies.

This is the part you must not skip.

The Meta Pixel collects personal data and sets cookies.

Under the GDPR and Belgian privacy law, that’s only allowed after your visitor gives valid consent.

In concrete terms: the Pixel may not fire before someone actively clicks accept in your cookie banner. No consent, no tracking.

Two setups don’t count as valid consent:

  • a pre-ticked box
  • a banner where you can’t refuse

The Belgian Data Protection Authority has already enforced this strictly on several occasions. Our guide to the cookie banner rules in Belgium lists what a compliant banner needs.

Here’s the order a compliant setup follows:

COMPLIANT SETUP Consent first, then Pixel and CAPI 1 Cookie banner nothing fires yet → 2 Visitor accepts active click → 3 Pixel + CAPI same event ID → 4 Meta dedups within 48 hours Visitor refuses? Neither the Pixel nor CAPI sends data for that visitor. Deduplication window from Meta’s developer documentation, checked 21 October 2026.

The same goes for CAPI.

Data leaving server-side doesn’t release you from the consent obligation.

Send conversion data for someone who didn’t consent, and you’re still breaking the rules.

The clean approach is a consent management platform that only lets both Pixel and CAPI fire after consent. Our guide to Consent Mode v2 explains the Google side of the same setup.

Check your own site

Not sure what fires before consent today? Our free cookie scanner lists the cookies your site sets on first load.

In Meta’s Events Manager, you can then compare which events arrive from the browser and which from the server:

Our honest advice

Don’t see consent as an obstacle, but as a given.

You lose some data from people who refuse.

That’s simply the price of working within the law.

Don’t try to get around it. A fine and reputational damage never outweigh a bit of extra data.

Frequently asked questions about the Meta Pixel

Is the Meta Pixel the same as the Facebook Pixel?

Yes. Meta renamed the Facebook Pixel to Meta Pixel when the company became Meta. The technology is the same. It covers both Facebook and Instagram.

Do I still need the Meta Pixel if I use CAPI?

Yes, you use them together. The Pixel captures browser behavior, CAPI fills in what the browser blocks. Meta deduplicates the events so you don’t double count. CAPI alone misses context the browser does see, and the Pixel alone misses data because of cookie restrictions.

Does the Meta Pixel work for B2B if I don’t have a web shop?

Certainly. You just measure leads instead of purchases: completed forms, requested demos, downloaded content. With parameters you can even tell valuable leads from less valuable ones.

Can I simply place the Pixel on my Belgian website?

No. You may only let the Pixel fire after the visitor has given valid cookie consent. Arrange that through a consent management platform, otherwise you breach the GDPR.

How many conversions do I need for it to work?

Meta optimizes best with enough conversion volume. If you have few leads per month, it’s all the more important to measure every conversion, and therefore to run Pixel plus CAPI together.

Ready to steer your ads on real leads?

The Meta Pixel isn’t a technical garnish. It’s the foundation under ads you steer on revenue instead of clicks.

Set up properly, connected to CAPI and inside the consent rules: then you finally see which budget produces real leads.

Running ads on LinkedIn too? The LinkedIn Insight Tag does the same job there.

We help Belgian B2B companies set this up, without noise or guesswork. Want a second pair of eyes first? Our tracking audit checks Pixel, CAPI and consent in one go.

Contact us and we’ll tell you which of your leads Meta is missing today.

Free website scan

Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.

Where should we send your report?

We only use your details for your scan. No spam, unsubscribe anytime.