Meta Pixel: how to install it, which events to send and how to check it works
As of: 1 December 2026.
The Meta Pixel decides what your Facebook and Instagram campaigns learn about your customers. When it sends only page views, the algorithm learns from traffic and the purchase report in Ads Manager stays empty. This guide walks you through installing the code, choosing events and parameters, handling cookie consent and checking that everything works.
What is the Meta Pixel and what is it for?
The Meta Pixel (formerly the Facebook pixel) is JavaScript code embedded in your website that sends Meta information about what visitors do, such as viewing a product, adding it to the cart or buying it. Meta uses these events to measure conversions from ads, optimise campaigns for the goal you choose and build audiences for remarketing.
According to Meta's developer documentation “fbp and fbc Parameters”, a pixel that uses first-party cookies stores a browser identifier in the _fbp cookie on your domain. When someone arrives from an ad, the URL contains the fbclid parameter, and the pixel stores it in the _fbc cookie. With these two values Meta links an ad click to a later purchase.
How do you install the Meta Pixel on your website?
You install the Meta Pixel by pasting its base code between the <head> tags on every page you want to measure. Meta recommends this placement in “Meta Pixel: Get Started” because it reduces the chance that browsers or third-party code block the pixel. To install it you need access to your website's code, the pixel ID and access to Ads Manager.
The base code loads the pixel library and sends one PageView event every time a page loads. You add the other events, such as add to cart or purchase, with separate fbq('track') calls. In practice you have three ways to implement it:
| Method | When to choose it | What to watch |
|---|---|---|
| Base code in the site template | You have a developer and your own codebase | Every event needs a code change |
| Google Tag Manager | GA4 events already flow through the dataLayer | The pixel tag has to respect cookie consent |
| Shop platform integration (e.g. Shopify, WooCommerce) | Your shop runs on a popular platform | The integration can duplicate a pixel you pasted by hand earlier |
In our experience, Google Tag Manager produces the fewest errors when the shop already has a clean dataLayer: you fire pixel events on the same triggers as GA4, so both platforms count the same actions. Meta also describes installing the pixel with an <img> tag alone, but its documentation explicitly does not recommend it. The <noscript> version in the base code sends PageView only.
Which Meta Pixel standard events should you send?
Meta Pixel standard events are conversion-related actions predefined by Meta that you send with the fbq('track') function. An online shop sends an event at every step of the purchase path, from ViewContent on the product page to Purchase after the order. A service business collecting enquiries needs the Lead event above all.
| Event | When to send it | Parameters |
|---|---|---|
| ViewContent | Visit to a product page | content_ids, content_type, contents, currency, value |
| AddToCart | Product added to the cart | content_ids, content_type, contents, currency, value |
| InitiateCheckout | Start of checkout | content_ids, contents, currency, num_items, value |
| AddPaymentInfo | Payment details entered | content_ids, contents, currency, value |
| Purchase | Order confirmation | value and currency required; content_ids, contents, num_items |
| Lead | Contact form submitted | currency, value |
| CompleteRegistration | Account created | currency, value |
| Search | Search in the shop | search_string, content_ids, contents |
The “Meta Pixel Reference” documentation lists value and currency as required for the Purchase event. For Advantage+ catalog ads, ViewContent and Purchase must also carry content_ids or contents, and AddToCart the contents field. In the contents array every item has the required fields id and quantity. In our experience, product IDs in events work best when they come from the same field as your Meta product catalogue, such as the SKU, because with two different numbering schemes catalog ads cannot link events to products.

