Add the Meta pixel and check it fires

Make a pixel (dataset) in Events Manager, put it on your site or connect your store, and check a test event arrives

On this page

The Meta pixel (once called the Facebook pixel) is a short piece of code on your website that tells Meta when someone visits a page or buys. You make it in Events Manager, put it on every page, connect it to your ad account and check a test visit arrives. Meta now calls a pixel a dataset in some screens; the ID is the same. Why it comes before spending is in How to tell if your ads are working.

Before you start

  • A Meta business portfolio and an ad account in it. See Create a Meta ad account.
  • Access to your website's code, a tag manager, or your store's admin.
  • Full control of the business portfolio, to connect the pixel to the ad account.

Make the pixel

  1. Open Meta Events Manager.
  2. Select Connect data.
  3. Choose Web, then select Connect.
  4. Name the pixel and select Create pixel.
  5. Enter your website address and select Check.
  6. Select Next. If Meta offers a partner integration for your platform, follow it.
  7. Choose Get guidance to follow Meta's own setup steps, or Do it yourself.
  8. With Do it yourself, choose Meta Pixel only, or Conversions API and Meta Pixel (see below), and select Next.
  9. For Meta Pixel only, choose Install code manually, Check for partner, or Email instructions to send the code to whoever runs your site.

If a label differs, follow Meta's setup page under Sources.

Put it on your website

  • On your own site, paste the base code between the opening and closing <head> tags of every page, usually in the site's shared header, and only once per page. It sends a PageView by itself.
  • On Shopify, Meta's route is the Facebook and Instagram sales channel. Add it from Sales channels, select Login with Facebook and follow the prompts for the pixel. Do not also add the pixel in your theme, another app or Google Tag Manager: Meta says that can send purchases twice.

Event names are case sensitive. Purchase is Meta's standard event; purchase creates a separate custom event.

Send the Lead event for leads

If your ads should bring sign-ups or enquiries, the pixel must send Meta's standard Lead event when someone sends your form. Do this before you run a Leads campaign: Mora's Meta Leads campaigns count this event, and without it Meta has no lead to report. Without code, Meta's event setup tool can add it:

  1. In Events Manager, select Datasets and your pixel.
  2. Open the Settings tab and, under Event setup, select Open event setup tool.
  3. Enter your website address and select Open website.
  4. Go to your form's thank-you page and select Track a URL, or select Track new button on the form's send button.
  5. Choose Lead as the event and select Finish setup.

The tool needs the pixel already on the site, and a button event applies to every button with the same text. A thank-you page is safer, because it loads only after the form is sent. Your developer can also add the Lead event in code.

Connect the pixel to your ad account

Mora reads only the pixels connected to the ad accounts you ticked in Mora. The ad account must already be in your business portfolio.

  1. In Meta Business Suite, open Settings, then Data sources, then Datasets.
  2. Select Add assets.
  3. Select your ad account and select Add.

Check it fires

  1. Install Meta Ads Data Advisor (formerly Meta Pixel Helper) in Chrome or Edge, and turn off your ad blocker for your site.
  2. Open your site and select the extension. It should find your pixel and show PageView.
  3. For a closer look, open Events Manager, select Data sources, select the pixel and open Test events. Enter your site address and select Open website, then make a test purchase and watch it arrive.
  4. For leads, do the same and send your form once. Lead should arrive in Test events. Activity shows only while the Test events page stays open.

Mora's Check button in Set up lead tracking on Insights looks for the pixel ID in your page source. It cannot see the Lead event fire, so this test is the proof (Why Leads says Not tracked yet in Insights).

Once it sends a PageView, the pixel shows Active. Data can take 30 minutes or more to appear.

The Conversions API

The Conversions API sends events from your server or store, so ad blockers affect it less than the pixel. Meta recommends using both. On Shopify, Meta says to choose Enhanced or Maximum in the channel's data sharing settings. Mora does not set up or send Conversions API events.

What Mora checks

Mora reads when Meta says each pixel on the ad account last fired. If none fired in the 7 days before Mora's reading, the tracking check fails and Turn on is withheld. If the ad account has no pixel, the check reads as not checked, but Turn on still waits: Mora says Meta cannot count purchases for the campaign yet and asks you to add the pixel. A pass shows only that the pixel is active, so make a test purchase yourself to see Purchase arrive.

Sources

Checked 25 Nov 2026.

If the test event arrives but Mora's check still fails, Contact a person at Mora.