> ## Documentation Index
> Fetch the complete documentation index at: https://rabbitpay.ai/documentation/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 requires the merchant's **Meta Dataset/Pixel ID** and **Meta Conversions API Access Token** to configure the Meta integration for server-side event tracking.

There are two ways to identify the connected dataset:

* **Through Shopify** — if Facebook & Instagram is already connected to the Shopify store, the connected dataset and its ID are visible directly inside Shopify Admin.
* **Through Meta Events Manager** — the dataset can also be accessed directly at [eventsmanager.facebook.com](https://eventsmanager.facebook.com/).

The **Access Token** itself is always generated from **Meta Events Manager**, under the selected Dataset's settings.

<Note>
  This setup is a one-time step during RabbitPay onboarding. Once the Dataset/Pixel ID and Access Token are configured, RabbitPay will automatically forward purchase, checkout, and other conversion events to Meta on the merchant's behalf.
</Note>

## Prerequisites

Before starting, the merchant should have:

* Access to their **Shopify Admin**.
* **Facebook & Instagram** connected to Shopify, if using the Shopify method.
* Access to the correct **Meta Business account**.
* Permission to access the required **Dataset** in Meta Events Manager.

## Step 1: Find the Dataset / Pixel ID through Shopify

Use this path inside Shopify Admin to locate the connected Meta Dataset:

```text theme={null}
Shopify Admin
      ↓
Facebook & Instagram
      ↓
Settings
      ↓
Share data
      ↓
Behavior will be tracked with this dataset
```

<Steps>
  <Step title="Log in to Shopify Admin">
    Sign in to the merchant's Shopify store as an administrator.
  </Step>

  <Step title="Open Facebook & Instagram">
    From the **Sales channels** section in the left sidebar, click **Facebook & Instagram**.
  </Step>

  <Step title="Open Facebook & Instagram settings">
    Inside the Facebook & Instagram channel, open the **Settings** page.
  </Step>

  <Step title="Locate the Share data section">
    Scroll down until you find the **Share data** section.
  </Step>

  <Step title="Identify the connected Meta Dataset">
    Under **Behavior will be tracked with this dataset**, identify the connected Meta Dataset.
  </Step>

  <Step title="Note the Dataset / Pixel ID">
    Copy the Dataset/Pixel ID displayed just below the dataset name. This is the ID required for RabbitPay configuration.
  </Step>
</Steps>

<Frame caption="Figure 1: Locate the connected Meta Dataset and Dataset/Pixel ID from the Facebook & Instagram settings in Shopify.">
  <img src="https://mintcdn.com/rabbit-pay/2iOF8p_AYsOVqIn6/images/meta-pixel/shopify-dataset.png?fit=max&auto=format&n=2iOF8p_AYsOVqIn6&q=85&s=83132ad1a16cae26000d5ac5e48df816" alt="Shopify Admin Facebook and Instagram settings showing the connected Meta Dataset and Dataset ID under the Share data section" width="1280" height="726" data-path="images/meta-pixel/shopify-dataset.png" />
</Frame>

<Note>
  For security and privacy, never expose the complete Dataset/Pixel ID in public documentation screenshots. Mask at least one or two digits of the ID before publishing.
</Note>

### Alternative — access the Dataset directly

The merchant can also access the required dataset directly through **Meta Events Manager** at [eventsmanager.facebook.com](https://eventsmanager.facebook.com/).

```text theme={null}
Meta Events Manager
      ↓
Datasets
      ↓
Select the required Dataset
      ↓
Settings
```

<Tip>
  Make sure the selected Dataset corresponds to the correct Shopify store or business before proceeding. Using the wrong Dataset will result in events being reported against the incorrect Pixel.
</Tip>

## Step 2: Open Dataset Settings

<Steps>
  <Step title="Open Meta Events Manager">
    Go to [eventsmanager.facebook.com](https://eventsmanager.facebook.com/) and sign in with an account that has access to the correct Meta Business.
  </Step>

  <Step title="Select Datasets">
    From the left navigation, select **Datasets**.
  </Step>

  <Step title="Select the Dataset associated with the merchant/store">
    Choose the Dataset that matches the ID identified in Step 1.
  </Step>

  <Step title="Open the Settings tab">
    Open the **Settings** tab from the top navigation of the Dataset detail page.
  </Step>

  <Step title="Locate the Set up direct integration section">
    Scroll down until the **Set up direct integration** section is visible.
  </Step>
</Steps>

Navigation summary:

```text theme={null}
Meta Events Manager
      ↓
Datasets
      ↓
Select Dataset
      ↓
Settings
      ↓
Set up direct integration
```

## Step 3: Generate the Access Token

Inside the **Set up direct integration** section:

<Steps>
  <Step title="Review direct integration options">
    Review the direct integration options shown by Meta, including the recommended **Set up with Dataset Quality API** option.
  </Step>

  <Step title="Locate the Generate access token button">
    Find the **Generate access token** button under the direct integration options.
  </Step>

  <Step title="Click Generate access token">
    Click **Generate access token**. Meta will generate a new Conversions API Access Token and display it on screen.
  </Step>

  <Step title="Copy the generated Access Token">
    Copy the Access Token immediately from the dialog.
  </Step>

  <Step title="Store the Access Token securely">
    Store the token in a secure password manager or credentials vault. It will be required during RabbitPay configuration.
  </Step>
</Steps>

<Frame caption="Figure 2: Generate the Conversions API Access Token from the Dataset Settings page in Meta Events Manager.">
  <img src="https://mintcdn.com/rabbit-pay/2iOF8p_AYsOVqIn6/images/meta-pixel/generate-access-token.png?fit=max&auto=format&n=2iOF8p_AYsOVqIn6&q=85&s=0521c2203afca66ba994121e42b7675c" alt="Meta Events Manager Dataset Settings page showing the Set up direct integration section and the Generate access token button" width="1600" height="918" data-path="images/meta-pixel/generate-access-token.png" />
</Frame>

<Warning>
  The generated Access Token is a sensitive credential. Never expose it in screenshots, public documentation, frontend code, GitHub repositories, or public messages. If a token is accidentally exposed, generate a new one from Meta Events Manager immediately.
</Warning>

## Step 4: Collect the Required Credentials

After completing the previous steps, the merchant should have both of the following credentials ready:

1. **Meta Dataset / Pixel ID** — identified from Shopify or Meta Events Manager in Step 1.
2. **Meta Conversions API Access Token** — generated from Meta Events Manager in Step 3.

These credentials are required to configure the **Meta integration with RabbitPay**. Keep both values available when you begin the Meta configuration step during RabbitPay onboarding.

## Verification

Before configuring RabbitPay, confirm that:

* The correct **Meta Dataset** has been selected.
* The **Dataset/Pixel ID** has been identified.
* The **Conversions API Access Token** has been generated.
* The Access Token has been **copied and stored securely**.
* Both credentials are **ready for RabbitPay configuration**.

## Security Notes

<Note>
  * Never expose the Meta Access Token publicly.
  * Mask one or two digits of the Dataset/Pixel ID in documentation screenshots.
  * Confirm that the selected Dataset belongs to the correct merchant before configuring RabbitPay.
  * Do not include real Access Tokens in examples, tutorials, or support tickets.
</Note>

<Warning>
  If the Access Token is compromised, generate a new one from Meta Events Manager and update it in RabbitPay immediately. An invalid or replaced token will prevent server-side events from being delivered to Meta, resulting in gaps in conversion tracking.
</Warning>

## Next Steps

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

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