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

# Meta Conversions API (CAPI)

> Send server-side conversion events to Meta Ads with Upstack Signal — improve Event Match Quality and campaign optimization.

> [!NOTE]
>
> **Data direction:** This is a **destination** — Upstack sends event and conversion data **out** to this platform via server-side APIs.

## What it does

Meta's Conversions API (CAPI) lets you send conversion events directly from a server to Meta, instead of relying solely on the browser-side Pixel. Upstack Signal forwards every storefront event — page views, product views, add-to-carts, checkouts, and purchases — to your Meta Pixel via CAPI, enriched with hashed customer data and click identifiers.

For most Shopify merchants, Meta CAPI is the highest-impact destination you can connect. Events captured server-side reach Meta even when the browser Pixel is blocked by ad blockers, ITP, or cookie restrictions, which means Meta's algorithm sees a fuller picture of the conversions your ads actually drove.

The practical result is higher Event Match Quality (EMQ), more accurate ROAS reporting inside Meta Ads Manager, and stronger optimization signal for campaigns that depend on conversion events.

## How it works

Upstack Signal runs as a dual-tracking layer. The Upstack Pixel captures events in the browser and forwards each one to Upstack's edge infrastructure, where it is hashed, enriched with identity and attribution data, and then sent to Meta's Conversions API as a server-side event with a shared `event_id`. Meta deduplicates against any matching browser Pixel event using that ID, so you do not double-count.

Every event carries the strongest available match keys — hashed `email`, `phone`, `first_name`, `last_name`, `city`, `state`, `zip`, `country`, plus `fbc`, `fbp`, and `external_id` — so Meta can attribute the conversion to the right user and ad interaction.

## Setup guides

> [card] [Onboarding guide](https://docs.upstackdata.com/destinations/catalog/meta-capi/complete-how-to-guide-for-onboarding-facebook-meta-in-upstack-data.md)
>
> End-to-end walkthrough for connecting Meta to Upstack Data.

> [card] [Configure pixel destination](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-configure-facebook-meta-ads-pixel-destination-in-upstack-data.md)
>
> Configure the Meta Pixel destination inside Upstack Data.

> [card] [Find Pixel Dataset ID](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-do-i-find-my-facebook-ads-pixel-dataset-id.md)
>
> Locate your Meta Pixel Dataset ID in Events Manager.

> [card] [Generate CAPI key](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-generate-my-facebook-conversion-api-key.md)
>
> Generate a Conversions API access token in Meta.

> [card] [Update CAPI key](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-update-facebook-meta-conversion-api-key.md)
>
> Rotate or replace your existing CAPI access token.

> [card] [Disable Shopify FB data sharing](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-disable-facebook-and-instagram-data-sharing-in-shopify.md)
>
> Turn off Shopify's native Facebook integration to prevent duplicate events.

> [card] [Approve custom events](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-approve-facebook-meta-custom-events.md)
>
> Approve Upstack's custom events inside Meta Events Manager.

## Event mapping

Upstack maps storefront events to Meta standard events automatically:

| Upstack event | Meta standard event | Key match data |
| - | - | - |
| `PageView` | `PageView` | URL, referrer, user agent |
| `ViewContent` | `ViewContent` | `content_ids`, `content_type`, `value`, `currency` |
| `AddToCart` | `AddToCart` | `content_ids`, `value`, `currency` |
| `InitiateCheckout` | `InitiateCheckout` | `value`, `currency`, `num_items` |
| `Purchase` | `Purchase` | `value`, `currency`, `order_id`, `content_ids` |

PII is hashed with SHA-256 before it leaves Upstack. Upstack includes every available match key on every event — `em`, `ph`, `fn`, `ln`, `ct`, `st`, `zp`, `country`, `fbc`, `fbp`, `external_id` — to maximize EMQ.

## Health & wellness stores

If Meta has flagged or restricted your store under its Health & Wellness category, such as supplements, CBD, or wellness products, the standard setup doesn't apply. Use a new dataset and turn on **Restricted Category Mode** with a domain alias on the Meta destination's **Category Mode** tab. Upstack then skips the Meta browser pixel, sends events through the Conversions API only, removes product details, and reports events from your alias domain.

* Every screen and click in Upstack: [How to Set Up Restricted Category Mode for Meta in Upstack Data](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-set-up-restricted-category-mode-for-meta-in-upstack-data.md)
* The full onboarding, from alias domain to moving campaigns: [How to Set Up a Health & Wellness Pixel for Meta](https://docs.upstackdata.com/guides/health-wellness/setup-health-wellness-pixel-for-meta.md)

## FAQ

> [accordion] What is Event Match Quality (EMQ) and why does it matter?
>
> EMQ is Meta's score (0–10) for how reliably it can match a conversion event back to a Meta user. Higher EMQ means Meta's algorithm has more signal to optimize against, which lowers cost per acquisition and improves ROAS. Server-side delivery via CAPI typically raises EMQ compared to a browser-only Pixel because the events carry more match keys and are not blocked by browser restrictions.

> [accordion] Why send events through CAPI when I already have the Meta Pixel?
>
> The browser Pixel is blocked or degraded by ad blockers, Safari ITP, iOS privacy features, and third-party cookie restrictions. CAPI runs server-to-server, so it is not affected by any browser-side limitation. Meta itself recommends running CAPI alongside the Pixel for redundancy and higher data quality.

> [accordion] Will my events be counted twice if I run both the Pixel and CAPI?
>
> No. Upstack sends a shared `event_id` on every server-side event, and Meta deduplicates against the matching browser Pixel event with the same ID. As long as the Pixel ID in Upstack matches the Pixel ID firing in your storefront, deduplication is automatic. See [Which counts are normal and not duplicates?](https://docs.upstackdata.com/troubleshooting/complete-guide-to-fixing-duplicate-events-and-double-counted-conversions.md#which-counts-are-normal-and-not-duplicates).

> [accordion] Do I need to disable Shopify's native Facebook integration?
>
> Yes — if Shopify is also sending purchase events to the same Meta Pixel, you'll see duplicates that Meta cannot deduplicate (Shopify does not emit a matching `event_id`). Follow the guide above to disable Facebook & Instagram data sharing in Shopify before activating Upstack's Meta destination. See [Which counts are normal and not duplicates?](https://docs.upstackdata.com/troubleshooting/complete-guide-to-fixing-duplicate-events-and-double-counted-conversions.md#which-counts-are-normal-and-not-duplicates).

> [accordion] How do I verify CAPI events are arriving in Meta?
>
> Open Meta Events Manager, select your Pixel, and check the **Overview** and **Test Events** tabs. Server-side events show up with a "Server" badge. Upstack also surfaces delivery status and EMQ inside the destination settings in your dashboard.

## Related

> [card] [Identity resolution](https://docs.upstackdata.com/pixel/identity-resolution.md)
>
> How Upstack matches anonymous visitors to known customers for higher match rates.

> [card] [TikTok Events API](https://docs.upstackdata.com/destinations/catalog/tiktok.md)
>
> Set up TikTok's Events API as another server-side destination alongside Meta.

> [card] [Events not reaching destination](https://docs.upstackdata.com/troubleshooting/destination-token-expired-or-auth-error.md)
>
> End-to-end diagnostic guide when events aren't arriving at any destination.


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