The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

How to Setup Facebook Pixel Remarketing on Magento 2

In the past, I was wrong to think that Facebook was not a viable tool for marketing campaigns. However, according to the analysis from Alexa, this is one of the social networks that bring in huge traffic for every business.

Hence, the biggest question that marketers and us have to pose is how to use it as a tool to boost sales and increase conversion rates for your business. The average shopping cart abandonment rate is approximately 78%.

One of the best and most effective ways is to implement a Facebook remarketing campaign for your Magento 2 store. This way will help you achieve your goal.

In this tutorial, we will help you understand how to configure Facebook Remarketing on Magento 2.

Some related posts:

How to configure Facebook Remarketing on Magento 2

Google Tag Manager

Google Tag Manager for Magento 2

Easily monitor store stats and adjust marketing tags and snippets with simple source code

Check it out!

To configure Facebook Remarketing:

Step 1: Install Mageplaza GTM

Get Container ID for setting Magento


Setup in Magento Login to Magento Admin > Mageplaza > Google Tag Manager > Settings


  • Choose Yes to enable the module.
  • Enter Container ID from Google into Google Tag ID field.

Step 2: Create Pixel Facebook

  • Go to the Pixel tab in the GTM
  • Click Create Pixel
  • Name the pixel. You only have one pixel per account, so choose a representative name for your business.
  • Check the box to accept the terms
  • Click Create pixel

Step 3: Connect your pixel to your GTM account

First of all, you need to get your pixel’s base code here.

  • Go to the Pixel tab
  • Select Setup pixel
  • Choose Use an Integration or Tag Manager
  • Then, choose Google Tag Manager
  • Select Quick Install
  • Select Google account associated with your Google Tag Manager account
  • Click on your account name. If you do not see the appropriate account in the list, you will need to create a new account in Google Tag Manager
  • Click the container name you want to use for your Facebook pixel tag. If the desired container is not in the list, you need to create a new container in Google Tag Manager

Step 4: Add your tags and Post your changes

  • Check the boxes next to the tags you want to post. The pixel tag will be added by default. You should post this tag to complete pixel settings on your site.
  • Click Post

Google Tag Manager Installation

Learn how to create facebook product feed for Magento 2

Image Description
Vanessa is a content executive at Mageplaza. Cooking and reading books are her passion. Her particular hobby is travelling, helping her discover all around. She is an energetic marketer with the hope of making her words magical.

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

    Explore Our Products:

    People also searched for


    Stay in the know

    Get special offers on the latest news from Mageplaza.

    Earn $10 in reward now!

    Earn $10 in reward now!

    go up