Skip to main content

How to Set Up Facebook Pixel (2025): Complete Guide with 23 Screenshots

By Nicolas LerooDecember 202512 min read
Meta Events Manager dashboard showing Facebook Pixel overview and setup options for conversion tracking

If you're running Facebook or Instagram ads without the Meta Pixel installed, you're flying blind. You can't accurately track conversions, build remarketing audiences, or measure your return on investment.

The good news? Installing the Facebook Pixel (officially called "Meta Pixel") isn't complicated. Whether you're using WordPress, Shopify, a custom website, or Google Tag Manager, this complete guide will walk you through the entire installation process with screenshots for every step.

By the end of this guide, you'll have your Pixel installed, verified, and tracking conversions correctly—no technical experience required.

What is Facebook Pixel (Meta Pixel)?

The Meta Pixel (formerly Facebook Pixel) is a small piece of JavaScript code that you install on your website to track visitor behavior and conversions from your Facebook and Instagram advertising campaigns.

Think of it as a bridge between your website and Meta's advertising platform. Every time someone visits your site, the Pixel sends information back to Facebook about what pages they viewed, what actions they took, and whether they converted.

Why You Need the Facebook Pixel

  • Track Conversions: See exactly which ads drive sales, leads, and sign-ups
  • Build Remarketing Audiences: Show ads to people who visited your website
  • Optimize Ad Delivery: Facebook automatically shows your ads to people most likely to convert
  • Measure ROI: Calculate your actual return on ad spend with accurate conversion data
  • Create Lookalike Audiences: Find new customers similar to your best existing customers

Without the Pixel, you're guessing. With it, you have concrete data to make informed decisions about your advertising budget.

Step 1: Creating Your Meta Pixel

Before you can install anything, you need to create your Pixel in Meta's Events Manager. Here's the complete process:

Access Meta Events Manager

First, you'll need to navigate to Events Manager where all your tracking setup happens:

  1. Go to business.facebook.com
  2. Click on the menu icon (three horizontal lines) in the top left
  3. Click "All Tools"
  4. Find and select "Events Manager" under the "Measure & Report" section
Finding All Tools in Meta Business Suite navigation menu

Click "All Tools" in the Meta Business Suite menu to access Events Manager

Locating Events Manager in Business Suite tools menu

Find Events Manager under the "Measure & Report" section

Create a New Data Source

Once you're in Events Manager, you'll create your Pixel as a new data source:

  1. Click the green "Connect Data Sources" button
  2. Select "Web" as your data source type
  3. Click "Get Started" under "Meta Pixel"
  4. Enter a name for your Pixel (example: "Your Company Website")
  5. Enter your website URL
  6. Click "Create Pixel"
Connect Data Sources button in Meta Events Manager

Click "Connect Data Sources" to begin creating your Meta Pixel

Selecting Web as data source type in Meta Events Manager

Select "Web" to create a Meta Pixel for your website

Choosing Meta Pixel to connect website activity tracking

Choose Meta Pixel to track website activity and conversions

Pro Tip: Use a clear, descriptive name for your Pixel like "Main Website - YourBusiness.com" instead of generic names like "Pixel 1". If you manage multiple websites, this makes it easy to identify which Pixel belongs to which site.

Congratulations! Your Pixel is now created. Next, you'll choose how to install it on your website.

Step 2: Choose Your Installation Method

After creating your Pixel, Meta will ask you how you want to install it. You have three main options, each suited for different situations:

Meta Pixel installation method options: Partner integration, Manual code, or Email instructions

Choose your installation method based on your website platform

Partner Integration

Best for: WordPress, Shopify, Wix, Squarespace, and other popular platforms

Difficulty: Easiest (5-10 minutes)

Manual Installation

Best for: Custom websites or platforms without Meta integration

Difficulty: Moderate (10-15 minutes)

Google Tag Manager

Best for: Sites already using GTM or managing multiple tracking tools

Difficulty: Moderate (15-20 minutes)

Meta partner integration options showing WordPress, Shopify, Wix, and other platforms

Partner integrations make Pixel installation easy for popular platforms

The following sections will walk through each installation method in detail. Jump to the one that matches your website platform.

Method 1: WordPress Installation

WordPress users have the easiest installation process. You can use either the official Meta partnership or a plugin. Here's the recommended approach using the Header Footer Code Manager plugin:

