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

# Generate Meta Pixel Access Token

> Generate the Meta Pixel ID and Conversions API Access Token required to connect Meta Pixel with RabbitPay.

## Overview

RabbitPay supports **Meta Pixel** integration for tracking customer events and improving conversion reporting through the [Meta Conversions API](https://developers.facebook.com/docs/marketing-api/conversions-api). Server-side events sent from RabbitPay to Meta help merchants recover attribution lost to browser restrictions and ad blockers, resulting in more accurate campaign performance data.

Before connecting Meta Pixel with RabbitPay, merchants must generate two credentials from their Meta account:

* **Meta Pixel ID** — identifies the Pixel that will receive events.
* **Meta Pixel Access Token** — authenticates server-side event requests sent from RabbitPay to Meta.

<Note>
  This setup is required **only once** during the RabbitPay onboarding process. Once configured, RabbitPay will automatically send purchase, checkout, and other conversion events to Meta on the merchant's behalf.
</Note>

## Prerequisites

Before starting, ensure that:

* The merchant has an active **Meta Business Account**.
* A **Meta Pixel** has already been created in Events Manager.
* The merchant has **Administrator** access to Meta Business Manager.
* The merchant has access to **Meta Events Manager**.

## Navigation

Follow this path inside Meta Business Suite to reach the Conversions API settings:

```text theme={null}
Meta Business Suite
      ↓
Events Manager
      ↓
Select Pixel
      ↓
Settings
      ↓
Conversions API
```

## Step 1: Open Meta Events Manager

1. Log in to [Meta Business Suite](https://business.facebook.com/).
2. From the left navigation menu, open **Events Manager**.
3. Select the **Meta Pixel** that you want to integrate with RabbitPay.

<Frame caption="Figure 1: Meta Events Manager dashboard with the target Pixel selected.">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/rabbit-pay/images/meta-pixel/events-manager.png" alt="Meta Events Manager dashboard showing the list of Pixels" />
</Frame>

<Tip>
  Verify that the selected Pixel belongs to the correct Meta Business Account before generating the Access Token. Using the wrong Pixel may result in incorrect conversion tracking on your storefront.
</Tip>

## Step 2: Open Pixel Settings

1. After selecting the Pixel, open the **Settings** tab from the top navigation.
2. Scroll down until you find the **Conversions API** section.

This section allows merchants to generate an Access Token for server-side event tracking. Events sent through this API are attributed to the same Pixel that handles browser-side events, giving you a unified view of conversions.

<Frame caption="Figure 2: Pixel Settings page showing the Conversions API section.">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/rabbit-pay/images/meta-pixel/conversions-api-section.png" alt="Meta Pixel Settings page with the Conversions API section visible" />
</Frame>

## Step 3: Generate the Access Token

1. Under the **Conversions API** section, click **Generate Access Token**.
2. Meta will generate a new Access Token and display it once on screen.
3. **Copy the generated Access Token immediately.**
4. Store the token securely — it will be required during RabbitPay onboarding.

The Access Token authenticates every request sent from RabbitPay to Meta using the Conversions API. A sample token looks like this:

```text Access Token (example) theme={null}
EAAG5x8x0abcXYZ123...ZDZD
```

<Warning>
  Meta displays the Access Token **only once** at the time of generation. If you navigate away without copying it, you will need to generate a new token. Save it to a secure password manager before closing the dialog.
</Warning>

<Frame caption="Figure 3: Generate Access Token dialog under Conversions API.">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/rabbit-pay/images/meta-pixel/generate-access-token.png" alt="Meta Conversions API Generate Access Token dialog" />
</Frame>

## Step 4: Copy the Pixel ID

1. Locate the **Pixel ID** displayed at the top of the Pixel details page, next to the Pixel name.
2. Click the Pixel ID to copy it to your clipboard.
3. Store the Pixel ID securely alongside the Access Token.

RabbitPay requires **both** the Pixel ID and the Access Token to complete the Meta Pixel integration. A Pixel ID is a 15–16 digit numeric string, for example:

```text Pixel ID (example) theme={null}
123456789012345
```

<Frame caption="Figure 4: Pixel details page showing the Pixel ID.">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/rabbit-pay/images/meta-pixel/pixel-id.png" alt="Meta Pixel details page with the Pixel ID highlighted" />
</Frame>

## Verification

Your Meta Pixel setup is complete when:

* The **Pixel ID** has been copied successfully.
* The **Access Token** has been generated and copied successfully.
* Both credentials are stored securely and ready to be configured in RabbitPay.

## Security Notes

<Note>
  Keep the Access Token secure. Never expose it publicly or include it in frontend code or public repositories. If the Access Token is compromised, generate a new one from Meta Events Manager and update it in RabbitPay immediately.
</Note>

<Warning>
  Do not delete or regenerate the Access Token after it has been configured in RabbitPay **unless you also update the new token within RabbitPay**. An invalid or expired token will prevent server-side events from being sent to Meta, resulting in gaps in conversion tracking.
</Warning>

## Next Steps

<CardGroup cols={2}>
  <Card title="Shopify Integration" icon="shopify" href="/integrations/shopify-integration">
    Connect your Shopify store with RabbitPay to enable 1-Click Checkout.
  </Card>

  <Card title="Razorpay Integration" icon="credit-card" href="/integrations/razorpay/generate-api-token">
    Set up Razorpay API keys and webhooks for payment processing.
  </Card>
</CardGroup>
