How to Add Facebook Pixel Manually in Magento 2?

Today, we’re going to teach you guys how to add Facebook Pixel manually in a Magento 2 store.

Facebook Pixel is basically a tracking code that allows store owners to track people interacting with your Facebook Ad.

In other words, Facebook Pixel helps to collect critical information about visitors like which pages they visit and which actions they take when browsing your store.

This information, as a result, allows you to optimize your Facebook Ad Campaigns & boost your business growth.

And the best part is, it is extremely easy to add Facebook Pixel to your Magento 2 store.

In this post, we’ll show you exactly how to add Facebook Pixel manually to your Magento 2 store.

Step-By-Step Process to Add Facebook Pixel Manually in Magento 2

Please follow the below steps to learn how to add Facebook Pixel Manually in Magento 2.

Step - 1

First of all, we need to get Facebook Pixel Code.

For this, log in to your Facebook Business Account, navigate to the Events Manager from the left side menu and click on the Connect to Data Source button.

Step - 2

After that, select Web & click on the Facebook Pixel. Then, click on the Install Code Manually button.

Step - 3

Next, click on the Copy Code button to get the code.

Step - 4

Once you finally have your Facebook Pixel tracking code, it’s time to add it to your Magento 2 store manually.

For this, log in to your admin panel, navigate to Content > Design > Configuration, and click on the Edit button of the Store View you want to add Facebook Pixel tracking code.

Step - 5

Now, expand the HTML Head section and do the following:

  • Paste your Facebook Pixel tracking code in the Scripts and Style Sheets field.
  • Click on the Save Config button to finish the process.

Conclusion

And that’s just it!

This is how you can add Facebook Pixel manually in your Magento 2 store.

And if you need our professional assistance, feel free to contact us at any time.