A magnifying glass held over a trail of footprints, one print enlarged under the lens
Trusted third parties4 min read

Add the Facebook (Meta) pixel so I can tell whether my ads are working

The Meta Pixel is the piece of Facebook and Instagram advertising that tells you whether your ads actually brought anyone - who arrived, what they did, what it cost you per sale. You can put it on your bernard site in one ask.

The prompt

“Add the Meta Pixel to my site. My pixel id is [paste the number from Meta Events Manager].”

Signed in, Get my prompt fills in your site for you. Otherwise press Copy and fill in the [bracketed] parts. First time? Connect your AI to bernard once: Use your own AI (opens in a new tab).

Adding it

  1. Get your number from Meta Events Manager. It sits under your pixel (Meta now also calls it a dataset) and it’s all digits, something like 123456789012345. Copy it exactly - no letters, no spaces.
  2. Ask for it by name and paste the number. For example: “Add the Meta Pixel to my site, my pixel id is 123456789012345.”
  3. It’s on within about a minute, on every page, including pages you create next month. There’s nothing to publish and nothing to approve, because it isn’t a change to any page - see Add my own analytics, Facebook pixel or chat tool to my site for why tracking tools work differently from everything else your AI does.

If the number isn’t the right shape you’ll be told straight away, with where to look again - rather than a pixel that quietly never fires.

The part worth reading before you judge your ad results

Advertising tracking needs your visitors’ permission, and bernard asks for it properly. That has two consequences, and both are normal.

Meta will report fewer people than really visited. The pixel only runs for visitors who agree to advertising cookies. Everyone who declines is invisible to Meta - they still browsed, still bought, still counted in your own takings, but Meta never saw them. So your cost-per-sale in Meta’s dashboard will look worse than it truly is. Every honest site is in this position; treat Meta’s figures as a floor, not a full count.

Your ordinary visitor counts may step down too. Once visitors are being asked about cookies, your visit counting waits for their answer as well, not just the advertising pixel. If your site wasn’t already asking, your analytics will show a drop the day the pixel goes on. Your traffic hasn’t fallen - the share you’re permitted to count has. Somebody can also say yes to visit counting and no to advertising, and that is honoured exactly.

Neither of these is a fault to report. They’re what asking permission looks like, and the alternative - counting people who said no - isn’t available.

What the permission covers

Your visitors are asked about the tracking bernard puts on for you, and nothing runs until they choose. Tools that came across from your old site when you moved are a separate matter still being worked on, so if your site arrived carrying its own tracking, ask your AI what’s still running on it before you rely on the banner covering everything. Add my own analytics, Facebook pixel or chat tool to my site lists what bernard can install for you today.

Exactly what the pixel sends

These are the facts of the code bernard puts on your site, so you can answer a customer or a regulator without reading the page source:

  • Nothing before consent. The pixel code is held inert on the page and only starts for a visitor who allows advertising cookies. On a site with no cookie banner set up, bernard does not put the pixel on at all.
  • One event: a page view. Each page a consenting visitor opens sends one page view to Meta. Bernard sends no other events - no purchase, lead or sign-up events, and no form contents.
  • No visitor details from bernard. Bernard does not pass Meta a name, email address or phone number.
  • Automatic advanced matching is not switched off by bernard. It follows the setting on your pixel in Meta Events Manager, where Meta often has it on by default. When it is on, Meta’s own script can look for details such as an email address that a visitor types into a form on your site. To stop that, switch off automatic advanced matching for your pixel in Events Manager.
  • No backup image tag. Meta’s standard code includes a small image that fires even when scripts are blocked. Bernard leaves it out, because an image cannot wait for permission.

Changing or removing it

Running ads from a different account? Ask again with the new number and it replaces the old one. Finished advertising? Ask to remove the pixel and it comes off within about a minute - your site carries on exactly as before, and if the pixel was the only thing needing advertising permission, your visitors stop being asked about it.

Google Ads and Google Tag Manager can go on the same way - see Add my own analytics, Facebook pixel or chat tool to my site. TikTok and LinkedIn tracking aren’t offered yet. That’s a matter of checking each one properly rather than a rule about advertising, and they’ll be added as each is verified.

For what your visitors actually see and choose, read How does the cookie banner on my site work?.

Questions people ask

How do I add the Facebook pixel without touching code?
Tell your AI you want the Meta Pixel and give it your pixel number. It goes on every page of your site, including pages you add later. There’s no code to paste and nothing to approve or publish for this one - it’s switched on separately from your pages, so it starts working within about a minute.
Where do I find my Meta Pixel id?
In Meta Events Manager, under your pixel or dataset. It’s a long string of digits and nothing else. If what you paste isn’t that shape, you’ll be told before anything goes on, rather than something silently not working.
Why does Meta show fewer conversions than I actually had?
Because the pixel only runs for visitors who agree to advertising cookies, and some say no. Meta can only count the ones who agreed, so its numbers are an undercount of real traffic. Nothing is broken - every site that asks visitors properly is in the same position, and the gap is simply the people who declined.
Will this change my Google Analytics numbers too?
It can. Advertising tracking means your visitors get asked about cookies, and once they’re being asked, your visit counting waits for their answer as well. If your site wasn’t already asking, expect your visitor counts to step down to the people who say yes. The traffic hasn’t fallen - only the share you’re allowed to count.
Which events does bernard’s Meta Pixel send?
One: a page view, each time a visitor who agreed to advertising cookies opens a page. Bernard sends nothing else - no purchase, no lead, no form contents, no email address. There is also no backup image tag, so nothing reaches Meta from a visitor who has not agreed.
Does bernard switch off Meta’s automatic advanced matching?
No. Bernard’s pixel does not change that setting, so it is whatever your pixel is set to in Meta Events Manager, where Meta often has it on by default. If you want it off, switch off automatic advanced matching in Events Manager, under your pixel’s settings. Bernard itself never passes Meta any visitor’s name, email or phone number.
Can I take it off again?
Yes, any time. Ask to remove it and it’s gone within about a minute. Ask again later with a different number and the new one replaces the old - no need to remove it first.

Next