Menu
ServicesAI Marketing AgencyFacebook & Instagram AdsAI Call ReceptionistWebsite DesignCustom AI AutomationGoogle Ads ManagementLocal SEOView all services
IndustriesRestaurantsDental PracticesHVACReal EstateAuto DetailingContractors
ResourcesAll ResourcesLocal SEO CheckerMissed Call CalculatorMarketing AssessmentFacebook Ad Cost CalculatorBlog
AI Receptionist
Results
Facebook Ads

How to Set Up Meta Pixel for Your Business

By Landon Sprangers··8 min read

Updated

How to Set Up Meta Pixel for Your Business: A Complete Guide

The Meta Pixel (formerly called the Facebook Pixel) is one of the most important tools for any business running Facebook or Instagram ads. It is a small piece of JavaScript code that lives on your website and tracks what visitors do after they click on your ads. Without it, you are running campaigns without any ability to measure results, build retargeting audiences, or let Meta's algorithm optimize for conversions.

In this guide, we will walk you through the entire process of setting up the Meta Pixel for your business, from creation to installation to testing.

What the Meta Pixel Does

Think of the Meta Pixel as a bridge between your website and Meta's advertising platform. When someone clicks on one of your Facebook or Instagram ads and visits your website, the Pixel recognizes them and tracks their behavior. This data flows back to Meta and does three critical things:

  • Conversion tracking: You can see exactly how many people took a desired action (like filling out a form or making a purchase) after seeing or clicking your ad.
  • Audience building: You can create custom audiences of people who visited specific pages on your website, which allows you to run retargeting campaigns.
  • Optimization: Meta uses Pixel data to find more people who are similar to those who already converted, which makes your campaigns more efficient over time.

Step 1: Create Your Meta Pixel

To create a Pixel, you need a Meta Business Suite account and an ad account. Here is how to get started:

  • Go to Meta Events Manager at business.facebook.com/events_manager
  • Click "Connect Data Sources" and select "Web"
  • Choose "Meta Pixel" as your connection method
  • Name your Pixel (use your business name for easy identification)
  • Enter your website URL when prompted
  • Click "Continue" to create the Pixel

Once created, Meta will give you a Pixel ID, which is a unique number that identifies your specific Pixel. You will need this ID for the installation step.

Step 2: Install the Pixel on Your Website

There are several ways to install the Meta Pixel depending on your website platform. Here are the most common methods:

Manual Installation (Any Website)

Meta provides a base code snippet that you need to paste into the header section of every page on your website. This code should go between the opening and closing head tags so it loads before the rest of the page content.

If you are comfortable editing your website's code, this is the most straightforward approach. Copy the code from Events Manager and paste it into your site's header template or global header file.

WordPress Installation

For WordPress sites, the easiest approach is to use a plugin. Popular options include:

  • PixelYourSite: A comprehensive plugin that handles Pixel installation, event tracking, and Conversions API setup.
  • Official Meta Plugin (Facebook for WordPress): Meta's own plugin that integrates the Pixel and Conversions API.
  • Google Tag Manager: If you already use GTM, you can add the Pixel through a custom HTML tag.

Wix, Squarespace, and Shopify

Most modern website builders have built in integrations for the Meta Pixel. In Wix, go to Marketing Integrations and add your Pixel ID. In Squarespace, navigate to Settings, then Advanced, then Code Injection. Shopify has a dedicated Facebook Pixel field in the Online Store preferences.

Step 3: Configure Your Events

The base Pixel code tracks page views automatically, but to measure actual conversions, you need to set up specific events. Events are the actions that matter most to your business. For a local service business, the key events typically include:

  • Lead: When someone submits a contact form or requests a quote.
  • Schedule: When someone books an appointment.
  • Contact: When someone clicks a phone number or email link.
  • ViewContent: When someone views an important page like your services or pricing page.

You can set up events in two ways. The first is using Meta's Event Setup Tool, which lets you point and click on elements of your website to define events without writing code. The second is adding event code manually to specific pages or button clicks on your website.

Step 4: Set Up the Conversions API

As we discussed in our guide on tracking Facebook ad conversions, the Conversions API (CAPI) is a server side tracking solution that works alongside the Pixel to provide more reliable data. Browser privacy changes have made Pixel only tracking less accurate, so CAPI is now essential for serious advertisers.

Many platforms offer one click CAPI integration. If you are on WordPress, the PixelYourSite Pro plugin or the official Meta plugin can handle the server side connection. For other platforms, check your website builder's app marketplace for Meta Conversions API integrations.

Step 5: Verify Your Installation

After installing the Pixel and configuring events, you need to verify that everything is working. Here are the steps:

  • Install the Meta Pixel Helper: This is a free Chrome extension that shows you whether the Pixel is firing on any page you visit. Install it, navigate to your website, and check that the Pixel Helper icon shows a green checkmark.
  • Check Events Manager: Go to Events Manager in your Meta Business Suite and look for activity on your Pixel. You should see page view events almost immediately after installation. Other events will appear as people interact with your site.
  • Use Test Events: The Test Events tool in Events Manager lets you see events in real time. Open the Test Events tab, visit your website in another browser tab, and perform the actions you set up events for. You should see those events appear in the Test Events view within seconds.
  • Submit a test conversion: Fill out your own contact form or perform whatever action triggers your Lead event. Verify that it shows up in Events Manager.

Step 6: Create Your First Custom Audiences

Once your Pixel has been collecting data for a few days, you can start building custom audiences for retargeting. Go to Audiences in your Meta Ads Manager and create a Custom Audience based on website traffic. Some valuable audiences to create include:

  • All website visitors in the last 30 days
  • People who visited specific service pages but did not fill out a form
  • People who started filling out a form but did not complete it
  • People who visited your site multiple times

These audiences allow you to show targeted ads to people who have already expressed interest in your business, which typically produces higher conversion rates and lower costs per lead.

Common Pixel Setup Mistakes

  • Installing the Pixel in the wrong location: The Pixel code must go in the head section of your website, not the body. If it is in the wrong place, it may not fire before the user navigates away.
  • Multiple Pixels on one site: Unless you have a specific reason, you should only have one Pixel installed on your website. Multiple Pixels can cause duplicate event tracking and data confusion.
  • Not assigning the Pixel to your ad account: In Business Manager, make sure your Pixel is assigned to the ad account you use for running campaigns. Without this connection, conversion data will not appear in your Ads Manager reports.
  • Forgetting to update after website changes: Any time you redesign your site, change forms, or modify key pages, check that your Pixel and events are still firing correctly.

Getting Professional Help

Setting up the Meta Pixel correctly is foundational to everything else in your Facebook advertising. If any of these steps feel overwhelming or you want to make sure everything is configured properly from the start, contact Landon Scales. We set up and verify Pixel tracking for all of our advertising clients to ensure every campaign is built on solid data from day one.

Want Help Implementing These Strategies?

Book a free strategy call to discuss how we can apply these strategies to your specific business.

Book Your Free Call
Your Move

Find out what your phone is costing you.

Fifteen minutes. I will show you where calls are leaking, what it costs, and what I would build. Free either way.

No contracts. No pressure. Just a real conversation about growing your business.

Call nowBook a 15 min call