Magento 2 Facebook (Meta) Pixel Extension | Conversions API (CAPI)

Magento 2 Facebook Pixel (Meta Pixel) Extension is a data tracking tool that allows merchants and marketers to add Facebook Pixel and Conversions API to Magento via the admin panel, without any theme editing or script management. It automatically tracks conversion and lead-generation events — PageView, ViewCategory, ViewContent, CustomizeProduct, AddToCart, AddToWishlist, InitiateCheckout, AddPaymentInfo, Purchase, Refund, Lead, Contact, Search, CompleteRegistration — via both browser (pixel) and server- side (CAPI) tracking.

Magento Facebook Pixel module uses advanced matching, event deduplication, catalogue matching, and customer data protection to ensure data tracking is reliable, fast and GDPR compliant. Fully compatible with Magefan Cookie Consent and Google Tag Manager.

Pricing plans:
Compare Plans and Pricing
$99
one-time-payment-info
one-time payment
Add to Cart
Not
a subscription
60 days
money back
365 days
of free support and updates
one-time-payment-info
Lifetime
access to source code
magento 2 facebook pixel
track events for facebook pixel magento
customer journey tracking for facebook pixel magento
add facebook pixel code to magento
Live DemoLive Demo
Compatibility:Magento 2.3.0 - 2.4.9 (CE, EE, ECE, B2B)
Version:3.0.1
Downloads
23,316 downloads
Github
GitHub
Composer
Composer
Mage-OS
Mage-OS
Hyva
Hyvä
Breeze
Breeze
Made in Ukraine
Cloud
Made in Ukraine
Made in Ukraine

Why Do You Need Facebook Pixel in Magento?

To optimise Facebook and Meta Ads and create better retargeting and remarketing campaigns, you need valid data about your store performance. Facebook Pixel Module for Magento collects and sends data about customers' behaviour, product and checkout performance directly to the Facebook Ads Manager.

relevant

Track Catalog Performance

Monitor how people browse through your catalogue after clicking through ads. Track page and product views, add to carts, add to wishlists, product customisation (configurable options selected), product list views (categories, related, cross-sell, up-sell products).
relevant

Monitor Checkout Performance

See how people complete checkout steps from the start (initiate checkout) and add payment information events to purchases. Track when people drop off and find out what causes them to leave the shopping funnel and create campaigns to bring back non-buyers.
relevant

Track Customers' Behaviour

Open new retargeting opportunities for your Facebook campaigns based on customers interaction with your store through high-intent events. Use Magento 2 Facebook Pixel to learn how many people use search, create an account, fill out the contact form (contact) or any other form (lead).

Track Data Reliably with Magento 2 Facebook Pixel Extension

Magefan Facebook Pixel Extension covers browser and server-side tracking for Facebook, tracks data only after the user’s consent (if needed) and defers pixel script loading, so the data reaching Facebook Ads Manager is reliable, compliant and fast.

Add Facebook Pixel Code Without Coding

Magento Facebook Pixel extension allows you to add pixel code across all your website pages, without theme editing or tracking script management.

Paste Facebook Pixel ID directly into the admin panel and the extension handles the rest.

Start tracking data for Facebook Ads in minutes, not hours.

add facebook pixel to magento
magento 2 facebook conversions api setup

Improve Tracking with Facebook Conversions API

Don’t let ad blockers and browser restrictions stop conversion data from reaching Facebook Ads Manager.

Integrate Facebook Conversions API with Magento in a few clicks to bypass pixel tracking limitations. Use the built-in testing tool to check Conversions API integration directly from the admin.

Use Facebook server-side tracking for reliable conversion data.

Track 13 eCommerce Events

Magefan Facebook Pixel module for Magento tracks 13 conversion and lead-building events to help you see the entire customer journey from page view to purchase.

  • - Catalogue browsing: PageView, ViewCategory, ViewContent, CustomizeProduct
  • - Purchase intent: AddToCart, AddToWishlist
  • - Checkout and conversion: InitiateCheckout, AddPaymentInfo, Purchase, Refund
  • - Engagement: Lead, Contact, Search, CompleteRegistration
track ecommerce events in magento with facebook pixel
delay facebook pixel script loading

Delay Facebook Pixel Script Loading

Enable Facebook Pixel script loading without hurting customer experience.

