How to Set Up the Facebook Pixel Correctly (Step by Step)
If you're planning to run ads on Facebook—or you're already running them badly—you need the Facebook Pixel set up before you spend another pound....
# How to Set Up the Facebook Pixel Correctly (Step by Step)
If you're planning to run ads on Facebook—or you're already running them badly—you need the Facebook Pixel set up before you spend another pound.
The pixel is a small piece of code that sits on your website and watches what people do. It tracks clicks, form submissions, purchases, phone calls, and more. Without it, you're flying blind. You'll have no idea which ads actually made people get in touch with you. You might be burning money on ads that look good in Facebook's reporting but aren't actually bringing in business.
This guide walks you through setting it up properly, checking it's working, and getting it ready for ads that actually perform.
What the Facebook Pixel actually does
Let's skip the jargon. The pixel does three things you need to care about:
It tracks visitor behaviour on your website. Someone clicks your Facebook ad, lands on your site, and the pixel notes what they do. Did they look at your services page? Did they scroll halfway down and leave? Did they fill in an enquiry form? The pixel knows.
It helps Facebook show your ads to the right people. Once the pixel sees that people who visit your site tend to be plumbers in Bristol aged 35–55, Facebook can find more people like that and show them your ads. This gets cheaper and smarter over time.
It measures whether your ads worked. Without it, you're guessing. With it, you see exactly how many people clicked your ad, landed on your site, and did something valuable—like requesting a quote or buying something.
If you run ads without the pixel, you'll waste money. You'll have no proof of what worked, no way to improve, and no way to find similar customers again.
How to install the pixel: Two routes
There are two ways to add the pixel to your site. One is simpler but less flexible. The other takes a bit more setup but is more powerful long-term.
Route 1: Direct installation (simpler)
This works well if you have a straightforward website and aren't using lots of third-party tools.
Step 1: Get your pixel ID
1. Log in to your Facebook Ads Manager (facebook.com/ads/manager) 2. Click the menu icon (three horizontal lines) in the top left 3. Go to *Events Manager* 4. Click *Connect Data Sources* and choose *Web* 5. Select *Facebook Pixel* 6. Give it a name (e.g., "My Business Website Pixel") 7. Enter your website URL 8. Click through and you'll get a Pixel ID—a long number. Copy this and keep it safe.
Step 2: Add the pixel code to your website
You need to put code on every page of your site. The exact steps depend on your platform:
WordPress users: Install the *Facebook for WordPress* plugin. Go to *Plugins* > *Add New*, search for "Facebook," find the official one by Meta, and install it. Then connect it to your Facebook account and it'll automatically add the pixel.
Shopify users: Go to *Settings* > *Sales Channels* > *Facebook and Instagram*. Click it, then *Settings*, then *Pixel*. Paste your pixel ID. Done.
Wix users: In your site editor, go to *Marketing* > *Facebook Pixel*. Paste your pixel ID.
For other platforms or custom websites: Ask your web designer or hosting provider to add the pixel code. Give them your pixel ID and ask them to add the base pixel code to your site header (they'll know what this means).
Route 2: Google Tag Manager (more powerful, slightly more work)
This is worth doing if you want to track custom events (like phone calls or specific form submissions) without asking your web designer every time.
Step 1: Set up Google Tag Manager (if you don't have it)
1. Go to tagmanager.google.com 2. Click *Create Account* 3. Enter your website URL 4. Choose *Web* as the container type 5. You'll get a GTM ID (looks like GTM-XXXXXX). Copy this. 6. Add this ID to your website (same process as the pixel—your web designer can do it, or use your platform's built-in GTM option).
Step 2: Add the Facebook Pixel via GTM
1. In Google Tag Manager, click *Tags* on the left 2. Click *New* 3. Name it "Facebook Pixel" 4. Click the *Tag Configuration* box 5. Choose *Facebook Pixel* 6. Paste your pixel ID (from Events Manager) 7. Under *Triggering*, select *All Pages* 8. Click *Save* 9. Click the blue *Submit* button in the top right to publish it
GTM will take 15–30 minutes to start firing the pixel. Once it does, you can add more sophisticated tracking without touching code again.
Verify the pixel is actually firing
Don't assume it's working. Check it.
Using Facebook's Pixel Helper (easiest method):
1. Download the free Pixel Helper extension for Chrome (search "Facebook Pixel Helper" in the Chrome Web Store) 2. Install it and go to your website 3. Click the Pixel Helper icon in your browser toolbar 4. You should see a green circle and your pixel ID listed 5. If it's red, something's wrong—go back and check your setup
Using Google Tag Manager's preview mode:
1. In GTM, click *Preview* in the top right 2. In the new window that opens, visit your website 3. You should see a GTM panel at the bottom showing which tags fired 4. Click on the Facebook Pixel tag to see the data it collected
If you don't see your pixel firing, double-check:
- You've pasted the correct pixel ID
- The code is on every page of your site (not just the homepage)
- You haven't blocked it with privacy plugins
Set up standard events before you run ads
Standard events are the main actions you care about. Facebook recognises these automatically, which makes reporting clearer and helps the algorithm optimise better.
The events most small businesses need:
- ViewContent: Someone lands on a key page (your services page, a product page)
- Lead: Someone fills in an enquiry form or requests a quote
- Purchase: Someone completes a payment
- Contact: Someone calls you or sends a message
- AddToCart: Someone adds something to a basket
How to set these up:
If you used the WordPress plugin or your platform's built-in pixel setup, basic events are usually tracked automatically.
If you used GTM, you'll need to create tags for each event. This is where it gets technical—and honestly, if you're not comfortable with it, this is a good moment to ask for help (either from your web designer or from an agency like BrightClick).
Simple version for most small businesses: Set up the pixel directly using your platform's option, run the Pixel Helper to confirm it's working, and leave it at that. Most of the standard events will fire automatically.
Why you absolutely need this sorted before running ads
Here's the truth: if you run ads without the pixel, you'll make decisions based on bad data.
You might think an ad is working because Facebook says 200 people clicked it. But if the pixel isn't tracking, you won't know whether those 200 clicks turned into actual enquiries or sales. You'll keep spending on ads that look good in reporting but don't bring in business.
Once the pixel is set up and firing for a week or two, you'll start to see real data. Then, when you run ads, Facebook can use that data to find similar people and show them your ads. This is called lookalike audiences, and it works—but only if the pixel has data to work with.
You also won't be able to retarget (show ads to people who've already visited your site). That's often your cheapest traffic, and you're leaving it on the table without the pixel.
Running ads without the pixel is like fishing without knowing if you've caught anything. You're probably wasting bait.
The next step
Today: pick your installation route (direct is usually fine for small businesses), get your pixel ID, and install it.
Tomorrow: use Pixel Helper to verify it's firing on every page of your site.
Next week: once you've had the pixel running for a few days and have some data, you're ready to start running ads that actually convert.
If you get stuck on the technical side—if your website platform isn't playing ball or GTM feels like learning a new language—that's what people like us at BrightClick are here for. But for most small business owners, following these steps will get you there.
Get this right now, and your future ad spend will actually mean something.
Want to find out where your money is going?
Get a free audit of your ads, website, and online presence. We'll show you exactly what to fix.
Get Your Free Audit