> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Facebook Pixel

> Add your Facebook Pixel to your Payment Pages to track payments and conversions from your Facebook advertisements.

Available in
🇮🇳 India
🇲🇾 Malaysia
🇸🇬 Singapore
🇺🇸 United States

You can add your Facebook Pixel to your Payment Pages Storefront to track payments and conversions from your Facebook advertisements.

**Available Tracking Metrics**

| Metrics | Description |
| - | - |
| Page Views | When a customer lands on your Payment Page. This is the default metric to track page visits. |
| Add to Cart | When a customer clicks on an add-to-cart button. |
| Initiate Checkout | When a customer clicks on a checkout button. |
| Purchase | When a customer finishes the purchase or checkout flow and lands post-payment success page. |

## Prerequisites

[Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546).

## Add Facebook Pixel to Your Payment Page

To add Facebook Pixel to your Payment Page:

1. Navigate to your Payment Page in the edit mode.
2. Click **Page Settings**.
3. Go to **Plugins and Add-ons** and click **Configure**.

   ![Configure Plugins and Add Ons](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-configure-plugins-addons.jpg)
4. Add the details:
   1. **Facebook Pixel ID**: Enter the Facebook Pixel ID.
   2. Select the metrics you want to track from the following:
      * Page Views
      * Initiate Payment
      * Add to Cart
      * Payment Complete

![Add Google Tracking ID and FB Pixel](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-fb-pixel-google-trackingid.jpg)

5. Click **Save**.

### Related Information

* [Add Facebook Pixel to your payment success page](https://razorpay.com/docs/my/payments/payment-pages/plugins-add-ons/fb-payment-success.md)
* [Add Google Analytics Tracking ID](https://razorpay.com/docs/my/payments/payment-pages/plugins-add-ons/google-analytics.md)
