Meta Pixel: What It Is, How to Set It Up and the Mistakes I See Most

The Meta Pixel is a small piece of code on your website that tells Facebook and Instagram what people do after they see your ads: view a product, add to cart, buy. Meta uses it to find more buyers, and you use it to see which ads make money. When it isn’t connected properly, both of you are working with the wrong numbers.

By Youssef Nasraoui, Facebook & Instagram Ads specialist in Dublin

What the Meta Pixel does

Without the pixel, Meta knows who saw and clicked your ad. That’s it. It has no idea who bought.

With the pixel, your website reports back. Someone viewed this product. Someone added it to the cart. Someone started checkout. Someone paid €60. These are called “events”.

That matters for two reasons:

  • Meta learns who buys. If you ask Meta for sales, it uses these events to find more people like your buyers.
  • You see what’s working. Your reports show which ads brought sales, and what each sale cost you.

The mistakes I see most

When I review ad accounts, the pixel is often there but not connected properly. And a badly connected pixel is worse than you’d think, because it gives you wrong information that looks right.

The checkout is where it goes wrong most:

  • The purchase doesn’t send the right information. The sale shows up with the wrong value, or not at all. Meta thinks your ads aren’t selling, so it optimises in the wrong direction.
  • The purchase is counted twice. One sale shows up as two in Meta. Your results look better than they are, and you might put more money behind ads that don’t deserve it. A common cause is the pixel being added twice, for example by an app and again by hand in the website code.

Either way, every decision you make from those reports is built on bad numbers.

A 5-minute check: pick last week. Count the orders in your shop. Then count the purchases Meta reports for the same days. They’ll never match perfectly, because not every sale comes from an ad and some people block tracking. But if Meta shows more purchases than you actually had, or the values are way off, something is wrong.

How to set it up on Shopify

  1. Install Meta’s own Facebook & Instagram app from the Shopify App Store, or open it under Sales channels if it’s already there.
  2. Connect your Meta business account, ad account and pixel.
  3. Set data sharing to Enhanced or Maximum. That turns on the Conversions API, which sends purchases from Shopify’s servers to Meta’s, so fewer sales get lost.
  4. Check there’s no second pixel added by hand in your theme code or by another app. That’s where double counting comes from.

I work with Shopify a lot. It’s what I used for the HelixVital store.

How to set it up on WordPress with WooCommerce

  1. Install Meta’s official plugin, Meta for WooCommerce.
  2. Connect it to your Meta business account and choose your pixel.
  3. Again, make sure the pixel isn’t also added by your theme, another plugin or Google Tag Manager.

How to check it’s working

  • In Meta’s Events Manager, use Test events and place a test order. You should see each step once, with the right value.
  • Compare Meta’s purchases with your real orders every few weeks, like the 5-minute check above.
  • If something changes on your website (new theme, new checkout, new app), check again. That’s often when tracking breaks.

Why this matters before you spend more

If the pixel is wrong, so is everything built on top of it: your cost per sale, your return on ad spend and Meta’s own targeting. There’s no point testing and scaling ads you can’t measure. I explain that testing side in why your Facebook ads aren’t working, and what the ads themselves cost in how much Facebook & Instagram ads cost in Ireland.

If you’d rather someone set it up properly and run the ads too, see my Facebook & Instagram Ads management in Dublin.

Meta Pixel FAQs

What is the Meta Pixel?

The Meta Pixel is a small piece of code on your website that tells Meta what visitors do after they see or click your Facebook and Instagram ads, such as viewing a product, adding to cart or buying.

Why does Meta show more purchases than my shop?

One common reason is that the purchase is being sent twice, for example because the pixel was added by an app and again by hand in the website code. Compare Meta’s purchases with your real orders for the same days to check.

Do I need the Conversions API as well as the pixel?

It helps. The Conversions API sends events from your website’s server instead of the visitor’s browser, so fewer sales go missing. On Shopify it’s part of Meta’s Facebook & Instagram app when data sharing is set to Enhanced or Maximum.

Not sure your ads are telling the truth?

I’ll review your Facebook & Instagram Ads account for free and tell you what I’d fix first. A recorded video or a 20-minute call, whichever you prefer.

WhatsApp me