Magento 2 Facebook Pixel delays script loading until users’ first interaction with your store: click, scroll or mouse touch.

This keeps your pages fast without losing any data tracking accuracy.

Stay Compliant with Cookie Consent

Stay compliant with GDPR, CCPA and LGPD when using Facebook Pixel in Magento.

Enable customer data protection in the Magefan Meta Pixel module to fire pixel and Conversion API events only after visitors accept cookies.

Avoid any legal risks while tracking insights for Facebook Ads.

load facebook pixel in magento after cookie consent
multi store facebook pixel magento 2

Track Data for All Store Views Separately

Create microsegments in Facebook Ads Manager instead of pulling all data into one dataset.

Assign different Facebook Pixel IDs per store or per store view to analyse and target each audience independently.

Create even more personalised Facebook campaigns and target people with unique offers.

Optimise Meta Ads with Seamless Facebook Pixel Integration

Facebook Pixel Magento Extension automatically handles event deduplication, catalogue matching and advanced matching to make sure only clean and detailed data reaches Facebook Ads Manager.

Receive Only Valid Data with No Duplication

Avoid event duplication when using both Meta Pixel (browser) and CAPI (server-side) tracking in Magento.

The Magefan Extension applies event deduplication to match and merge identical conversion events.

Make sure Facebook Ads Manager counts each tracked action only once.

magento 2 facebook pixel even dedupication
facebook pixel advanced matching magento

Gather More Customer Data with Advanced Matching

Create bigger and more accurate custom audiences for retargeting with Meta (Facebook) Ads.

Magento Meta Pixel Extension enables automatic advanced matching to improve tracking.

Collect more customer details — like email, phone and location — securely and see the real impact of your ads.

Track Each Product Correctly with Catalogue Mapping

Power catalogue and Dynamic Product Ad campaigns on Facebook with valid product details.

Map Magento product attribute identifiers, prices and categories to the fields Facebook expects so each product is tracked properly.

Use Facebook Pixel tracking in Magento to match Meta Commerce Manager catalogue and optimise your ads.

facebook pixel product attribute matching magento

How to Add Facebook Pixel to Magento 2?

relevant

Add Facebook Pixel ID

Magefan Facebook Pixel module enables you to add Facebook tracking code to Magento and create eCommerce events automatically. Just paste the Facebook Pixel ID into your admin panel.
relevant

Connect Conversions API

Generate and add the Facebook Conversions API access token to your Magento admin in minutes to set up more reliable and accurate server-side tracking.
relevant

Track valuable data safely

This Magento Facebook Pixel module makes sure you track data complying with GDPR and other laws while keeping your store speed optimised and fast.

What Data Layer Parameters Does Magento Meta Pixel Track?

Order

  • content_ids
  • content_name
  • content_type
  • contents[].id
  • contents[].quantity
  • currency
  • num_items
  • value

Product

  • content_id
  • content_ids
  • content_category
  • content_name
  • content_type
  • contents[].id
  • contents[].quantity
  • currency
  • value

Customer

  • em (email)
  • fn (first name)
  • ln (last name)
  • ph (phone)
  • db (date of birth)
  • ge (gender)
  • ct (city)
  • st (region)
  • zp (postcode)
  • country
  • external_id

Frequently asked questions about the Magento 2 Facebook Pixel

Can I have different Facebook pixels for each store/store-view/website?

collapsible icon
Magefan Facebook Pixel plugin allows you to create and assign Facebook Pixel IDs for each store view, store or website, so you can separate datasets based on the languages or regions you serve without any extra setup needed.

Note: you can keep the same Conversions API across all store views, stores, or websites since the data will be sent to an assigned dataset (Pixel ID) in Facebook Ads Manager.

Does this Facebook Pixel extension work with Facebook Commerce Catalog?

collapsible icon
The Magefan’s Facebook Pixel works seamlessly with Facebook Product Catalog, but it doesn’t connect your products to the catalog. The extension uses product attribute matching (via product identifiers and categories) to provide the highest data accuracy and relevancy while matching products you have in the Facebook Catalog.

To set up Facebook Catalog, you need to create a Facebook Product Feed. At this time, you can use the Magefan Google Shopping Feed that generates product feeds in a format Facebook requires.

How many Facebook pixel codes can you have in Magento?

