← Blog

How to Set Up the Meta Pixel in 2026 (Step-by-Step)

Mário Jurík, founder of Geniusko · August 2, 2026 · 10 min read

If you're running Facebook or Instagram ads without the Meta Pixel installed correctly, you're flying blind — Meta can't see who converts, so it can't optimise, and you can't measure what your ads actually earn. Setting the pixel up properly is the single most important technical step in Meta advertising, and it's more involved in 2026 than it used to be. This guide walks you through how to install the Meta Pixel step by step, how to set up the events that matter, how to verify it's firing, and — crucially — why a browser-only pixel now under-reports and what to do about it. (For the pure definition of what a pixel is, see our glossary entry on the Facebook pixel; this page is about installing and using it.)

Quick answer: the Meta Pixel is a snippet of tracking code you place on your website so Meta can measure conversions and build audiences. You install it one of three ways — a partner integration (Shopify, WooCommerce and similar, the easiest), manual base code pasted into your site's <head>, or Google Tag Manager. Then you add standard events (like Purchase and Lead), verify with the Meta Pixel Helper and Events Manager, and — because iOS and ad blockers now hide a large share of browser events — pair it with server-side tracking (the Conversions API) so Meta receives the conversions the browser loses.

What the Meta Pixel is (in one sentence)

The Meta Pixel is a small piece of JavaScript on your website that reports visitor actions — page views, add-to-carts, purchases — back to Meta so it can measure results, optimise delivery toward buyers, and build audiences for retargeting. That's the whole idea; for the full definition and how it fits the wider measurement picture, see the Facebook pixel glossary entry. The rest of this guide is about getting it live and working.

"Facebook Pixel" vs "Meta Pixel" — same thing

If the naming confuses you, you're not alone. The "Facebook Pixel" was renamed the "Meta Pixel" when the company rebranded, but it's the exact same tool — same code, same job, same Events Manager. Older tutorials, plugins and settings screens still say "Facebook Pixel"; treat the two names as interchangeable, and everything below applies whichever label you see.

Before you start: what you need

Getting the setup right the first time saves hours of debugging later. Have four things ready: a Meta Business account with access to Events Manager, access to your website (an admin login for your platform, or the ability to edit its HTML), the Meta Pixel Helper Chrome extension for verifying the pixel fires, and a clear list of the actions you want to track — at minimum a page view and your key conversion (purchase, lead, or sign-up).

Step 1: Create your pixel in Events Manager

Every install method points back to one pixel, so create it first. In Events Manager, click the Connect data sources or + button, choose Web, and give the pixel a name (usually your business or website name). Meta assigns it a Pixel ID — a long number you'll need for the manual and Google Tag Manager methods. You only ever need one pixel per website; resist the temptation to create several, as splitting your data across pixels weakens optimisation and audience building.

Step 2: Choose one of three install methods

How you get the pixel onto your site depends on your platform and your comfort with code. Here's how the three methods compare:

MethodBest forDifficulty
Partner integration (Shopify, WooCommerce…)Most businesses on a known platformEasiest
Manual base codeCustom sites, full controlModerate (needs code access)
Google Tag ManagerSites already using GTM / many tagsModerate

Method A: Partner integration (Shopify, WooCommerce and similar)

This is by far the easiest route and the one most people should use. Meta has built-in integrations for major platforms, so you rarely touch code at all. In Events Manager, choose the partner setup option and pick your platform. Then:

  • Shopify: install the official Facebook & Instagram sales channel/app, connect your Meta Business account, and select your pixel — Shopify wires up page views, add-to-carts and purchases automatically.
  • WooCommerce: install the official Facebook for WooCommerce plugin, connect it to your account, and choose the pixel; it handles the standard e-commerce events for you.

The big advantage here is that the partner integration usually maps your conversion events for you and, on many platforms, can enable server-side tracking in the same flow — which matters a lot (see Step 5).

Method B: Manual base code

If you run a custom-built site or your platform has no integration, install the pixel by hand. In Events Manager, choose install code manually and copy the base code — a JavaScript block containing your Pixel ID. Paste it into the <head> section of every page, as high as possible and on all pages (a shared header template or layout file is the right place). The base code fires a PageView event on load; you then add standard-event snippets on the specific pages or buttons that represent conversions (covered in Step 4).

Method C: Google Tag Manager

If you already use Google Tag Manager (GTM) to manage your site's tags, add the pixel there instead of hard-coding it. Create a new tag, choose a Custom HTML tag (or the community Meta Pixel template), paste your base code with your Pixel ID, and set the trigger to All Pages so PageView fires everywhere. For conversions, create additional tags for each standard event and trigger them on the right pages or clicks (for example, a Purchase tag on the order-confirmation page). GTM keeps all your tracking in one place and makes it easy to update without redeploying your site.

Step 3: Understand standard events vs custom events

A pixel that only fires PageView tells Meta someone visited — but not what they did. Standard events are Meta's predefined, recognised actions that power optimisation and reporting. The ones that matter most:

Standard eventFires when…
PageViewAny page loads (base code)
ViewContentSomeone views a product or key page
AddToCartAn item is added to the cart
InitiateCheckoutCheckout begins
LeadA form or enquiry is submitted
PurchaseAn order completes (with value + currency)

