Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Meta Pixel: What It Is, What It Tracks and the Rules You Must Follow

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:

JobWhat it means in practice
Show ads to the right peopleFind people who visited a specific page or took an action on your site, and people like them
Drive more salesLet Ads Manager's automatic bidding aim at people more likely to buy or sign up
Measure resultsSee 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:

  1. Go to Meta Events Manager and click Connect data, then Web and Connect.
  2. Name your pixel and click Create pixel. This creates a new ID.
  3. Enter your website address and click Check to see whether your platform has a partner integration. If it does, follow its steps.
  4. Choose Get guidance (Meta's recommendation) or Do it yourself.
  5. Pick Conversions API and Meta Pixel or Meta Pixel only.
  6. 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.

TypeHow it's set upWhat it does
AutomaticA toggle in Events Manager, no codeThe pixel looks for recognisable form fields like first name, last name and email
ManualYour developer edits the pixel base codeYou 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.

Work with me

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.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.