Home / Blog / How to add Facebook Pixel on Magento 2
How to add Facebook Pixel on Magento 2

How to add Facebook Pixel on Magento 2

  • Anna KoshevaAnna Kosheva
  • June 1, 2022

    June 1, 2022

Making Meta ads work is not so easy. Without an accurate understanding of user behavior, creating effective campaigns on Meta will be quite difficult.

That’s why you need Meta Pixel – a small piece of code that matters a lot. You add a Meta pixel to Magento 2, allow it to track information about various events that users perform on your website, and send this data to Meta Ads Manager.

The data collected Meta pixel script  allows you to set up a Meta ad that converts.

So how do you add a Meta Pixel to your Magento 2 site?

Why do you need Meta Pixel?

The Meta pixel has great importance in three areas: Audience creation, measurement, and optimization.

Meta Pixel collects:

  • Key page views
  • Product searches on your website
  • Add to cart/wishlist
  • Checkout
  • Add payment information
  • Purchases or checkout flow
  • Lead
  • Subscription, sign-up

How to install it? 

1. Install the Meta Pixel extension for Magento 2.

2. Go to Stores> Condition> Pronko Extensions> Meta Pixel and click Stores> Configuration> Meta> Business Extension.

3. Start integrating the Meta Business module.

4. Continue integrating with your Meta account. If you don’t have a Meta account, create one.

5. Start opening your store and choose what you want to manage by adding a Meta pixel to your Magento store.

6. Select Business Manager. If you don’t have a Meta Business account, create one. It allows you to manage your Meta page, directory, and pixel.

7. Add your Meta page to your Magento 2 store to be able to show your products in the Meta store. Create a Meta page if you haven’t already.

8. Add your Instagram to Magento 2 if you’ve linked your Instagram account to Meta Manager.

9. Select the Magento Catalog that you want to add to Meta and create dynamic ads based on the data collected by Meta Pixel.

10. Add your Meta Ads account if you want to advertise your products or services or just skip the connection.

11. Select the Meta Pixel you want to add to the Magento store.

Magento – Meta Pixel is a pixel that will be added to the builds of your website as soon as you finish integrating the Meta Business module. If you have created some pixels before, they will also appear in this list.

12. Verify your Commerce Account, the Meta page you added earlier.

Once you have verified your Commerce Account, you will see all the information you provided earlier. Review and check it out. Then you will see what Meta for Magento will have access to. Some options are required and some you can disable. This is the last step. So when you click Next, your Magento 2 store will be integrated into Meta, and Meta pixel will be added to your store pages.

Do you want to add Meta Pixel? Get support with Pronko Consulting and Meta Pixel extension: 

  • Add Facebook Pixel on all Pages
  • Track dynamic events such as Product view, Category view, and add to cart
  • Track conversion on your website
  • Enable or disable dynamic events separately
  • Easily manage Facebook integration from Magento Admin

Please, contact us if you have any questions at support@pronkoconsulting.com

  • Anna KoshevaAnna Kosheva
  • June 1, 2022

    June 1, 2022

Sign up and don't miss our awesome Mage Mastery lessons and updates!

Related Posts
Magento 2 Payment Gateway API Classes

Magento 2 Payment Gateway API classes and interfaces explained with examples and tips on how to implement a custom payment method.

eCommerce Digest #46

eCommerce Digest #46

editAnna Kosheva
edit December 13, 2022

What eCommerce trends will 2023 bring us? Learn more about them and eCommerce future in the first digest in 2023!

Magento Tech Digest #219

Magento Tech Digest #219

editAnna Kosheva
edit December 13, 2022

How to custom UI Component Filter? How to show payment methods for particular categories in Magento 2? Learn more here.

If you like this blog post, you may want to watch
Max Pronko
Web Icon13 lessons
Clock Icon1 hour 57 mins
In this free course, you will learn Magento 2 development concepts and gain knowledge of building a fully functional Magento 2 Blog module. The online course will help you develop the necessary skills to become an Adobe Commerce Developer Expert.
Max Pronko
Web Icon20 lessons
Clock Icon15 hours 00 mins
Adobe Certified Professional — Magento Commerce Developer Study Group is an 10-week (1.5 hours/week) instructor-led study group. This study group will help PHP and JavaScript developers evaluate their readiness and prepare for the Adobe Certified Professional — Magento Commerce Developer exam.
2023 © Made with ❤ by Max Pronko