Set up Meta CAPI
The Meta Conversions API (CAPI) integration lets Unveild send server-side events into the same Meta dataset your Pixel writes to. The setup has two parts:
- Provide Unveild's team with a Dataset ID and Access Token.
- Grant Unveild view access to the Pixel dataset and the ad account connected to it.
End-to-end, this should take about 5 minutes.
Part 1 — Provide the Dataset ID and Access Token
-
Go to business.facebook.com and choose your business portfolio from the dropdown.

-
Click All Tools, then go to Events Manager.


-
Open Data Sources and select the dataset where your Meta Pixel events are flowing in.
-
Click Settings, then copy the Dataset ID.

-
Scroll down to Direct integration and click Generate access token.

-
In the dropdown, select only the dataset you want CAPI integration for, then click Generate access token.

-
Copy the access token.
-
Send both the Dataset ID and the Access Token to your Unveild POC.
The Meta access token grants write access to your CAPI dataset. Share it through a secure channel (1Password, encrypted Slack message, or an encrypted email) — never paste it into a public ticket or Git repository.
Part 2 — Grant view access to the Pixel dataset
First invite Unveild to your business portfolio, then assign it your ad account and your dataset.
-
Go to business.facebook.com and choose your business portfolio from the dropdown.
-
Go to Settings. Under Users, click People, then click Invite people.


-
In the Email address field, enter
ads@unveild.ai.
-
In Give access, click Next.
-
In Assign assets, click Next.
-
In Review, click Invite with 0 assets.

-
Next, under Accounts, go to Ad accounts and select the ad account connected to your pixel.

-
Click Assign assets. Under Add people, select
ads@unveild.ai; under Assign permissions, toggle View performance on, then click Assign.
-
Next, under Data sources, go to Datasets and pixels and select your main pixel and dataset (the same one you used in Part 1).

-
Click Assign access. Under Add people, select
ads@unveild.ai; under Assign permissions, toggle Use events dataset on, then click Assign.
Done
Message your Unveild Customer Success Manager once the invitation has been sent and both assets are assigned. They'll accept the invite, validate that events are landing, and confirm the integration is live.
Optional — Custom conversions for new and returning customers
Unveild can send two purchase events into your dataset: Unveild_Purchase_New_Customer and Unveild_Purchase_Returning_Customer. Custom conversions turn them into measurable, optimizable actions in Meta Ads Manager. Ask your Unveild POC whether these events are enabled for your store; this takes about 5 minutes.
-
Go to eventsmanager.facebook.com and sign in with an account that has access to the ad account.
-
Use the dropdown in the top-right corner to choose the correct ad account. Everything you create is scoped to the selected account.

-
In the left-hand menu, click Custom conversions, then click Create custom conversion.

-
In Name, enter
Unveild New Customer. -
Set Data source to the dataset Unveild sends events to (the one from Part 1). The conversion won't populate if a different source is selected.
-
Leave Action source as Website (the default).
-
In the Event dropdown, select
Unveild_Purchase_New_Customerfrom the custom events.
-
Under Rules, set URL → contains → your store's domain.

-
Click Create. The conversion appears with an Active status; it may take a short while before the first events are attributed to it.
-
Repeat steps 3–9, naming it
Unveild Returning Customerand selectingUnveild_Purchase_Returning_Customer. Data source, action source and the URL rule stay the same.
| Field | Unveild New Customer | Unveild Returning Customer |
|---|---|---|
| Event | Unveild_Purchase_New_Customer | Unveild_Purchase_Returning_Customer |
| Data source | Your Unveild dataset | Your Unveild dataset |
| Action source | Website | Website |
| Rule | URL contains your domain | URL contains your domain |
If anything blocks the setup, email support@unveild.ai with the Dataset ID (the access token is not needed for troubleshooting).