Install Header Footer Code Manager Plugin

  1. Log into your WordPress admin dashboard
  2. Go to Plugins → Add New
  3. Search for "Header Footer Code Manager"
  4. Click "Install Now" then "Activate"
Header Footer Code Manager plugin in WordPress dashboard

The Header Footer Code Manager plugin makes it easy to add Meta Pixel to WordPress

Add Your Pixel Code

  1. In WordPress, go to HFCM → Add New Snippet
  2. Give it a name like "Meta Pixel"
  3. Select "Header" as the location
  4. Go back to Events Manager and copy your Pixel code
  5. Paste the code into the snippet
  6. Set it to display "Site Wide"
  7. Click "Save"
Adding Meta Pixel code snippet using Header Footer Code Manager in WordPress

Paste your Meta Pixel code into HFCM and set it to display site-wide

Alternative: You can also use the official "PixelYourSite" plugin, which provides a simple interface to add your Pixel ID without touching any code. Go to Plugins → Add New, search for "PixelYourSite", install and activate, then enter your Pixel ID in the plugin settings.

That's it! Your Pixel is now installed on your WordPress site. Skip ahead to the Testing & Verification section to confirm it's working.

Method 2: Manual Code Installation

For custom websites or platforms without a Meta integration, you'll install the Pixel by adding code directly to your website's HTML. Don't worry—it's easier than it sounds.

Get Your Pixel Code

  1. In Events Manager, click on your Pixel name
  2. Click "Continue Pixel Setup"
  3. Select "Install code manually"
  4. Copy the entire Pixel base code
Copying Meta Pixel base code from Events Manager

Copy the complete Pixel base code from Events Manager

Add Code to Your Website

You need to paste this code in the <head> section of your website, right before the closing </head> tag.

The exact process depends on your website platform:

  • Custom HTML site: Open your header.php or index.html file and paste the code before </head>
  • Wix: Go to Settings → Custom Code → Add Custom Code → Paste in the "Head" section
  • Squarespace: Go to Settings → Advanced → Code Injection → Paste in the "Header" box
  • Webflow: Go to Project Settings → Custom Code → Paste in "Head Code"
Meta Pixel code placement in website header before closing head tag

Place the Pixel code in your website's header, before the closing </head> tag

Important: The Pixel code must be installed on EVERY page of your website. If you place it in your site's header template, it will automatically appear on all pages. If you're manually adding it to individual pages, you'll need to add it to each page separately.

Once the code is in place, save your changes and proceed to Testing & Verification.

Method 3: Google Tag Manager Installation

If you're already using Google Tag Manager (GTM) to manage your website's tracking codes, installing the Meta Pixel through GTM is the cleanest approach. It keeps all your tracking in one place and makes future updates easier.

Prerequisites: This method requires that you already have Google Tag Manager installed on your website. If you don't have GTM set up yet, use one of the other installation methods above.

Create a New Tag in GTM

  1. Log into your Google Tag Manager account
  2. Select your website container
  3. Click "Tags" in the left sidebar
  4. Click "New" to create a new tag
  5. Click on the tag configuration area
Creating a new tag in Google Tag Manager interface

Create a new tag in your Google Tag Manager container

Use the Facebook Pixel Template

  1. Click "Discover more tag types in the Community Template Gallery"
  2. Search for "Facebook Pixel"
  3. Select the official "Facebook Pixel" template by Facebook
  4. Click "Add to workspace"
Searching for Facebook Pixel template in GTM community gallery

Find the official Facebook Pixel template in the GTM community gallery

Adding Facebook Pixel tag template to GTM workspace

Add the Facebook Pixel template to your GTM workspace

