This free Facebook Pixel extension allows you to track your visitors' actions by sending events to your Facebook Ads Manager and the Facebook Analytics dashboard where they can be used to analyze the effectiveness of your conversion funnel and to calculate your return on ad investment.
This extension is also compatible with Magento Cookies Policy.
This is the tested versions:
>= 2.3.1 EE/CE
Run the following command in Magento 2 root folder:
composer require magestat/module-facebook-pixel
Run the following command in Magento 2 root folder:
git clone [email protected]:magestat/magento2-facebook-pixel.git app/code/Magestat/FacebookPixel
Run the following command in Magento 2 root folder:
php bin/magento module:enable Magestat_FacebookPixel
php bin/magento setup:upgrade
Clear the caches:
php bin/magento cache:clean
- STORES > Configuration > MAGESTAT > Facebook Pixel:
- Enable Module tab, select Enabled option to enable the module (toggling per store).
- Settings tab, Select option if you want to Include Product Taxes.
- Pixel ID tab, Fill the Facebook Pixel Track Code ID.
- Track Options tab, Select which events you want to track.
Currently tracking:
- Page view:
- Content view
- All and every page load
- Product page:
- Content view
- Add to cart event
- Checkout page:
- Content view
- Initiate checkout event
- Success page
- Content view
- Purchase event
Let us know if your looking for a custom track or one of our events are not triggered properly.
Want to contribute to this extension? The quickest way is to open a pull request on GitHub. If we like your suggestion we will add this request for free at the next releases.
If you encounter any problems or bugs, please open an issue on GitHub.