Skip to content

This free Facebook Pixel extension allows you to track your visitors' actions.

License

Notifications You must be signed in to change notification settings

williankeller/magento2-facebook-pixel

Repository files navigation

Facebook Pixel for Magento 2

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.

Build Status Packagist Downloads

Compatibility

This is the tested versions:

>= 2.3.1 EE/CE

Installation

Install via composer (recommended)

Run the following command in Magento 2 root folder:

composer require magestat/module-facebook-pixel

Using GIT clone

Run the following command in Magento 2 root folder:

git clone git@github.com:magestat/magento2-facebook-pixel.git app/code/Magestat/FacebookPixel

Activation

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

Configuration

  1. STORES > Configuration > MAGESTAT > Facebook Pixel:
  2. Enable Module tab, select Enabled option to enable the module (toggling per store).
  3. Settings tab, Select option if you want to Include Product Taxes.
  4. Pixel ID tab, Fill the Facebook Pixel Track Code ID.
  5. 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

Missing an Event Track?

Let us know if your looking for a custom track or one of our events are not triggered properly.

Contribution

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.

Support

If you encounter any problems or bugs, please open an issue on GitHub.