On this page
- What is the Meta Pixel and why does it matter?
- What do you need before you start?
- How to install Meta Pixel: step by step
- Which standard events should you track?
- Meta Pixel on WordPress, Shopify and Next.js sites
- What is the Conversions API and do you need it?
- How do you check your pixel is working?
- Meta Pixel not working? Common problems and fixes
- Tips for cleaner data and privacy
The Meta Pixel is a small piece of code from Meta that you add to your website so Facebook and Instagram ads can see what visitors do after they click. To set up Meta Pixel, create it in Events Manager, add the base code to every page, add events for enquiries or sales, then test it.
Without it, Ads Manager only knows who clicked. With the Meta Pixel in place, it can learn who actually filled your form, tapped WhatsApp or bought something, and show your ads to more people like them. I set it up before any campaign I run, because ads without tracking are mostly guesswork.
What is the Meta Pixel and why does it matter?
The Meta Pixel is a tracking code that sends actions on your website back to Meta. You may still hear it called the Facebook Pixel; it is the same tool with a newer name.
It helps your ads in three practical ways:
- Measure results: see how many enquiries or sales came from each ad, not just clicks.
- Better delivery: when your campaign goal is leads or sales, Meta uses this data to find people more likely to take that action.
- Retargeting: show ads to people who visited your site but did not contact you.
If you are new to running ads, my Facebook and Instagram ads guide explains campaigns, audiences and budgets first.
What do you need before you start?
- A Meta business portfolio (Business Manager) with your ad account in it
- Admin access to your website, or a developer who can add code
- A clear idea of the one action that matters most: a form, a call, a WhatsApp tap or a purchase
- A thank-you page or clear confirmation after a form is sent, which makes tracking much easier
How to install Meta Pixel: step by step
- Open Events Manager from Meta Business Suite or Ads Manager.
- Choose Connect data, pick Web, and give it a clear name, such as your business name. Meta may call this a dataset; the Meta Pixel sits inside it.
- Enter your website address and pick how to install it: a partner integration or adding the code manually.
- If you add the code yourself, copy the base code and paste it between the head tags on every page. Many website builders have a box for header code.
- Publish your site, open it in a browser, and check that a PageView shows up in Events Manager.
- Add events for the actions that matter (the next section explains which).
- Link the Meta Pixel to your ad account so campaigns can use it.
Meta's own Meta Pixel setup help page walks through the same flow and lists the install options your account offers.
Which standard events should you track?
Track the few standard events that match how customers contact or buy from you. Standard events are names Meta already understands, so Ads Manager can optimise for them. The base code alone only records page views.
The most useful ones for service businesses and growing brands:
- Lead: someone sends your enquiry form
- Contact: someone taps call, email or WhatsApp
- Schedule: someone books an appointment
- ViewContent: someone opens a key service or product page
- AddToCart, InitiateCheckout and Purchase: for online stores
Event names are case-sensitive, so "Lead" works and "lead" does not count as the standard event. If you cannot edit code, the Event Setup Tool in Events Manager lets you mark buttons and page visits as events without a developer, though code is usually more reliable.
Meta Pixel on WordPress, Shopify and Next.js sites
The best install method depends on how your website is built.
- Meta Pixel on WordPress: use Meta's official plugin or a trusted header-code plugin, then check events with the helper tool. Avoid adding the pixel twice through two plugins.
- Shopify and other store builders: connect through the built-in Facebook and Instagram channel, which sets up the Meta Pixel and purchase events for you.
- Custom or Next.js websites: a developer adds the base code once in the layout and fires events on form success, not on button click, so you only count real enquiries.
- Google Tag Manager: add the base code as a custom HTML tag on all pages, then add events as separate tags.
If you are choosing a platform, my comparison of Next.js or WordPress covers speed, cost and upkeep.
What is the Conversions API and do you need it?
The Conversions API sends the same events from your website server or platform directly to Meta, instead of only from the visitor's browser. Browser tracking can miss actions when people use ad blockers or strict privacy settings, so the server copy fills some of those gaps.
Meta recommends using the Meta Pixel and the Conversions API together. Many platforms, such as Shopify, offer it as a simple toggle. On a custom site it needs a developer, and both copies should share an event ID so Meta does not count the same lead twice. For most businesses starting out, a clean Meta Pixel with one good Lead event comes first; add the server side once ads are running regularly.
How do you check your pixel is working?
Use two checks. First, install the free Meta Pixel Helper extension for Chrome, open your site and see which events fire on each page. Meta explains it in about the Meta Pixel Helper.
Second, open Test events in Events Manager, enter your website address and do the real action yourself: send a test enquiry, tap WhatsApp, finish a test order. Each action should appear within a minute or two.
Then a few days after launch, compare the leads in Ads Manager with the enquiries you actually received. They will never match exactly, but a big gap means something needs fixing.
Meta Pixel not working? Common problems and fixes
Most problems come from a few simple causes:
- No events at all: the base code is missing, pasted on only some pages, or blocked by a cookie banner that never loads it.
- Events counted twice: the pixel was added by two plugins, or both by a plugin and by hand.
- Lead fires on every click: the event is tied to the button, not to a successful form.
- Wrong pixel: an old agency or a previous developer's code is still on the site.
- Events show but ads ignore them: the pixel is not linked to the ad account, or the campaign is set to the wrong goal.
If your site already gets traffic but few people contact you, tracking will show where they drop off. My guide on website visitors but no enquiries covers the fixes on the page itself.
Tips for cleaner data and privacy
- Keep one main Meta Pixel per website, so reports stay simple.
- Verify your domain in your business settings; it helps you control who can use your domain in ads.
- Mention Meta tracking and cookies in your privacy policy, and respect visitors' consent choices.
- Never send personal details, such as names, phone numbers or health information, in event names or page URLs.
- Tag your ad links with UTM parameters as well, so Google Analytics shows the same traffic. My free UTM builder makes those links in seconds.
Tracking is the part of ads most businesses skip, and it decides whether your budget learns or leaks. If you want it done properly, my performance marketing service sets up the Meta Pixel, events and reports with your campaigns, and my website service builds sites with tracking ready from day one. Or start with a free audit and I will check what your current setup is missing.
Questions people ask
Is the Meta Pixel free?
Yes. Creating and using the Meta Pixel costs nothing. You only pay for the ads you run. The setup may cost developer time if your website needs the code added by hand, but many builders and plugins make it a few-minute job.
Is the Facebook Pixel the same as the Meta Pixel?
Yes. Facebook Pixel is the old name. After Facebook became Meta, the tool was renamed Meta Pixel. It works across Facebook and Instagram ads, and old guides that mention the Facebook Pixel still describe the same setup.
Can I use one Meta Pixel on two websites?
You can, but separate websites are usually easier to manage with separate pixels. One pixel per website keeps reports clear and makes it obvious which site brought each enquiry. Different brands should almost always have their own.
How long does the Meta Pixel take to show data?
Page views and test events usually appear in Events Manager within minutes. Ads need more time: campaigns learn from events over days, so judge results after a week or two of steady spending, not on the first day.
Do I need the Meta Pixel if my ads go to WhatsApp?
Not for click-to-WhatsApp ads alone, because those chats are counted inside Ads Manager. You still want it if people visit your website, so you can retarget them and measure any form or WhatsApp button on the site.