Configure the Pixel Tag

  1. In the tag configuration, set the Event Name to "PageView"
  2. Find your Pixel ID in Meta Events Manager (it's a long number like 123456789012345)
  3. Enter your Pixel ID in the "Facebook Pixel ID" field
  4. Leave all other settings at their defaults for now

Set Up the Trigger

Now you need to tell GTM when to fire this tag. For the base Pixel (PageView), you want it to fire on every page:

  1. Click on the "Triggering" section
  2. Click the "+" icon to create a new trigger
  3. Select "All Pages" as the trigger type
  4. Click "Save"
Setting up All Pages trigger for Meta Pixel in Google Tag Manager

Configure the trigger to fire the Meta Pixel on all pages

Test and Publish

  1. Name your tag "Meta Pixel - PageView"
  2. Click "Save"
  3. Click "Preview" in the top right to test your changes
  4. Visit your website in the new window that opens
  5. Verify that the Meta Pixel tag fires on page load
  6. If everything looks good, click "Submit" to publish your changes
Google Tag Manager preview mode showing Meta Pixel tag firing

Use GTM Preview mode to test your Meta Pixel before publishing

Your Meta Pixel is now installed via Google Tag Manager! Proceed to the next section to verify it's working correctly.

Step 3: Testing & Verification

Installing the code is only half the battle. You MUST verify that your Pixel is actually working before you start running ads. Here are three reliable ways to confirm your Pixel is tracking correctly:

Method 1: Meta Pixel Helper Chrome Extension

This is the fastest and easiest verification method:

  1. Install the Meta Pixel Helper extension in Chrome
  2. Visit your website
  3. Click the Pixel Helper icon in your browser toolbar
  4. You should see your Pixel ID with a green checkmark and "PageView" event
Meta Pixel Helper Chrome extension showing active Pixel with green checkmark

The Meta Pixel Helper shows your Pixel is installed and firing correctly

Meta Pixel Helper extension showing detailed PageView event and Pixel information

Detailed view showing PageView event firing with Pixel ID and parameters

Common Issues:

  • No Pixel detected: The code isn't installed correctly or isn't in the header
  • Yellow warning icon: Pixel is working but has minor issues (usually safe to ignore)
  • Red error icon: Pixel has critical errors—check your code placement
  • Duplicate Pixels: You've installed the code more than once—remove the extra instance

Method 2: Test Events in Events Manager

Meta's built-in testing tool shows real-time Pixel activity:

  1. Go to Events Manager in Meta Business Suite
  2. Click on your Pixel name
  3. Click the "Test Events" tab
  4. Enter your website URL in the test browser field
  5. Browse your website in the test window
  6. Watch events appear in real-time on the left side
Test Events tab in Meta Events Manager showing real-time Pixel activity

Use the Test Events tab to monitor real-time Pixel activity

Events successfully received and displayed in Test Events interface

Events appearing in real-time confirm your Pixel is tracking correctly

Expanded event details showing parameters and tracking data for verification

Click on events to see detailed parameter data and verify accuracy

Method 3: Check Events Manager Overview

After 10-15 minutes, you should see activity in your main Events Manager dashboard:

  1. Go to Events Manager
  2. Look at your Pixel's overview page
  3. You should see "Active" status with a green dot
  4. The "Activity" section should show recent PageView events
  5. Your website URL should appear in the "Website" field
Events Manager showing PageView events and website domain verification

Events Manager overview confirms Pixel is active and tracking your domain

Pro Tip: Test from multiple devices (desktop, mobile, tablet) and different browsers to ensure your Pixel works everywhere. Also test with ad blockers disabled—many users block tracking pixels, which is normal and expected.

Step 4: Configure Advanced Settings

Now that your Pixel is installed and verified, there are a few important settings you should configure to maximize tracking accuracy.

Enable Automatic Advanced Matching

This feature dramatically improves your conversion tracking and remarketing audience quality by matching website visitors with their Facebook profiles using hashed customer data:

  1. In Events Manager, click on your Pixel name
  2. Click "Settings" in the left sidebar
  3. Scroll to "Automatic Advanced Matching"
  4. Toggle the switch to "On"
  5. Click "Save Changes"
Enabling Automatic Advanced Matching in Meta Pixel settings for improved conversion tracking

Enable Automatic Advanced Matching to improve conversion tracking accuracy by 10-20%

This feature is completely privacy-safe and GDPR-compliant. Facebook only uses this data for attribution and doesn't share it externally.

Add Standard Event Tracking

The base Pixel code only tracks PageViews. To track conversions (purchases, form submissions, etc.), you need to add standard event codes:

  • Purchase: Track completed transactions
  • Lead: Track form submissions or lead captures
  • AddToCart: Track when someone adds products to cart
  • InitiateCheckout: Track when checkout process starts
  • CompleteRegistration: Track account sign-ups
Standard event code example showing how to add Purchase, Lead, and other conversion events

Example showing standard event codes placed on conversion pages

For platform-specific event tracking:

  • WordPress: Use the PixelYourSite plugin to configure events without code
  • Shopify: Events are automatically tracked through the Facebook & Instagram integration
  • GTM: Create separate tags for each event type with specific triggers
  • Manual: Add event code snippets to your conversion pages

Next Steps: Event tracking setup deserves its own detailed guide. For now, focus on getting your base Pixel installed and verified. You can add event tracking later as you optimize your conversion tracking. The base PageView tracking alone enables remarketing and most optimization features.

Frequently Asked Questions

The Facebook Pixel (now called Meta Pixel) is a piece of tracking code that you install on your website to measure the effectiveness of your Facebook and Instagram advertising. It tracks visitor actions like page views, purchases, and form submissions, allowing you to optimize your ads, build remarketing audiences, and measure ROI accurately.

Installation time varies by method: Partner integrations (WordPress, Shopify) take 5-10 minutes, manual code installation takes 10-15 minutes, and Google Tag Manager setup takes 15-20 minutes if you're familiar with GTM. First-time installations may take longer as you familiarize yourself with Meta Events Manager.

Not necessarily. If you use WordPress, Shopify, Wix, or another CMS with a Facebook integration, you can install the Pixel without any coding. However, for custom websites or manual installation, basic HTML knowledge is helpful to place the code correctly in your website's header.

While technically possible, Meta recommends using only one Pixel per website for accurate tracking. If you need to share data with multiple ad accounts, use the Pixel's built-in sharing features in Events Manager rather than installing multiple Pixels, which can cause tracking conflicts and inflated metrics.

Use three verification methods: 1) Install the Meta Pixel Helper Chrome extension and visit your website to see if events fire, 2) Check the Test Events tab in Events Manager to see real-time activity, and 3) Verify that your Pixel shows 'Active' status with recent events in the Events Manager overview.

