User Tools

Site Tools


Sidebar

magento_2:facebook_pixel

For more details see how the Facebook Pixel for Magento 2 works.

Guide for Facebook Pixel for Magento 2

Connect your Magento store to Facebook in a split second. Gather more relevant data for the customer behavior analysis during your promo campaigns where Facebook or Instagram are involved.

  • Choose the events to track
  • Set up remarketing audiences
  • Optimize your ads configurations
  • Create lookalike audiences
  • Configure custom events
When you end up will all the configurations, for the correct work of the extension, please check if it's necessary to flush the Magento cache.
See an overview of how Apple's iOS 14 changes may affect advertising with Facebook.
Learn more about the Facebook Pixel configurations on the Facebook side and Events Manager in the detailed guide by Facebook.

General Settings

Enable Facebook Pixel - Select 'Yes' to enable the extension and make all the other settings below visible.

Facebook Pixel ID - Specify your Facebook ID here.

To get your Facebook Pixel ID, please follow this link and copy the ID from here:

Then paste it to the Facebook Pixel ID field on the Magento backend, save the configuration and flush Magento Cache.

Log All Events Data - Set 'Yes' to log data about the events you track.

Please note that all the info that is sent to Facebook through the Facebook Pixel is logged and stored on the Magento side. If the setting 'Log All Events Data' is enabled, you can find all events data which was sent to Facebook in this file:
/var/log/facebook_pixel.log

.

We recommend not to keep the 'Log All Events Data' setting enabled all the time in order to optimize the load on your disk space.

Manage Events

In this section, you can choose for which parts of your store you'd like to track using the events. Enable the events that you need by selecting 'Yes' from the dropdown where needed.

Here's the list of the events you can track using the extension:

  • Page View - becomes available by default as soon as the setting 'Enable Facebook Pixel' is set to 'Yes' and the Facebook Pixel ID is specified
  • Category View (Magento event name) = ViewCategory (Facebook event name)
  • Product View (Magento event name) = View Content (Facebook event name)
  • Initiate Checkout (Magento event name) = Initiate Checkout (Facebook event name)
  • Purchase (Magento event name) = Purchase (Facebook event name)
  • Product Search (Magento event name) = Search (Facebook event name)
  • Add To Cart (Magento event name) = Add to Cart (Facebook event name)
  • Add To Wishlist (Magento event name) = Add to Wishlist (Facebook event name)
  • Customer Registration (Magento event name) = Complete Registration (Facebook event name)
This is how the tracked events will look like on the side of the Facebook:
A hint: you can use the Facebook Pixel Helper browser extension for easier configuration.
How to connect Magento catalog to Facebook?

Having all the catalog data imported to Facebook will help you to get more precise results from the analytics and more correct work of the Facebook Pixel events related to products. Just for that purpose, we can suggest you to use our Product Feed for Magento 2 extension to export products from Magento and then import this data into Facebook.


Find out how to install the Facebook Pixel extension for Magento 2 via Composer.

Rate the user guide
 stars  from 1 votes (Details)
magento_2/facebook_pixel.txt · Last modified: 2021/05/14 12:37 by hshevtsova