# Magento 2 Facebook Conversion and Audience Pixel Tracking

### <span style="color: #3b82f6;">Installation and User Guide for Magento 2 Facebook Conversion and Audience Pixel Tracking Extension</span>

**Table of Contents**

1. [*Installation* ](#bkmrk-installation)
    - *Installation via app/code*
    - *Installation via Composer*
2. [*Configuration Settings for Facebook Conversion Tracking* ](#bkmrk-configuration-settin)
    - *General Settings*
    - *Analyze Data with Facebook Events Manager*
    - *Facebook Events Manager Graph*
3. *[Enable GDPR Support](#bkmrk-enable-gdpr-support)*
4. [*Front-end site view* ](#bkmrk-front-end-site-view)
    - *Facebook Pixel Tag on the Category Page*
    - *Facebook Pixel Tag on the Product Page*
    - *Facebook Pixel Tag on the Cart Page*
    - *Facebook Pixel Tag on the Checkout page*
    - *Facebook Pixel Tag on the Payment Page*
    - *Facebook Pixel Tag on the Success Page*

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Installation via app/code:**</span> Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.
    
     ```php
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    ```
- <span style="color: #f97316;">**Installation via Composer:**</span> Please follow the guide provided in the below link to complete the installation via composer.

<p class="callout success">[https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer](https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer)</p>

- <span style="color: #f97316;">**Installation via Composer(Breeze Theme):**</span> Go to My Account section then go to Composer Instructions. Run the composer config commands mentioned on the page then run the below command to install the module on hyva theme.

```php
composer require scommerce/breeze-googletagmanagerpro
```

### <span style="color: #3b82f6;">Configuration Settings for Facebook Conversion Tracking</span> [](#bkmrk--1)

Go to **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Facebook Conversion Tracking**

### General Settings [](#bkmrk--2)

- **Enabled –** Select "Yes" or "No" to enable or disable the module.
- **License Key –** Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at <support@scommerce-mage.com>.
- **New Facebook Tracking Enabled –** Set yes to enable Facebook new pixel tracking or Remarketing tag [**https://developers.facebook.com/docs/ads-for-websites/tag/api/**](https://developers.facebook.com/docs/ads-for-websites/tag/api/)
- **Audience Pixel Tag Id –** Enter Custom Audience Pixel Id. This applies to old as well as new Facebook tracking.
- **Dynamic Product Ads Enabled –** Set yes to enable the Dynamic Product Ads [**http://en-gb.facebook.com/business/help/www/455326144628161**](http://en-gb.facebook.com/business/help/www/455326144628161)
- **Remarketing Default Value –** Enter default value for events where value can't be defined like CompleteRegistration, Search **(only used for new Facebook tracking)**
- **Always Send Parent SKU –** Set "Yes" then it always send parent sku instead of child sku to facebook
- **Enable GDPR Cookie Check –** Select "Yes" or "No" to enable/disable GDPR Cookie Check
- **Force decline –** If you set this to yes then FACEBOOK tracking will be turned off unless customer accepts the cookie policy from the cookie notification message from your website
- **GDPR Cookie Key –** You can add name of your GDPR cookie here for our [GDPR extension](https://www.scommerce-mage.com/magento2-gdpr-compliance.html) the name of cookie key is **marketing\_cookie** but if you are using other GDPR extension then please check with extension developer

[![image (29).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/PyTimage-29.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/PyTimage-29.png)

[![image (30).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/rgtimage-30.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/rgtimage-30.png)

- <span style="color: #f97316;">**Analyze Data with Facebook Events Manager -**</span> Facebook Business Manager gathered enough information so that you can analyze data using event log, which shows how many times the tracker has been fired.

[![image (17).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/tmRimage-17.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/tmRimage-17.jpg)

- <span style="color: #f97316;">**Facebook Events Manager Graph -**</span> You can view the event log and graph in Facebook business manager with all the events view details**.**

**[![image (18).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/6u8image-18.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/6u8image-18.jpg)**

### <span style="color: #3b82f6;">Enable GDPR Support</span> [](#bkmrk--9)

The module is GDPR compliant which can work with both our/third party GDPR modules. You can enable the GDPR support within the module so that the tracking doesent work without users consent.

To enable GDPR support go to **Stores&gt;Configuration&gt;Scommerce Configuration&gt;Facebook Conversion Tracking** and set 'Enable GDPR cookie check' to 'Yes' then set 'Force decline' to 'Yes' and provide the GDPR cookie name in the 'GDPR Cookie Key' inputbox. If you are using our GDPR module then the cookie name is 'marketing\_cookie' but if you are using other GDPR extension then please check with extension developer. Once the setting is complete unless the customer accepts the cookie the facebook tracking won't fire.

[![image (31).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/i87image-31.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/i87image-31.png)

### <span style="color: #3b82f6;">Front-end site view</span> [](#bkmrk--9)

- <span style="color: #f97316;">**Facebook Pixel Tag on the Category Page -**</span> The extension offers all standard trackers that Facebook uses. When the category page is viewed then it shows page view with event info, which you can see in the below image.

[![image (19).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/Dg1image-19.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/Dg1image-19.jpg)

- <span style="color: #f97316;">**Facebook Pixel Tag on the Product Page -**</span> When a key page is viewed such as a product page, e.g. landing on a product detail page. Provides detailed product information (such as Prices, SKU's, Currencies and Categories) for Dynamic Product Ads. You can enable dynamic product ads from **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Facebook Conversion Tracking &gt; Dynamic Products Ads Enabled - "Yes".**

**[![image (20).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/5noimage-20.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/5noimage-20.jpg)**

- <span style="color: #f97316;">**Facebook Pixel Tag on the Cart Page**</span> <span style="color: #f97316;">-</span> When a product is added to the shopping cart, then it tracks the cart event.

[![image (17) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/1SSimage-17-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/1SSimage-17-1.png)

- <span style="color: #f97316;">**Facebook Pixel Tag on the Checkout page -**</span> It tracks checkout , when a user clicks on checkout button.

[![image (18) (2).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-18-2.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-18-2.png)

- <span style="color: #f97316;">**Facebook Pixel Tag on the Payment Page -**</span> It tracks AddPaymentInfo when a payment information is added in the checkout flow, e.g. click on payment method.

[![image (19) (2).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-19-2.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-19-2.png)

- <span style="color: #f97316;">**Facebook Pixel Tag on the Success Page -**</span> When a purchase is made or checkout flow is completed, e.g. landing on thank you/success page, provides detailed order information such as Order Value and Cart Items.

[![image (20) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/mu4image-20-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/mu4image-20-1.png)

- <span style="color: #f97316;">**Facebook Pixel Tag on Add to Wishlist Page -**</span>Add to Wishlist when "Always Send Parent SKU" set to 'NO" AND Dynamic Product Ads Enabled - "YES"

[![image (21) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/9hHimage-21-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/9hHimage-21-1.png)

- <span style="color: #f97316;">**Facebook Pixel Tag on Add to Wishlist Page -**</span>Add to cart when "Always Send Parent SKU" set to 'NO" AND Dynamic Product Ads Enabled - "YES"

[![image (22) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/ZXGimage-22-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/ZXGimage-22-1.png)

If you have a question related to this extension please check out our [**FAQ Section**](https://www.scommerce-mage.com/magento2-facebook-conversion-audience-tracking.html#customfaq) first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**