What the pixel does and why guessing is expensive
The Meta Pixel is a small piece of code Meta gives you for free. Once it's on your website, it reports back what visitors do there: which pages they looked at, whether they filled out your contact form, and whether they came from one of your ads. Without it, Ads Manager can only tell you someone clicked. It can't tell you whether that click turned into a quote request or a phone call.
That difference is the whole job. If you're spending money on Facebook or Instagram ads, the pixel is how you find out that one ad produces leads at $20 each while another produces them at $90 each, so you can cut the loser and put the budget behind the winner. It also builds audiences in the background: everyone who visits your site goes into a list you can retarget later, and Meta can build lookalike audiences from the people who actually became leads. You need three things: a pixel created in Events Manager, the code installed on your site, and one event that marks a real lead.
Create the pixel in Events Manager
Go to business.facebook.com and log in with the account that runs your Facebook business Page. If you've never used Meta Business Suite, it walks you through creating a business portfolio first, a few minutes of typing your business name and address.
Click All tools in the left menu, then Events Manager. Click Connect data sources, choose Web, and click Connect. Name the pixel after your business, something like Badger Plumbing Pixel, and enter your website address when it asks. Meta calls pixels datasets on some screens now. Same thing, don't let the name throw you.
Once it's created, open the pixel and copy its ID, the long number shown under the name. That number is what you'll paste into your website platform next.
Install it on your site
Every major website platform has a built-in spot for the pixel, so you almost never touch code. Find yours below:
- Wix: from your site dashboard go to Marketing & SEO > Marketing Integrations, find Facebook Pixel, click Connect, and paste your pixel ID.
- Squarespace: go to Settings > Advanced > External API Keys (on newer accounts it's under Settings > Developer Tools), paste the pixel ID into the Facebook Pixel field, and save. Squarespace puts this feature on its Business plan and up.
- WordPress: go to Plugins > Add New and search for Meta pixel. Install the official Meta plugin, connect your Facebook account, and it places the code on every page for you. If you'd rather not add a plugin, a header-code plugin like WPCode lets you paste the base code from Events Manager into the site header.
- GoDaddy Websites + Marketing: open the website editor, click Settings, then Analytics and Tracking, and paste the pixel ID into the Facebook field.
- Anything else, or someone else runs your site: in Events Manager open your pixel, choose to install the code manually, and copy the base code. It goes just above the closing </head> tag on every page. Email it to your web person; pasting it in is a ten minute job.
You only do this once. On all of these platforms the pixel loads on every page automatically, including pages you add later.
Prove it's firing before you trust it
Don't assume the install worked. Two free checks take five minutes.
First, install the Meta Pixel Helper extension from the Chrome Web Store (it's made by Meta and costs nothing). Visit your own website and the extension icon should light up, showing your pixel with a PageView event. Click through to your services page and contact page and confirm it fires on each one.
Second, check from Meta's side. In Events Manager, open your pixel and click the Test Events tab. Type in your website address and click Open Website. Browse around in the tab that opens. Each page you visit should appear in the Test Events list within a few seconds.
Seeing nothing? The usual causes are a typo in the pixel ID, code pasted on only one page, or an ad blocker in your own browser eating the pixel. Retry in a private window with extensions turned off before you tear anything apart.
Track leads, not just visits
Out of the box the pixel only records PageView, which tells you someone showed up. You want Meta to know when someone becomes a lead, because that's the number your ads should be judged on. There are two no-code ways to do it.
If your contact form sends people to a thank-you page after they submit (most builders do this, or let you turn it on in the form settings), use a custom conversion. In Events Manager, click Custom Conversions in the left menu, then Create Custom Conversion. Name it Quote Request, set the rule to URL contains /thank-you (or whatever your page is called), and save. Now every visit to that page counts as a lead, and no one lands there without submitting the form.
If your form has no thank-you page, use the Event Setup Tool instead. In Events Manager open your pixel, find Event Setup, and click Open Event Setup Tool. Enter your website address and Meta opens your site with a point-and-click overlay. Click your form's submit button and tag it as Lead. Click your phone number button and tag it as Contact. No code, and it saves straight back to your pixel.
Pick one event name for quote requests and stick with it. Your ads will optimize toward whichever event you choose, so a consistent Lead event beats a pile of half-configured ones.
Point your ads at the Lead event and read the results
Now make your campaigns use it. In Ads Manager, when you create a campaign, choose the Leads objective. At the ad set level, set the conversion location to Website, pick your pixel, and choose Lead as the conversion event. Meta will now show your ads to people it predicts will fill out the form, not just people who click things.
In the Ads Manager columns, Results is your lead count and Cost Per Result is what each lead cost you. Judge every ad by cost per lead, never by clicks, reach, or likes. When two ads have each collected enough leads to compare (a handful each, not one or two), pause the expensive one and move its budget to the cheaper one. That loop, run every week or two, is the entire discipline of making ads pay.