Skip to main content

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:

  1. Provide Unveild's team with a Dataset ID and Access Token.
  2. 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​

  1. Go to business.facebook.com and choose your business portfolio from the dropdown.

    Meta Business Suite with the business portfolio dropdown highlighted

  2. Click All Tools, then go to Events Manager.

    Meta Business Suite sidebar with All tools highlighted

    All tools menu with Events Manager highlighted under Advertise

  3. Open Data Sources and select the dataset where your Meta Pixel events are flowing in.

  4. Click Settings, then copy the Dataset ID.

    Events Manager: Data Sources, the selected dataset, its Settings tab and the Dataset ID field highlighted

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

    Dataset settings, Set up direct integration section with Generate access token highlighted

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

    Dataset picker with a single dataset ticked, next to the Generate access token button

  7. Copy the access token.

  8. Send both the Dataset ID and the Access Token to your Unveild POC.

Treat the access token like a password

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.

  1. Go to business.facebook.com and choose your business portfolio from the dropdown.

  2. Go to Settings. Under Users, click People, then click Invite people.

    Meta Business Suite sidebar with Settings highlighted

    Settings → Users → People with the Invite people button highlighted

  3. In the Email address field, enter ads@unveild.ai.

    Invite people dialog with ads@unveild.ai in the Email address field

  4. In Give access, click Next.

  5. In Assign assets, click Next.

  6. In Review, click Invite with 0 assets.

    Review invitation step for ads@unveild.ai with the Invite with 0 assets button

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

    Settings → Accounts → Ad accounts with an ad account selected and its Assign access button

  8. Click Assign assets. Under Add people, select ads@unveild.ai; under Assign permissions, toggle View performance on, then click Assign.

    Add people and set permissions for the ad account: ads@unveild.ai ticked and View performance on

  9. Next, under Data sources, go to Datasets and pixels and select your main pixel and dataset (the same one you used in Part 1).

    Settings → Data Sources → Datasets & pixels with a dataset selected and its Assign access button

  10. Click Assign access. Under Add people, select ads@unveild.ai; under Assign permissions, toggle Use events dataset on, then click Assign.

    Add people and set permissions for the dataset: ads@unveild.ai ticked and Use events dataset on

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.

  1. Go to eventsmanager.facebook.com and sign in with an account that has access to the ad account.

  2. Use the dropdown in the top-right corner to choose the correct ad account. Everything you create is scoped to the selected account.

    Events Manager account selector in the top-right corner, open on the ad account list

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

    Events Manager with Custom conversions highlighted in the left menu and the Create custom conversion button

  4. In Name, enter Unveild New Customer.

  5. 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.

  6. Leave Action source as Website (the default).

  7. In the Event dropdown, select Unveild_Purchase_New_Customer from the custom events.

    Create a custom conversion form with the Event dropdown open on the custom events list, including Unveild_Purchase_New_Customer

  8. Under Rules, set URL → contains → your store's domain.

    Completed custom conversion form with the URL contains rule highlighted; enter your own domain in the empty field

  9. Click Create. The conversion appears with an Active status; it may take a short while before the first events are attributed to it.

  10. Repeat steps 3–9, naming it Unveild Returning Customer and selecting Unveild_Purchase_Returning_Customer. Data source, action source and the URL rule stay the same.

FieldUnveild New CustomerUnveild Returning Customer
EventUnveild_Purchase_New_CustomerUnveild_Purchase_Returning_Customer
Data sourceYour Unveild datasetYour Unveild dataset
Action sourceWebsiteWebsite
RuleURL contains your domainURL contains your domain
Issues?

If anything blocks the setup, email support@unveild.ai with the Dataset ID (the access token is not needed for troubleshooting).