How to 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, Pixel 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
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.