When should you use custom events and custom conversions?
You use Meta Pixel custom events when none of the standard events describes the action you want to measure, such as downloading a PDF price list. You send them with fbq('trackCustom'), and according to Meta's “Conversion Tracking” documentation a custom event name can be at most 50 characters long.
Custom conversions are a separate mechanism. You create them entirely in Events Manager, and Meta recognises them from the URLs people visit, so every visit to a page with “/thank-you” in the address can count as an enquiry. The same documentation sets a limit of 100 custom conversions per ad account.
In our experience, standard events win wherever they fit, because Meta understands what they mean and lets you optimise campaigns for them without extra setup. A URL-based custom conversion is a quick start, but it cannot pass the order value or the product list.
How do you check that the Meta Pixel works correctly?
You check the Meta Pixel in two places: Events Manager and the Meta Ads Data Advisor browser extension. According to “Meta Pixel: Get Started”, the installation is correct when a new PageView event appears in the pixel details in Events Manager after you load a page with the pixel. If you don't see it, wait a few minutes and refresh the view.
Meta Ads Data Advisor (formerly Meta Pixel Helper) is a free extension for Google Chrome and Microsoft Edge. It shows how many events fired on a page and the pixel status: active, warning or inactive. For events it flags issues such as missing parameters, like product IDs, value and currency, and duplicate pixel code on a single page.
When you verify, walk the whole path the way a customer would:
- open a product page and check that ViewContent fired with the product ID;
- add the product to the cart and go to checkout, checking AddToCart and InitiateCheckout;
- place a test order and confirm that Purchase carries a value matching the cart and a currency;
- reload the order confirmation page and make sure Purchase did not fire a second time.
Our free GA4 Audit also checks the ViewContent and AddToCart events without a purchase. The scan walks the path from the home page to checkout and, alongside GA4 tracking, shows whether the Meta Pixel sends these events or only page views.
How does the Meta Pixel work with cookie consent?
The Meta Pixel has built-in consent calls: fbq('consent', 'revoke') pauses sending events to Meta, and fbq('consent', 'grant') resumes it once the visitor consents. Meta's pixel documentation on the GDPR says to call revoke before fbq('init') and to do so on every page.
In practice you connect the pixel to the consent management platform (CMP) on your site: the banner stores the visitor's choice, and the pixel tag in Google Tag Manager fires only after marketing consent or switches state with grant. You can check whether ad scripts really wait for the banner decision with our Consent Mode Checker.
Is the Meta Pixel enough on its own, or do you need the Conversions API?
The Meta Pixel on its own runs in the browser, so it loses events whenever the browser or an ad blocker stops its script. That is why Meta's documentation “Handling Duplicate Pixel and Conversions API Events” recommends implementing the Conversions API alongside the pixel, which means sending the same events from your server too.
When the same event arrives from both sources, Meta matches them by event name and ID: the pixel's eventID has to match event_id in the Conversions API. According to the same documentation, deduplication covers events received within 48 hours of the first event with a given ID. We cover the details, implementation costs and the match quality metric in our article on the Meta Conversions API.
The second addition is advanced matching. The pixel then passes customer data, such as an email address and a phone number, so Meta can match the event to a specific person. According to the “Advanced Matching” documentation you turn it on manually in the base code or automatically in Events Manager, and values passed to the pixel are hashed with SHA-256 before they are sent.
At Zest, tracking setup including pixels and Consent Mode is part of the one-off setup at $500 (PLN 2,000) that starts our Meta Ads campaign management. For an example of a Meta Ads account run for sales, see the Gabo Wool case study: an average ROAS of 8.28× against a 6.0× target.
Which Meta Pixel mistakes happen most often?
The most common Meta Pixel mistakes we find in account audits involve missing funnel events, missing parameters and double counting. Each one changes what the campaign optimises for:
- PageView only: the base code is on the site, but nobody added events, so a sales campaign has nothing to optimise for.
- Purchase without a value: the purchase is counted, but without value and currency Ads Manager cannot calculate ROAS.
- Duplicate pixel: code pasted by hand plus the same pixel added by a shop integration sends every event twice.
- IDs that differ from the catalogue: content_ids use variant numbers while the catalogue uses SKUs, so catalog ads cannot link events to products.
- Purchase on reload: the confirmation page sends a purchase on every load, so one order counts several times.
Frequently asked questions
Q.Do you have to send a value with the Lead event?
According to Meta Pixel Reference, value and currency are optional for the Lead event. A value becomes required when the campaign optimises for conversion value, because the “Conversion Tracking” documentation requires it for purchases and for events used in value optimisation.
Q.Does the Meta Pixel code slow down page loading?
The pixel base code loads its library asynchronously, so the browser doesn't wait for it to display the rest of the page. Page speed depends more on the total number of marketing scripts on the site than on the pixel itself.
Which sources is this article based on?
Installing the base code with its asynchronous loading and the PageView event, plus the Events Manager check, follow Meta's developer documentation “Meta Pixel: Get Started”. The list of standard events and their parameters comes from “Meta Pixel Reference”, and custom events and custom conversions with their limits from the “Conversion Tracking” documentation. The consent calls come from the “General Data Protection Regulation” page in the pixel documentation, advanced matching from “Advanced Matching” and deduplication from “Handling Duplicate Pixel and Conversions API Events”. The _fbp and _fbc cookies are described on the “fbp and fbc Parameters” page in the Conversions API documentation, and the Meta Ads Data Advisor extension on the “Meta Ads Data Advisor” page in the pixel documentation. The setup price follows Zest's price list.
More on Meta Ads
- How the Meta Ads algorithm picks ads: Andromeda, GEM and GenRecs
- How Much Does Facebook and Instagram Advertising Cost: Budget Ranges and Agency Fees
- Meta CAPI: Is It Necessary, and How Much It Actually Changes in Your Campaigns
- Best Meta Ads agencies in Poland — 2026 ranking
- Advantage+ sales campaigns (formerly Shopping): when they pay off and when they just inflate your ROAS

Before a Meta Ads campaign goes live, he walks through the purchase path in the client's shop with Events Manager open and checks that every pixel event carries a value, a currency and product IDs.
LinkedInRelated articles
Let's talk growth
Send a brief or drop your contact. We'll reply within 24h.
Get a quote