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

# Meta Pixel Plugin

> Meta (Facebook) Pixel — Pixel ID, optional Conversions API token.

**Meta Pixel** (`analytics.meta_pixel`) is a Streamly **plugin** in the **analytics** category.

Loads the Meta browser pixel on the storefront. Optional Conversions API token enables server-side events for better attribution.

## Learn the service

Watch this overview of the vendor platform (helpful before you paste keys into Streamly).

<Frame caption="How to Set up Facebook Pixel to Increase Sales — HubSpot Marketing.">
  <iframe src="https://www.youtube.com/embed/ePVd3capgVk" title="How to Set up Facebook Pixel to Increase Sales" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />
</Frame>

## At a glance

| | |
| - | - |
| **Plugin ID** | `analytics.meta_pixel` |
| **Primary key** | `pixelId` |

## How it works

Browser pixel via storefront analytics; optional CAPI with `accessToken`.

## Activation keys

Configure in `/admin/plugins` → **Meta Pixel** → Configure. Secret fields stay server-side — never commit them or expose as `NEXT_PUBLIC_*` unless the key is intentionally public (e.g. Stripe publishable key).

| Key | Label | Required | Secret | Docs |
| - | - | - | - | - |
| `pixelId` | Pixel ID | Yes | No | [Pixel help](https://www.facebook.com/business/help/952192354843755) |
| `accessToken` | Conversions API access token | Optional | Yes | [CAPI](https://developers.facebook.com/docs/marketing-api/conversions-api/get-started) |

## Setup guide

<Steps>
  <Step title="Create Pixel">Events Manager → copy Pixel ID.</Step>
  <Step title="Configure">Paste into plugin (+ optional CAPI token).</Step>
  <Step title="Verify">Meta Pixel Helper on storefront.</Step>
</Steps>

## Official vendor documentation

* [Pixel help](https://www.facebook.com/business/help/952192354843755)
* [Conversions API](https://developers.facebook.com/docs/marketing-api/conversions-api/get-started)

## Related

* [GA4](/plugins/google-analytics)
* [GTM](/plugins/google-tag-manager)
* [Plugins Overview](/plugins/overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.