collapsible icon
It is recommended to use one Facebook Pixel (script) per website to avoid any tracking and event mismatch conflicts. If you’re referring to the Facebook tracking scripts per each store or store view, Magefan extension for Meta Pixel allows you to set it up via multiple Pixel (dataset) IDs.

How to install Facebook Pixel in Magento?

collapsible icon
It is recommended to use a dedicated extension to install Facebook Pixel for Magento rather than a pixel script since the extension offers more flexibility and usually allows setting up Meta Pixel tracking via Pixel IDs for one of multiple store views. To install Magefan Facebook Pixel module or Magento the composer installation instructions in your Magefan account under the "My Downloads" section.

Alternatively, you can upload an extension archive to your Magento folder and run the composer update commands:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Does Magefan extension add a Facebook tracking pixel on AddToCart and Purchase events?

collapsible icon
Facebook Pixel plugin provided by Magefan offers both pixel and Conversions API tracking for capturing all vital eCommerce events, including AddToCart and Purchase.

Can Magento track Facebook Ads conversions automatically?

collapsible icon
No. There is no default option in Magento to track conversions for Facebook Ads automatically. You need to set up the Facebook Pixel script with all the conversion events properly and add it to Magento or use the Facebook Pixel Extension that already comes with all the conversion events.

How do I test if Facebook Pixel works in Magento?

collapsible icon
Use the Meta Pixel Helper extension for Chrome to test the Facebook Pixel connection in Magento. Additionally, navigate to your data set in the Facebook Ads Manager and test website events with the Test Events tab directly on Facebook.

Why is Facebook Pixel not tracking conversions in Magento?

collapsible icon
Facebook Pixel may fail to track conversions in Magento if the events are not configured properly, if there is a JavaScript conflict or if the tracking script is blocked by ad-blockers or cookie restrictions. Check Facebook Pixel setup and loading or implement Facebook Conversions API to fix the issue.

People Also Searched For
magento 2 facebook pixel
facebook pixel magento 2
magento facebook pixel
magento 2 facebook pixel extension
facebook conversion pixel magento
magento facebook ads extension
facebook ads extension magento 2
how to add facebook pixel in magento 2
install facebook pixel magento 2
add facebook pixel to magento 2
magento 2 add facebook pixel code

Key Features

No-code Facebook Pixel integration

Connect Meta Pixel to Magento with theme editing or manual script setup

Facebook Conversion API

Extra
Send tracked events directly to Facebook (Meta) servers for more accurate and reliable tracking

Advanced conversion events

Plus
Track additional events like AddToCart, AddToWishlist, AddPaymentInfo and View Category for complete funnel tracking

Server-side tracking

Extra
Improve data accuracy and quality by tracking events through your server, not just browser

Advanced Matching

Plus
Send rich event data and improve event accuracy by sending customer date to Meta securely

Basic event tracking

Track essential eCommerce events like PageView, ViewContent, InitiateCheckout and Purchase

Client-side tracking

Track customer interactions with your store directly in the browser using Facebook Pixel (Meta Pixel)

GDPR compliance

Ensure compliance tracking by sending data to Facebook only if customers give consent

Customer interaction events

Extra
Track additional customer events like Search, Contact, CompleteRegistration, CustomizeProduct

Extended customer data

Plus
Track additional customer attributes for richer reporting and Dynamic Ads optimization

Event deduplication

Extra
Prevent duplicate events by automatically matching events tracked by the browser and server

Speed optimized loading

Load Facebook Pixel efficiently only after the first interaction to improve store performance and page speed
Related Products
Magento 2 Google Tag Manager
Google Tag Manager
$199
(51)
Monitor customers' behaviour, product and checkout performance to improve your Magento store and make informed business decisions.
Magento 2 TikTok Pixel
TikTok Pixel
$149
(1)
Track customers' behaviour on your store with the TikTok Pixel and Conversion API to optimise your ads and create custom audiences.
Magento 2 SEO Extension
SEO
$199
(69)
Improve your search positions, drive more organic traffic and increase conversions. Automate your store SEO with Magefan.
 

Reviews about Magefan Facebook Pixel Extension

Magento 2 Facebook Pixel Extension
Live Demo
chevron-up Top
Stand with Ukraine! How can you help?
Find out more