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.
Table of Contents
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:
- Go to business.facebook.com
- Click on the menu icon (three horizontal lines) in the top left
- Click "All Tools"
- Find and select "Events Manager" under the "Measure & Report" section

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

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:
- Click the green "Connect Data Sources" button
- Select "Web" as your data source type
- Click "Get Started" under "Meta Pixel"
- Enter a name for your Pixel (example: "Your Company Website")
- Enter your website URL
- Click "Create Pixel"

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

Select "Web" to create a Meta Pixel for your website
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:
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)

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
- Log into your WordPress admin dashboard
- Go to Plugins → Add New
- Search for "Header Footer Code Manager"
- Click "Install Now" then "Activate"

The Header Footer Code Manager plugin makes it easy to add Meta Pixel to WordPress
Add Your Pixel Code
- In WordPress, go to HFCM → Add New Snippet
- Give it a name like "Meta Pixel"
- Select "Header" as the location
- Go back to Events Manager and copy your Pixel code
- Paste the code into the snippet
- Set it to display "Site Wide"
- Click "Save"
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
- In Events Manager, click on your Pixel name
- Click "Continue Pixel Setup"
- Select "Install code manually"
- Copy the entire Pixel base code
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"
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
- Log into your Google Tag Manager account
- Select your website container
- Click "Tags" in the left sidebar
- Click "New" to create a new tag
- Click on the tag configuration area

Create a new tag in your Google Tag Manager container
Use the Facebook Pixel Template
- Click "Discover more tag types in the Community Template Gallery"
- Search for "Facebook Pixel"
- Select the official "Facebook Pixel" template by Facebook
- Click "Add to workspace"
Find the official Facebook Pixel template in the GTM community gallery
Add the Facebook Pixel template to your GTM workspace
Configure the Pixel Tag
- In the tag configuration, set the Event Name to "PageView"
- Find your Pixel ID in Meta Events Manager (it's a long number like 123456789012345)
- Enter your Pixel ID in the "Facebook Pixel ID" field
- 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:
- Click on the "Triggering" section
- Click the "+" icon to create a new trigger
- Select "All Pages" as the trigger type
- Click "Save"
Configure the trigger to fire the Meta Pixel on all pages
Test and Publish
- Name your tag "Meta Pixel - PageView"
- Click "Save"
- Click "Preview" in the top right to test your changes
- Visit your website in the new window that opens
- Verify that the Meta Pixel tag fires on page load
- If everything looks good, click "Submit" to publish your changes

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:
- Install the Meta Pixel Helper extension in Chrome
- Visit your website
- Click the Pixel Helper icon in your browser toolbar
- You should see your Pixel ID with a green checkmark and "PageView" event
The Meta Pixel Helper shows your Pixel is installed and firing correctly
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:
- Go to Events Manager in Meta Business Suite
- Click on your Pixel name
- Click the "Test Events" tab
- Enter your website URL in the test browser field
- Browse your website in the test window
- Watch events appear in real-time on the left side

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

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

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:
- Go to Events Manager
- Look at your Pixel's overview page
- You should see "Active" status with a green dot
- The "Activity" section should show recent PageView events
- Your website URL should appear in the "Website" field
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:
- In Events Manager, click on your Pixel name
- Click "Settings" in the left sidebar
- Scroll to "Automatic Advanced Matching"
- Toggle the switch to "On"
- Click "Save Changes"
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

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
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