magefan / module-facebook-pixel

magefan/module-facebook-pixel

Facebook Pixel for Magento 2

  • Magefan
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass proprietary

Magento 2 Facebook Pixel Extension by Magefan

Total Downloads
Latest Stable Version

icon-facebook-pixel.jpg

Magento 2 Facebook Pixel is the solution that enables you to integrate Facebook pixel tracking code to Magento without any technical knowledge. You just need your Facebook Pixel ID.

Track product performance, follow customers’ journey on checkout and use that information to personalise your Facebook campaigns.

made_in_ukraine.jpg

download-magefan-extensions.png

Useful Links

🇺🇦 Stand with Ukraine! How can you help?

Requirements

  • Magento Community 2.3.0-2.4.x (CE, EE, ECE, B2B)
  • Magefan Community Extension >= v2.1.20. Please install this extension first if you use installation via FTP.
  • Note that the extension is free only for the Magento Community (Open Source) Edition. For Magento EE, ECE, and B2B you need to purchase the license at magefan.com.

Editions & Pricing

Plans and Pricing for Magento 2 Facebook Pixel Extension

Benefits

Features

Integrate Tracking Pixel from the Admin Panel

While it was relatively hard to set up Facebook Pixel in Magento 2 before due to a lack of technical knowledge, anyone can do it now. You just need the right tool 一 Magento 2 Facebook Pixel by Magefan.

It enables you to track vital eCommerce events simply by adding your Facebook Pixel ID in the admin panel. The extension covers the rest.

magento-2-facebook-pixel.png

Optimize Facebook Ads

If you know how customers interact with your store, you can use that information to improve ads. Custom events like purchase, add to cart, add payment info, product view and others help you to segment your audience.

You can then show personalized ads to people who viewed your products but didn’t purchase anything, those who started buying, but abandoned checkout and those who just created an account. Opportunities are limitless.

Improve Conversion Rates

The more information you have on your customers' behaviour, the better you can tweak your Facebook ads to drive more conversions.

You can’t launch Facebook retargeting or remarketing campaigns using intuition and expect it to yield the results. Drive more sales by collecting data with Magento 2 Facebook Pixel Extension.

purchase-event-facebook-pixel.png

Track Customers’ Behaviour on Checkout

Checkout is one of the most important steps in the customer journey. It is also one of the stages customers tend to abandon. Having insights into how your customers behave on checkout helps you drive them back.

Use the checkout page view, add payment information and checkout success page view events to segment customers. You can then retarget them using Facebook campaigns.

Monitor Product Performance

Tracking what products customers view, add to cart and wishlist allows you to learn your audience better. Not only does it allow you to improve your catalogue and discover reasons why customers’ visit didn’t end with a sale.

It also helps you to address people who left your website without making a purchase. Make sure no visit goes unnoticed and do the best you can to drive people back to your store. Magento 2 Facebook Pixel extension will provide all the data needed do to that.

facebook-pixel-track-product-views.png

Gather Data About Customers’ Interactions with Your Store

Catalog is not the only place people spend time while in your store. Explore how your website visitors behave outside catalogue pages. Track how many people use search, visit the contacts page and create an account.

You can use the information to provide personalised offers to new customers, notify them about some new products (based on search requests) or simply optimize the pages they visit.

Optimize Facebook Pixel Loading

It’s vital that your website loads fast if you want to keep new visitors coming to your store, even if you use custom tracking pixels. Unlike any other custom JS, Facebook pixel code won’t make your website load longer.

Magento 2 Facebook Pixel Extension comes with the speed optimization option. It allows you to load Facebook Pixel JS only after the first mouse touch, scroll or click.

facebook-pixel-speed-optimization.png

Create Localized Ads on Facebook

Do you manage a multi-language store and want to retarget visitors from each store view? Easy. You simply need to create multiple Facebook Pixel IDs and use them for different store views.

Facebook Pixel Extension for Magento will use it to help you collect data on each store view. Create not only personalized Facebook ads, but localize them for the ultimate user experience.

Demo

Try out our open demo and if you like our extension please give us some stars on Github ★

Storefront Demo Admin Panel Demo
Magento 2 Facebook Pixel Extension Storefront Demo Magento 2 Facebook Pixel Extension Admin Panel Demo
view view

Support

If you have any issues, please contact us
then if you still need help, open a bug report in GitHub's
issue tracker.

Please do not use Magento Marketplace Reviews or (especially) the Q&A for support.
There isn't a way for us to reply to reviews and the Q&A moderation is very slow.

Need More Features?

Please contact us to get a quote
https://magefan.com/contact

License

The code is licensed under GPL-1.0-or-later.

Magento 2 Extensions by Magefan

Magento 2 Google Extensions

Magento 2 SEO Extensions

Magento 2 Speed Optimization Extensions

Magento 2 Admin Panel Extensions

Magento 2 Blog Extensions

Magento 2 Marketing Automation Extensions

Magento 2 Cart Extensions

Magento 2 Multi-Language Extensions

Developers Tools

Shopify Apps by Magefan

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
2.7.2 stable Fail Magento 2.4.7-2.4.9 Details 2026-01-15 10:04:07
2.7.1 stable Not tested Not yet tested Details 2025-10-23 10:29:32
2.7.0 stable Not tested Not yet tested Details 2025-08-07 08:49:19
2.6.9 stable Not tested Not yet tested Details 2025-06-23 11:02:11
2.6.8 stable Not tested Not yet tested Details 2025-05-06 12:15:12
2.6.7 stable Not tested Not yet tested Details 2025-02-04 15:43:45
2.6.6 stable Not tested Not yet tested Details 2024-12-13 14:09:14
2.6.5 stable Not tested Not yet tested Details 2024-10-23 14:42:53
2.6.4 stable Not tested Not yet tested Details 2024-10-15 07:40:05
2.6.3 stable Not tested Not yet tested Details 2024-07-05 08:32:24
2.6.2 stable Not tested Not yet tested Details 2024-05-23 09:28:09
2.6.1 stable Not tested Not yet tested Details 2024-02-26 11:34:55
2.6.0 stable Not tested Not yet tested Details 2023-06-05 14:25:27
2.5.1.1 stable Not tested Not yet tested Details 2023-04-26 08:41:02
2.5.1 stable Not tested Not yet tested Details 2023-04-25 09:21:20
2.5.0.2 stable Not tested Not yet tested Details 2023-04-21 11:21:41
2.5.0.1 stable Not tested Not yet tested Details 2023-04-20 12:47:04
2.5.0 stable Not tested Not yet tested Details 2023-04-13 10:15:54
2.4.5 stable Not tested Not yet tested Details 2022-08-02 14:46:24
2.4.4 stable Not tested Not yet tested Details 2022-03-07 12:11:20
2.4.3 stable Not tested Not yet tested Details 2021-11-04 10:47:52
2.0.0 stable Not tested Not yet tested Details 2021-08-04 08:40:08

Requires 1

Package Constraint
magefan/module-community >=2.3.3

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 10 10 rule violations (IfStatementAssignment:5, UnusedFormalParameter:2, EmptyCatchBlock:2, UnusedLocalVariable:1)
Cpd Pass 0
Composer validate Info 2 valid; 2 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 50 50
2.4.8 59 59
2.4.9 59 59

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from magefan

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.