Quick answer: To set up the Meta Pixel, open Events Manager, connect a new Web data source, choose Meta Pixel, then add the base code just above the closing </head> tag of your website (or use a WordPress or Shopify integration). Test it with Test events, then set up a Lead or Purchase event.
The Meta Pixel is a small piece of code that you add to your website. It tells your Meta ad account what people do on your website after they see or click your ad, for example a page view, a lead or a purchase.
Why you need the Meta Pixel
- Measure results. Without the pixel, Meta can count clicks but not leads or sales on your website.
- Better targeting. The pixel sends signals about your converted customers. The algorithm uses these signals to look for similar people who have a higher chance of converting.
- Retargeting. You can show ads again to people who visited your website but did not buy.
Part 1: Create the pixel
- Open Meta Business Suite and click All tools.
- Open Events Manager.
- Click Connect data sources and select Web.
- Select Meta Pixel and click Connect.
- Add your pixel name.
- Enter your website URL to check for easy setup options (for example a WordPress or Shopify integration).
- Click Continue.
Part 2: Add the pixel code manually
- Go to Events Manager.
- Click the Data sources icon on the left side of the page. In newer accounts this may be called Datasets.
- Select the pixel you want to set up.
- Click Continue pixel setup.
- Select Meta Pixel and click Connect.
- Select Install code manually.
- Copy the pixel base code.
- Find the header of your website, or the header template in your CMS.
- Paste the base code at the bottom of the header section, just above the closing
</head>tag. - Click Continue.
On WordPress, you can also add the code with a header plugin, or use Meta’s official integration so you do not need to edit theme files.
This is where the base code goes in your website header:
<head>
<title>Your website</title>
...other header code...
<!-- Meta Pixel Code -->
<script> ...code copied from Events Manager... </script>
<!-- End Meta Pixel Code -->
</head>
Part 3: Check that it works
- In Events Manager, open the Test events tab, enter your website URL and visit your site. You should see a PageView event.
- You can also install the Meta Pixel Helper browser extension to check the pixel on any page.
Part 4: Set up the events you care about
A page view is not a business result. Set up events such as Lead (form submitted) or Purchase. Then choose that event as the conversion in your campaign. When you start, it is enough to track one main event well.

Next, read Step by step process to set up Facebook ads and How to link Meta ads cost data to Google Analytics 4.
Meta changes menu names often. If a button is not the same, search for “Meta Pixel” in the Meta Business Help Centre.
Try it yourself
- Create a pixel in Events Manager and name it after your website.
- Add the base code to your website header (or use the WordPress integration).
- Use Test events to confirm that PageView fires on your home page.
- Set up one Lead event on your form thank-you page and test it.
- In your next campaign, choose that Lead event as the conversion and check results after 3 days.
Common mistakes to avoid
- Pasting the code in the body instead of the header.
- Installing the pixel twice (plugin and manual code), which double-counts events.
- Tracking only PageView and expecting Meta to find leads.
- Not testing the pixel before spending money on ads.
Frequently asked questions
Is the Facebook Pixel the same as the Meta Pixel?
Yes. Facebook Pixel was renamed Meta Pixel. It works the same way.
What is the Conversions API?
The Conversions API sends events from your server to Meta. Many advertisers use it together with the pixel so fewer events are lost to browser blocking.
How do I know my pixel is working?
Use the Test events tab in Events Manager or the Meta Pixel Helper browser extension and check that PageView fires.
Sources: Meta Business Help Centre: Set up and install the Meta Pixel
