Glossary
Meta Pixel
Definition
The Meta Pixel is a tracking code provided by Meta that you install on a website to record visitor actions, such as page views, add-to-carts and purchases, and connect them to ads shown on Facebook and Instagram.
Why it matters
Without the Meta Pixel, a small business running Facebook or Instagram ads mostly sees clicks. What happens after people land on the website stays a mystery. The pixel fills that gap by showing which ads actually lead to a booking, a sign-up or a sale. This lets you put your budget where it produces real outcomes, instead of guessing.
The pixel also powers audiences. You can reach past website visitors again through retargeting, or ask Meta to find people who resemble your customers with a lookalike audience. It also gives Meta's ad delivery system signals about who is most likely to take the action you care about.
How to measure or use it
1. Install the code. Create your pixel in Meta Events Manager. Then add the base code to every page of your site, either by hand or through the integration offered by your website or online store platform.
2. Set up events. An event is a specific action the pixel records. The most common ones are:
- PageView: someone viewed a page.
- ViewContent: someone viewed a product or service page.
- AddToCart: someone added an item to their cart.
- Lead: someone submitted a contact or quote form.
- Purchase: someone completed an order, ideally sent with the order value.
3. Add the Conversions API. Browser-based tracking can be blocked by certain settings or extensions. The Conversions API sends events straight from your server. Used alongside the pixel with proper deduplication, it makes your data more dependable.
4. Handle consent. Depending on the laws that apply to your business and your visitors, you may need permission before the pixel fires, usually through a cookie banner. Explain the tracking in your privacy policy, and check Meta's current rules and your local regulations.
Example
Picture a fictional online shop selling handmade candles that runs two Instagram ads. Each ad brings in 500 clicks. Thanks to the pixel, the owner sees that the first ad leads to 20 purchases while the second leads to only 5, even though it generates plenty of AddToCart events. She moves her budget to the first ad. She also builds a retargeting audience of people who added an item to their cart but didn't check out. From there, she can track her ROAS for each campaign.
Common mistakes
- Installing the pixel on only some pages, which leaves gaps in the visitor journeys it records.
- Firing the Purchase event on a page that can be reloaded, so a single sale gets counted several times.
- Loading the pixel before visitors give consent when the applicable law requires it.
- Running the Conversions API without deduplication, which doubles your reported conversions.
- Never testing the pixel after a website redesign, even though tracking may have quietly stopped working.
With SocialBrainAI
SocialBrainAI checks the Meta Pixel on your website and, once your site is connected, counts the sales generated by your Facebook and Instagram ads.
See paid advertising →Frequently asked questions
Does the Meta Pixel cost anything?
No. Creating and installing the pixel is free, and you only pay for the ads you run. The pixel can even start collecting data before your first campaign.
Do I need the pixel if I don't sell online?
It's still useful for tracking actions like booking an appointment, requesting a quote or submitting a form. It also lets you build audiences from your website visitors. Just set up the events that match your goals.
How can I check that my pixel works?
Open Meta Events Manager, which shows the events received and flags any issues. You can also run a quick test: visit your site, add an item to your cart, and confirm the event shows up.
Related terms
Full glossary →Updated November 27, 2026
Your social media, prepared by AI and approved by you