meta-ads.si

What Is the Meta Pixel? How It Works and What It Logs

Tracking & measurementSources checked 2 Oct 20265 sources
Short answer

What is the Meta Pixel?

The Meta Pixel is a piece of code you add to your website. It logs the actions people take there, called events, such as adding an item to a cart or buying. You use those events to measure ad results, build custom audiences and help Meta show ads to people likely to take that action.

Think of the pixel as a small reporter that sits in your site’s header. Each time a visitor does something you chose to track, it sends a note to Meta. Those notes show up in Events Manager, help you measure what your ads achieve, and tell Meta’s ad system which people act after seeing an ad, so it can look for more of them.

What does the Meta Pixel do for your ads?

Meta describes three jobs for the pixel:

  • Reach the right people. It helps you find new customers, or people who visited a specific page or took an action on your site.
  • Drive more sales. You can set up automatic bidding in Ads Manager to reach people more likely to take an action you care about, such as a purchase.
  • Measure results. You see what happens on your site after people see your ads.

Once installed, the pixel logs each action as an event. You view those events in the pixel’s dataset in Events Manager. In Ads Manager you can turn them into custom audiences or use them for retargeting.

How do you install the Meta Pixel?

Meta splits setup into two stages: create the pixel and add its base code, then set up the events you want to log.

  1. Go to Meta Events Manager, click Connect data, select Web and click Connect.
  2. Enter a name for your pixel and click Create pixel. This creates a new ID.
  3. Enter your website URL and click Check to see whether a partner integration is available.
  4. Choose Get guidance for setup recommendations, or Do it yourself if you already know your method.
  5. Pick Conversions API and Meta Pixel or Meta Pixel only as your setup option.
  6. Paste the base code, if adding it by hand, at the bottom of the header section, just above </head>, on every page.

Meta says one pixel ID can cover your whole website.

What is the difference between base code and event code?

Part What it does Where it goes
Base code Loads the pixel and includes the PageView event Every page, just above the closing </head> tag
Standard event code Logs one action, such as AddToCart or Purchase Inside the pixel code, above </script>, on each page where that action happens

How do you check that the pixel is working?

Open a page that carries the full base code. If the pixel works, it sends a PageView event, which appears on the pixel’s page in Events Manager, and the pixel’s status changes to Active. Meta also points you to the Test events tool for checking standard and custom events, and to the Diagnostics tab in Events Manager for setup problems. Watch the spelling of event names: Meta treats them as case-sensitive, and a name with the wrong case becomes a custom event.

Should you run the pixel on its own?

Meta recommends that if you share events through the pixel, you also use the Conversions API. Sending the same events through both is what Meta calls a redundant setup. It helps because the server connection can pass along events the pixel misses through network issues or page loading errors.

What must you never send through the pixel?

Meta’s rules say no prohibited information may reach it, which includes health, financial or children’s data and anything its terms, policies or the law do not allow. Review your event names, parameters and URLs regularly. The Meta Business Tools Terms also say you must not place the pixel tied to your business or ad account on websites you don’t own.

FAQ

Can one website use more than one Meta Pixel?

Yes. Meta says one pixel can cover every page of a site, but there are cases for two. Its example is a business with two agencies running its ads, where each agency may need its own pixel on the same website. Meta for Developers documents how multiple pixels behave.

Do I need a developer to install the Meta Pixel?

Not always. If your website platform has a partner integration, you can set the pixel up through it, and the point-and-click event setup tool adds events without new code. Meta says that if you set up your pixel or events manually, you may need a developer’s help to add the code.

How long until pixel events show up in my reports?

Meta says data may take 30 minutes or more to appear in your analytics after you set up an event. While you wait, you can use the Test events tool in Events Manager, which shows events as they arrive from your website while the tool’s page is open.

Sources

  1. About Meta Pixel (Meta, checked 2 Oct 2026)
  2. Set up and install the Meta Pixel (Meta, checked 2 Oct 2026)
  3. Specifications for Meta Pixel standard events (Meta, checked 2 Oct 2026)
  4. Best practices for Meta Pixel standard event setup (Meta, checked 2 Oct 2026)
  5. Test events tool: verify app and web browser events for Meta (Meta, checked 2 Oct 2026)

Drafted with AI and checked claim by claim against the pages linked under Sources. Found a mistake? Tell us via the corrections policy.