> For the complete documentation index, see [llms.txt](https://docs.pos.pages.fm/pos/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pos.pages.fm/pos/english/advanced-features/optimize-purchase-event-conversions-with-facebook-capi-2024/some-basic-definitions-with-capi.md).

# Some basic definitions with CAPI

From 2024, conversion events such as Purchases will be transferred to Facebook Ads Manager in a new way, called CAPI for short. Customers need to install it to be able to sync events (such as Purchases) to Ads Manager.

{% hint style="info" %}
If you read the documentary and are still confused, what should you do to install CAPI? The answer is **To-do-Nothing.**

Pancake and Meta have AUTOMATICALLY moved all customers to CAPI, so unless there is a special purpose (setting up CAPI for IG, controlling data sets on Event Manager,...) you don't need to do anything else. .
{% endhint %}

## 1. What is CAPI (Conversion API)?

CAPI - Conversion API is a new way for third-party applications (like Pancake) to transfer order data to Facebook, storing it in a Dataset. Based on this data, Facebook will be able to automatically learn and optimize ads to better reach your customer base. From there, your advertising will be more effective

**CAPI** is different from **Event API**, you only need **ONE API** for all event data from different sources.

Unlike the previous **Event API**, you need to set up **CAPI** for your site to be able to synchronize order data.

See details about **CAPI** according to Facebook's documentation [here](https://www.facebook.com/business/help/2041148702652965?id=818859032317965)<br>

## 2. Dataset

**Dataset** help you connect and **manage event data** from different sources. This source can be websites, mobile applications, over-the-counter sales data, messaging data from third parties such as Pancake,...

Or we can say, **the dataset** will be the place to store all the activities from different sources that you connect.

{% hint style="info" %}
**Example:** You have dataset X linked to Facebook page A, Instagram page B, WhatsApp page C. Then, you link dataset X to all 3 pages above via CAPI, all event data of 3 pages above will be recorded in data file X
{% endhint %}

See details about the Facebook data file [here](https://www.facebook.com/business/help/750785952855662?id=490360542427371)

## 3. Manage dataset

You may have many different dataset, to manage the dataset you will need to use **Event Manager**.

**Meta Event Manager** is a tool that helps you track and manage event data. Here, you can install, monitor, and debug the data sources you have installed. You can also use **Events Manager** to cross-compare events from different sources, or create customer files.

Manage dataset at the link: <https://business.facebook.com/events\\_manager2/list/dataset/>

See details about Event Manager [here](https://www.facebook.com/business/help/898185560232180?id=1205376682832142)<br>

<figure><img src="/files/hlxAi37G1GpVcQXcKMqh" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pos.pages.fm/pos/english/advanced-features/optimize-purchase-event-conversions-with-facebook-capi-2024/some-basic-definitions-with-capi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