Always pass a value and currency with Purchase events — that's what lets Meta calculate your ROAS and optimise toward revenue rather than raw conversions. If you need to track something Meta has no standard name for, use a custom event, but stick to standard events wherever possible because they plug straight into optimisation and reporting.

Step 4: Set up your conversion events

How you add events depends on your install method: partner integrations usually map the core e-commerce events automatically (verify them rather than build them), manual installs need the event snippet added to the relevant page (e.g. a Purchase snippet on your order-confirmation page), and GTM installs need a separate tag and trigger per event. Meta also offers the Event Setup Tool, a point-and-click way to define events by clicking elements on your live site without writing code. Whichever route you take, make sure at least your primary conversion (purchase or lead) fires reliably; everything else is secondary. Once events are live, you can use them to build a custom audience of converters and shoppers for retargeting.

Step 5: Verify the pixel is working

Never assume the pixel works — check it. Two quick tools:

  • Meta Pixel Helper: install the Chrome extension, visit your site, and click its icon. It shows which pixel(s) it detects, which events fired, and flags errors like a missing value or a duplicate pixel. A green tick on PageView plus your conversion event on the right pages is what you want.
  • Events Manager → Test Events: enter your website URL, then browse your site and trigger a purchase or lead. Events should appear in the live feed within seconds, confirming the data actually reaches Meta (not just fires in the browser).

If your Meta Pixel is "not working," the usual culprits are: the code isn't on every page, the Pixel ID is wrong, an event snippet is on the wrong page, an ad blocker is suppressing it during your test, or the same pixel is installed twice (firing duplicates). Fix these before you trust any numbers — and note that even a perfectly installed pixel now misses conversions, which the next section explains.

Why a browser-only pixel under-reports (and how to fix it)

Here's the part most setup guides skip. The Meta Pixel runs in the visitor's browser, and in 2026 a large and growing share of browser events simply never reach Meta. Three forces cause it:

  • iOS App Tracking Transparency (ATT): since Apple let users opt out of tracking, a big chunk of iPhone traffic can't be measured by browser-based pixels.
  • Ad blockers and browser privacy (ITP/ATP): content blockers and privacy features in Safari, Firefox and others block or shorten the pixel's cookies, dropping events entirely.
  • Cookie consent and shorter cookie lifetimes: declined consent and expiring cookies mean conversions go unattributed, which also narrows your effective attribution window.

The consequence is serious: Meta optimises on the data it can see, so if it never learns about a conversion, it can't find more people like that buyer — and your reported ROAS looks worse than reality. The fix is server-side tracking via the Conversions API (CAPI): instead of relying only on the browser, your server (or a gateway) sends the conversion event to Meta directly, recovering events the browser loses. Running the pixel and the Conversions API together — with event deduplication so a conversion isn't counted twice — is the current best-practice setup, not an optional extra.

How Geniusko helps

Standing up the Conversions API yourself means server work, event mapping and deduplication — the kind of technical project that stalls most advertisers. That's exactly the gap Geniusko, an AI marketer for Meta ads, closes:

  • Geniusko Gateway (server-side CAPI tracking) — a server-side conversions gateway that recovers the events a browser-only pixel loses to iOS, ad blockers and cookie restrictions, so Meta optimises on complete data instead of a partial picture.
  • Daily automatic optimisation — once the data is clean, Geniusko reviews your account every day, pauses the ads that spend without converting, and shifts budget to your lowest cost-per-result winners.
  • AI creative and video generation — generate fresh image and video ad variations on demand, so your next hook is ready before the current one fatigues.
  • Competitor ad feed — see what advertisers in your niche are actually running, straight from Meta's Ad Library, so your angles stay fresh and relevant.

Not sure whether your pixel and tracking are actually capturing everything? Geniusko runs a free audit of your Meta account — it shows where your data and budget are leaking, and how much you could recover by fixing it.

Frequently asked questions

Is the Meta Pixel the same as the Facebook Pixel?

Yes. The Facebook Pixel was renamed the Meta Pixel when the company rebranded to Meta, but it's the identical tool — same code, same Events Manager, same purpose. Older tutorials and plugins still say "Facebook Pixel," and you can treat the two names as interchangeable.

Do I need to know how to code to install the Meta Pixel?

Not usually. If you're on a platform like Shopify or WooCommerce, a partner integration installs the pixel and maps events with almost no code. Manual base-code and Google Tag Manager installs need a bit more technical comfort, but even those are copy-and-paste rather than real programming.

Why is my Meta Pixel not working?

The common causes are: the code isn't on every page, the Pixel ID is wrong, an event snippet is on the wrong page, the same pixel is installed twice (firing duplicates), or an ad blocker is suppressing it during your own test. Use the Meta Pixel Helper and Events Manager's Test Events tool to pinpoint which one applies.

What's the difference between the Meta Pixel and the Conversions API?

The Pixel runs in the visitor's browser; the Conversions API (CAPI) sends events to Meta from your server. Because browsers now block or drop many events (iOS, ad blockers, cookie limits), the browser pixel alone under-reports. Running both together — with deduplication — recovers lost conversions and is the recommended 2026 setup.

How many pixels do I need?

One per website. Creating multiple pixels splits your conversion data and audiences, which weakens both optimisation and retargeting. Keep a single pixel per site and route all your events and install methods back to it.

Find out how much you are overspending

A free audit of your Meta account — it shows which ads cost you money without results.

Run a free audit