The Meta Pixel is a piece of code you add to your website so Meta can record what people do there after seeing your ads, such as adding something to a basket or buying. Those actions, called events, appear in Events Manager, where you can use them to measure results, build custom audiences and retarget visitors. It used to be called the Facebook pixel.
The rule most small businesses don't know is the one that can get you into trouble. Meta's Business Help Center says you must make sure no prohibited information reaches Meta through the pixel, and it names health, financial and children's data as examples. That includes event names, parameters and URLs. A page address like a clinic booking confirmation can leak exactly that.
What the Meta Pixel does for your ads
Meta lists three jobs:
| Job | What it means in practice |
|---|---|
| Show ads to the right people | Find people who visited a specific page or took an action on your site, and people like them |
| Drive more sales | Let Ads Manager's automatic bidding aim at people more likely to buy or sign up |
| Measure results | See what people did on your website after seeing an ad |
Once the pixel is installed, every action it logs shows up in the pixel's dataset in Events Manager. From there, Ads Manager can turn those events into custom audiences or retargeting.
How the pixel works: events
An event is an action on your site, like viewing a page, adding to cart or completing a purchase. Meta splits them into the events you set up yourself and automatic events.
Automatic events are actions the pixel picks up without extra code, using visitor activity and information about the page to understand what happened. Meta says they let you create ads with the sales, leads or engagement objectives, build custom audiences and lookalike audiences, and that they're de-duplicated against any events you set up manually. Meta recommends leaving them on.
How to install the Meta Pixel
Meta describes setup as two steps: create the pixel and add its base code to your site, then set up the events you care about. In Events Manager:
- Go to Meta Events Manager and click Connect data, then Web and Connect.
- Name your pixel and click Create pixel. This creates a new ID.
- Enter your website address and click Check to see whether your platform has a partner integration. If it does, follow its steps.
- Choose Get guidance (Meta's recommendation) or Do it yourself.
- Pick Conversions API and Meta Pixel or Meta Pixel only.
- For pixel only, choose Install code manually or Check for partner, or email the instructions to your developer.
You'll need a business website or app, and someone who can edit its code or tag manager if you install manually. For the full walkthrough with event choices and testing, see my guide on setting up conversion tracking for Meta ads.
Advanced matching: more conversions credited to your ads
Advanced matching sends hashed customer information, such as an email address typed into a form, along with your pixel events. Meta says the information is hashed on the website before it's sent. The aim is to match more of your website conversions to people on Meta. Meta lists three benefits: more attributed conversions, bigger custom audiences and a lower cost per conversion.
| Type | How it's set up | What it does |
|---|---|---|
| Automatic | A toggle in Events Manager, no code | The pixel looks for recognisable form fields like first name, last name and email |
| Manual | Your developer edits the pixel base code | You pass visitor input as parameters yourself; the pixel hashes it unless you use an image pixel |
Meta notes that businesses in restricted verticals, banking being one example it gives, may not be able to use automatic advanced matching. If Events Manager says it's unavailable, that's the likely reason.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
The rules Meta sets for using the pixel
- Don't share prohibited information. That covers health, financial and children's data, and anything else Meta's terms, policies or the law don't allow. Review event names, parameters, URLs and optional features regularly.
- Don't put your pixel on websites you don't own without permission. Meta's Business Tools Terms forbid it.
- If you're unsure, ask a lawyer. Meta's own help page says to consult legal counsel.
Pixel and Conversions API: why Meta wants both
During setup, Meta offers the Conversions API alongside the pixel. The pixel works in the browser, so browser settings, connection problems and ad blockers can stop events reaching Meta. The Conversions API sends events from your server instead. Meta recommends using both, and then de-duplicating, so the same purchase sent by both routes is counted once. For that to work, the event name must match and both events must carry the same event ID.
My advice
Install the pixel before you spend anything on Meta ads, because without it you're guessing which ads sell. If you're new to all this, my Facebook ads guide for business owners covers the basics first. Use a partner integration if your website platform has one, leave automatic events on, and switch on automatic advanced matching if it's available to you. Then do the boring check most people skip: look at the URLs and event names your pixel sends and make sure none of them reveal health or financial details about your customers.
Frequently asked questions
What is the Meta Pixel?
It's a piece of code you add to your website that records the actions people take there, such as purchases, so you can measure Meta ads, build audiences and retarget visitors.
Is the Meta Pixel the same as the Facebook pixel?
Yes. It's the same tool under Meta's name. Some older Meta help pages still say Facebook pixel.
Do I need a developer to install the Meta Pixel?
Not always. Events Manager checks whether your website platform has a partner integration. Manual installs need someone who can edit your site's code or tag manager.
What data can't I send through the Meta Pixel?
Meta says no prohibited information, including health, financial or children's data, in event names, parameters, URLs or optional features.
Should I use the Conversions API as well?
Meta recommends it. The Conversions API sends events from your server, which is less affected by browser limits and ad blockers, and matching event IDs stop double counting.
