v1.0.9

Quick Start

Our Facebook Marketing for Magento 2 is a simple, yet powerful extension that allows you to track the shopping behavior of your customers. Gathered data is supplied through the Google Tag Manager service to Google Enhanced Ecommerce analytics to get hints on how to increase marketing ROI and boost sales.

Use this extension to track the shopping behavior of customers. Know when they add/remove/view cart, add to wishlist, begin checkout, make purchase, choose shipping and payment methods, and many other actions.

Configuration Settings

The module Google Tag Manager for Magento 2 requires a prior configuration before it is fully ready to use.

Navigate to Store > Settings > Configuration > Mirasvit Extensions > Facebook Marketing to open the module's settings.

Option Description
Enable Facebook Pixel Set it to yes to allow integration of Facebook's tracking code into your website,
Facebook Pixel ID Field for a Unique identifier assigned to the Facebook Pixel that you create within your Facebook Ads Manager account. Follow the Facebook manual to get the Pixel ID.
Facebook Pixel code Paste here a piece of JavaScript code provided by Facebook for your Meta Pixel. This code snippet contains your unique Facebook Pixel ID and is responsible for tracking user interactions on your website, such as page views, clicks, and conversions.
Pixel Domain Verification Paste here a meta tag to verify ownership of your store domain where you've installed the Meta Pixel.
Access Token A field for a unique identifier provided by Facebook that allows to securely connect your server directly to Facebook's Conversions API.

Setup Facebook Marketing

In order to connect your Magento 2 store to the Facebook using our extension, it is required that you create a business account on the Facebook. Facebook Marketing is used for data collection, and to analyze it with Enhanced Ecommerce reports.

To connect your store with the Facebook analytics, activate the Facebook Marketing extension and copy-paste Facebook code snippets into the setting fields.

Ensure you have a Facebook account with enough access rights to access the Facebook Ads Manager.

1. Get Meta Pixel code snippets and access token

In your Facebook open Ads Manager > Events Manager. Follow the manual from Meta (Facebook) to create the Meta Pixel. Copy the provided Pixel ID, Picel code snippet and Pixel domain verification code.

Get the access token for the Conversion API. Follow the manual form Meta to get the access token.

2. Install Pixel in your store

In your Magento admin navigate to Store > Settings > Configuration > Mirasvit Extensions > Facebook Marketing do the following:

  • Set Enable Facebook Pixel to yes
  • In Facebook Pixel ID paste the Pixel identification number obtained on the step one
  • In Facebook Pixel code paste the Pixel snipped code
  • In Pixel Domain Verification paste the Pixel domain verification code
  • In Access Token paste the API access token

Note

Meta Pixel may require some time for activation. It may take from several minutes to several hours before Pixel will start sending data to your Facebook Ads Manager account.