The base Pixel code tracks PageView events automatically whenever someone visits your website. Event codes track specific actions like Add to Cart, Purchase, or Lead submissions. You install the base code once in your site's header, then add event codes on specific pages where those actions occur.

Yes, absolutely. Automatic Advanced Matching improves conversion tracking and remarketing audience quality by securely matching website visitors with their Facebook profiles using hashed data like email addresses. This feature is privacy-safe, GDPR-compliant, and can improve your match rates by 10-20%.

Yes, Shopify has native Facebook Pixel integration. Go to Settings > Apps and sales channels > Facebook, then connect your Meta account. However, apps like the official Facebook & Instagram app provide additional features like product catalog syncing and easier event tracking for e-commerce.

Google Tag Manager (GTM) is a container that manages all your tracking codes in one place. Installing Pixel through GTM means you don't edit your website's code directly—instead, you add and update tracking through GTM's interface. This makes it easier to manage multiple marketing tools and make changes without developer help.

Common errors include: duplicate Pixels (remove extra installations), blocked Pixel (check ad blockers or privacy tools), or event parameter issues (verify your event code syntax). Check the Diagnostics tab in Events Manager for specific error messages, then reference Meta's troubleshooting documentation or reinstall the Pixel following this guide.

You're Ready to Track Conversions

If you followed this guide, your Meta Pixel is now installed, verified, and ready to track conversions from your Facebook and Instagram advertising campaigns.

Here's what you can do now:

  • Create remarketing audiences from your website visitors
  • Track which ads drive real conversions and revenue
  • Let Facebook optimize your ad delivery to people most likely to convert
  • Build lookalike audiences from your best customers
  • Measure your true return on ad spend with accurate conversion data

The Pixel will immediately start collecting data. Give it at least 24-48 hours of activity before using it for audience creation or conversion optimization to ensure you have enough data for accurate targeting.

Need Help With Your Facebook Advertising?

We handle complete Meta Pixel setup, conversion tracking, and full-service Facebook & Instagram advertising campaign management for businesses in Atlanta.

Schedule a Free Strategy Call
Nicolas Leroo - Co-Founder & Meta Advertising Strategist

About Nicolas Leroo

Co-Founder & Meta Advertising Strategist

Nicolas specializes in creating high-performing Meta advertising campaigns and custom landing pages that convert. He helps local businesses in Atlanta scale through targeted Facebook and Instagram ads.

Learn more about Nicolas