To get healthy results from Facebook and Instagram ads, you have to know what users do on your website after they see or click an ad: do they view products, add to cart, fill in a form, buy? The tool that measures this is the Facebook Pixel, now called the Meta Pixel.
In this guide we explain what the Pixel is, what it does, how it works, how it differs from the Conversions API, how to create and install it manually, with WordPress and with Google Tag Manager, which events to track, how to test it and which mistakes to avoid. Meta’s interface changes often, so menu names may differ slightly.
What Is the Facebook Pixel?
A small piece of code installed on your website that sends information about visitor actions to Meta, so that you can measure ad performance, build audiences and optimize campaigns.
Is the Facebook Pixel the Same as the Meta Pixel?
![]()
Yes. After Facebook’s parent company became Meta, “Facebook Pixel” came to be called “Meta Pixel”. People use both names for the same tool. See also what is Meta.
What Does the Facebook Pixel Do?
- Measures conversions on the website: purchases, leads, sign-ups.
- Shows ad performance beyond clicks.
- Enables remarketing, showing ads to people who visited your site; see what is remarketing.
- Supports lookalike audiences: people similar to your customers.
- Supports ad optimization: Meta’s system learns who is likely to convert.
- Measures ad revenue when purchase values are sent; compare with Google Ads conversion value.
How Does the Facebook Pixel Work?
When a visitor loads a page that has the Pixel, the code runs, records the page view and any events you set, and sends them to Meta along with browser identifiers. Meta matches these actions with people who saw or clicked your ads, where possible.
Advantages of Using the Facebook Pixel
- Measurable ad results.
- More accurate budget management.
- Remarketing audiences.
- Funnel analysis; see the marketing funnel.
- Dynamic product ads.
- Comparing campaigns.
- Custom conversions.
Limitations of the Facebook Pixel
Browser privacy settings, ad blockers and consent choices can limit tracking. Data may be incomplete, so measurements are best used as strong indicators, not as perfect counts.
Facebook Pixel vs. Conversions API
The Pixel sends data from the visitor’s browser. The Conversions API sends data from your server directly to Meta, which is more resilient to browser limitations. Many advertisers use both together, with the same events de-duplicated, for the best coverage.
On Which Sites Is the Facebook Pixel Used?
Any website where you want to measure results of Meta ads: online stores (see what is e-commerce software), lead generation sites, blogs and landing pages.
What Do You Need to Install the Pixel?
- An ad account or business portfolio; see how to create a Facebook Business Manager account and Meta Business Suite
- Access to edit your website or tag manager
- Clear goals for which events to measure
How to Create a Facebook Pixel
- Open Meta Events Manager.
- Connect a web data source.
- Name the Pixel.
- Enter your website address.
- Choose the installation method.
Comparison of Installation Methods
| Method | Difficulty | Best for |
|---|---|---|
| Manual code | Medium | Custom or simple sites |
| Plugin or partner integration | Easy | WordPress and e-commerce platforms |
| Google Tag Manager | Medium | Teams that already use GTM |
| Conversions API | Harder | Server-side accuracy |
How to Install the Facebook Pixel Manually
- Get the base code from Events Manager.
- Add it to the head section of every page.
- Publish the changes.
- Test the Pixel (see below).
How to Install the Pixel on WordPress
On WordPress:
- With a plugin: use the official Meta plugin or a reputable tag plugin and connect your Pixel ID.
- Manual theme installation: add the code to the header of your theme (preferably a child theme).
- WooCommerce events: make sure that add-to-cart and purchase events are sent with the right values.
How to Install the Pixel with Google Tag Manager
With Google Tag Manager:
- Get your Pixel ID.
- Create a new tag in GTM.
- Add the base Pixel code (or use a template).
- Choose the trigger, usually all pages for the base code.
- Test in preview mode.
- Publish the container.
What Are the Facebook Pixel Standard Events?
PageView, ViewContent, Search, AddToCart, AddToWishlist, InitiateCheckout, AddPaymentInfo, Purchase, Lead, CompleteRegistration and Contact are among the standard events.
Which Events Should E-Commerce Sites Track?
PageView, ViewContent, AddToCart, InitiateCheckout and Purchase (with value and currency). For product catalogs, product identifiers such as GTIN help matching. See how to do e-commerce and e-commerce SEO.
Which Events Should Lead Generation Sites Track?
PageView, ViewContent on key pages, Lead or CompleteRegistration for successful form submissions and Contact for calls or chats. Use dedicated landing pages with a clear Call to Action.
Custom Events and Custom Conversions
If standard events do not fit, you can create custom conversions based on URL rules or custom events, such as viewing a pricing page.
How to Test the Facebook Pixel
Use the Meta Pixel Helper browser extension and the Test Events tool in Events Manager. Visit your site, perform the actions and check that the right events fire once, with the right parameters. Test a real purchase flow (or a test order) before running campaigns.
How to Use the Pixel in Ad Campaigns
Choose a conversion objective, select the Pixel and event to optimize for, and give the system enough conversions to learn. Build remarketing audiences from visitors, and lookalike audiences from purchasers. See how to advertise on Facebook, digital ad management and our Facebook advertising service. Good ads also need a clear advertising message strategy.
Measuring Results
Track conversions, CPC, CPA and return on ad spend. Compare Meta’s numbers with Google Analytics (see also how to use Google Analytics) to catch differences. Run A/B tests to improve creatives and audiences.
Privacy, Consent and Legal Compliance
Tracking depends on user consent and privacy rules. Use a cookie consent mechanism and send data only according to the user’s choices and applicable law. For an overview of e-commerce rules in Türkiye, see the Electronic Commerce Law. Describe your data use in your privacy policy.
Common Mistakes in Pixel Setup
- Only installing PageView. Site visits are measured, but sales or form results are not.
- Not sending the purchase value. You see order counts but cannot calculate revenue and ROAS.
- Running ads without testing. You may find out after the campaign starts that events do not work.
- Connecting the wrong Pixel to the ad account. Data goes to a different business or ad account.
- Counting a click on the form button as a lead. Conversions may occur even if the user did not submit; measure successful submissions where possible.
- Firing the Purchase event on the payment page. A purchase is counted before the payment is completed.
- Installing the Pixel twice. The same event can be reported several times.
- Including test orders in real revenue. Setup tests can distort reports.
- Ignoring privacy settings. Sending data without consent creates legal and trust problems.
Pixel Setup Checklist
- Pixel created and connected to the right business and ad account
- Base code installed once on all pages
- Key events (view, add to cart, checkout, purchase or lead) set up with values
- Conversions API considered for resilience
- Tested with Pixel Helper and Test Events
- Consent and privacy handled
- Reports checked after launch
For a complete performance approach, see the digital performance agency article.
Frequently Asked Questions
What is the Facebook Pixel?
A code on your website that sends visitor actions to Meta so you can measure ad results, build audiences and optimize campaigns.
Is the Facebook Pixel free?
Yes, creating and using the Pixel is free; you pay for the ads you run.
Do I need the Pixel to run Facebook ads?
You can run ads without it, but you cannot properly measure website conversions or optimize for them.
What is the difference between the Pixel and the Conversions API?
The Pixel sends data from the browser; the Conversions API sends it from your server. Using both gives more complete data.
How can I check whether the Pixel works?
Use the Meta Pixel Helper extension and the Test Events tool in Events Manager.
Can I install the Pixel with Google Tag Manager?
Yes, create a tag with the Pixel code, set the trigger, test in preview mode and publish.
Which events should I track in an online store?
PageView, ViewContent, AddToCart, InitiateCheckout and Purchase, with value and currency.
Why are my Pixel numbers different from Google Analytics?
Different attribution, tracking methods and privacy settings produce different numbers. Compare trends rather than expecting identical counts.
Is user consent needed for the Pixel?
In many places, yes. Use a cookie consent mechanism and follow the privacy rules that apply to your audience.




