> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Facebook Pixel on Payment Success Page

> You should integrate Facebook Pixel on your payment success page to track and analyse the advertisement conversion to payments if you:

* Use Razorpay Webstore to accept payments from customers and redirect them to a success page post payment.
* And, advertise on Facebook and use Facebook Pixel to track conversions.

## Prerequisites

* [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546).
* Create a payment success page on your domain and [add the Facebook Pixel to it](https://www.facebook.com/business/help/952192354843755?id=1205376682832142).

## Workflow

Let us assume you run a website selling pet supplies. You attract customers using advertisements on Facebook and sell them pet products using Razorpay Webstore.

To track and measure the effectiveness of these Facebook advertisements and how many of them convert into purchases, you need to add a redirect from your store to this success page.

To do this:

<Steps>
  <Step title="Step 1">
    Navigate to your Webstore in the edit mode.
  </Step>

  <Step title="Step 2">
    Click **Page Settings**.
  </Step>

  <Step title="Step 3">
    In the **Action after Success Payment** field, select **Redirect to your website**.
  </Step>

  <Step title="Step 4">
    Enter your website's success page URL here as shown:
  </Step>
</Steps>

Every time a customer successfully completes a payment, they are directed to the success page. Facebook pixel tracks this event.

### Related Information

* [Add Facebook Pixel to Razorpay Webstore](/payments/webstore/plugins-add-ons/fb-pixel)
* [Add Google Analytics Tracking ID](/payments/webstore/plugins-add-ons/google-analytics)
