How to Set Up the Meta Pixel in 2026: A Step-by-Step Guide
If you're running Facebook or Instagram ads without the Meta Pixel installed correctly, you're spending money blind. You'll see impressions and clicks, but no visibility into what happened after someone clicked, no conversion data, no retargeting audiences, and nothing feeding back into Meta's ad delivery algorithm to help it find more people likely to convert. This guide walks through creating and installing the Meta Pixel as the process actually works right now.
Before You Start
You'll need admin access to Meta Events Manager, and either admin access to your website's platform (Shopify, WordPress, Wix, or a custom site's header code) or access to Google Tag Manager if you're using that as your installation method.
One Naming Change Worth Knowing First
Meta now groups Pixels under something called datasets inside Events Manager. If a screen or a newer guide says "dataset" where an older guide says "Pixel," they're referring to the same thing, and the dataset ID works anywhere the old Pixel ID did. This isn't a typo or a different product, just a rename that happened without much announcement.
Step 1: Create Your Pixel in Events Manager
Log in to Meta Business Suite at business.facebook.com and navigate to Events Manager. Click the green "Connect Data" button, select Web as your data source type, then click Connect. Choose Meta Pixel and click Connect again. Give your pixel a clear, descriptive name, something like "YourBrand Website Pixel" rather than a default label, so it's easy to identify later if you manage multiple ad accounts. Enter your website URL when prompted, since Meta uses this to check for easy integration options specific to your platform. Click Create.
Once created, you'll see your Pixel ID displayed, a long number you'll need for manual installation methods. Copy and save this number. By default, you get one pixel per ad account, so this is typically a one-time setup per business.
Step 2: Choose Your Installation Method
Meta offers three main installation paths, and which one makes sense depends entirely on your platform.
Partner Integration (Shopify, WordPress, Wix, Squarespace)
This is the easiest, mostly no-code path, and it's the right choice whenever your platform supports it. For Shopify specifically, go to Marketing, then the Facebook and Instagram sales channel, and follow the prompts to connect your Meta Business Manager and select your Pixel. Shopify automatically installs the code and configures standard ecommerce events, ViewContent, AddToCart, Purchase, with no manual code required. For WordPress, install the official Meta for WordPress plugin (also labeled Facebook for WordPress in some listings), connect it to your Business Manager, and select your Pixel. For Wix, go to Marketing Tools, then Facebook Pixel, and connect your Pixel ID directly, and Wix adds it to every page automatically.
Google Tag Manager
If you already have GTM installed as part of your tracking stack, add the Meta Pixel as a new tag: go to Tags, New, and select Facebook Pixel as the tag type. Enter your Pixel ID in the appropriate field, and set the tag to fire on All Pages for the base pixel event. Additional specific events, like tracking a button click or a form submission, each need their own separate tag with its own trigger configuration.
Manual Installation
If neither a partner integration nor Tag Manager is available, choose "Install code manually" inside Events Manager to get the raw JavaScript base code. Paste this into your website's global header, in the section every page shares, immediately before the closing head tag.
A Critical Rule: Connect the Pixel Only One Way
Choose a single installation method and stick to it. Using a native platform integration and also manually pasting the base code into your header is a common, costly mistake that results in double-counting events, most visibly PageView and Purchase events firing twice per actual visit, which corrupts your data and misleads Meta's optimization algorithm about your real conversion rate.
Step 3: Verify the Pixel Is Actually Firing
Installation without verification is not a complete setup. In Events Manager, open your pixel and go to the Test Events tab. Enter your website URL and open it in a new tab. As the page loads, a PageView event should appear in Test Events in real time, timestamped to the moment it fired. If nothing appears, the pixel isn't installed correctly, or it's installed on the wrong page template.
For a faster, ongoing spot check, install the Meta Pixel Helper Chrome extension. Visit your site and click the extension icon. A green checkmark next to your Pixel ID, along with a listed PageView event, confirms the pixel fired successfully in the browser. One limitation worth knowing: this extension only reads client-side, browser-based events. It cannot see server-side Conversions API events, so use the Test Events tool inside Events Manager to confirm those specifically.
Frequently Asked Questions
Do I need a developer to set up the Meta Pixel?
Not if you're using a supported platform like Shopify, WordPress, or Wix, where a partner integration installs the pixel with essentially no code. Manual installation requires access to edit your site's header code, which many business owners handle themselves or hand to whoever manages their website.
What's the difference between the Meta Pixel and the Conversions API?
The Meta Pixel is a browser-based, client-side tracking method. The Conversions API sends the same event data directly from your server rather than relying on the visitor's browser, which makes it more resilient to ad blockers, browser privacy restrictions, and iOS tracking limitations. Many partner integrations now enable both automatically at no extra setup cost.
How do I know if my pixel is actually working correctly, not just installed?
Use the Test Events tab in Events Manager to confirm real-time events firing as you browse your own site, and check that standard events like PageView and Purchase appear exactly once per action, not duplicated. The Meta Pixel Helper browser extension is a fast way to spot-check this on an ongoing basis.
Once your Meta Pixel is verified and firing correctly, the next layer worth adding is the Conversions API for server-side tracking, which makes your conversion data more resilient to browser-based tracking restrictions. This connects to the tracking foundation covered in our Google Analytics 4 and tracking verification guides. If you'd rather have your full ad tracking stack set up and verified by someone who does this daily, that's exactly what our paid media team handles as part of a free Growth Gap Analysis.