> For the complete documentation index, see [llms.txt](https://help.zaapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.zaapi.com/th/integrations/facebook-messenger/track-conversions.md).

# ติดตามคอนเวอร์ชัน

### ภาพรวม

เมื่อมีลูกค้าซื้อสินค้าจากคุณบน Facebook หรือ Instagram ภายในแชท สิ่งสำคัญคือต้องส่งอีเวนต์การคอนเวอร์ชันนั้นกลับไปยัง Meta เพื่อให้ปรากฏในข้อมูลโฆษณาของคุณ และเพื่อให้ Meta สามารถใช้ข้อมูลนี้เพื่อแสดงโฆษณาของคุณให้กับผู้คนที่คล้ายกันมากขึ้น&#x20;

<figure><img src="/files/69123556666147e3e0567e0ef5ae22b263228493" alt=""><figcaption></figcaption></figure>

***

### วิธีส่งอีเวนต์ "Purchase" ไปยัง Meta

1. คุณต้องเชื่อมต่อ Facebook และ/หรือ Instagram กับ Zaapi

   1. โปรดทราบ: เพื่อที่จะส่งอีเวนต์การคอนเวอร์ชันไปยัง Meta ผู้ใช้ที่เชื่อมต่อเพจ Facebook **จะต้องเป็นผู้ดูแลระบบ (กล่าวคือมีสิทธิ์ "Full Control" ทั้งในเพจและบัญชีโฆษณา** ที่คุณต้องการส่งคอนเวอร์ชันไปให้ คุณสามารถตรวจสอบได้ใน Meta Business Suite - สิทธิ์ควรมีลักษณะคล้ายกับตัวอย่างด้านล่าง:

   <figure><img src="/files/087f2cb31e98fd222d9eb90fb3a5964ba0d0d2d0" alt=""><figcaption></figcaption></figure>
2. ไปที่การตั้งค่าการเชื่อมต่อแชทใน Zaapi แล้วคลิกไอคอนรูปเฟืองเล็กๆ

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

1. เปิดสวิตช์ "ON" สำหรับเพจ/บัญชีที่คุณต้องการส่งอีเวนต์ไปยัง Meta

   <figure><img src="/files/0d4307b1281799d74074b41b264268cb4f9e4ca2" alt=""><figcaption></figcaption></figure>
2. ไปที่แท็บ "Workflows" ในการตั้งค่า และตรวจสอบให้แน่ใจว่าได้เปิด "Log Chat Conversion after closing" เป็น "ON"
   1. สิ่งนี้สำคัญ เพราะอีเวนต์การซื้อจะถูกส่งไปยัง Meta เฉพาะแชทที่ปิดและบันทึกเป็นคอนเวอร์ชันแล้วเท่านั้น

<figure><img src="/files/66b07d158e430fe83668f3332930a6f1eca13107" alt=""><figcaption></figcaption></figure>

1. ไปที่รายการแชทและทำเครื่องหมายแชทเป็น "Closed"
2. เลือก "Converted" และกรอกจำนวนเงินที่ลูกค้าใช้จ่าย (ไม่บังคับ)

   1. คุณไม่จำเป็นต้องกรอกจำนวนเงินในคอนเวอร์ชัน
   2. หากคุณคลิก "Close without logging" หรือ "Unconverted" ระบบจะไม่ส่งอีเวนต์ไปยัง Meta

   <figure><img src="/files/84a5582b4935c8ff2584f4293cec28aada8642a8" alt=""><figcaption></figcaption></figure>
3. ตรวจสอบว่าอีเวนต์ถูกส่งไปยังชุดข้อมูลที่ต้องการเรียบร้อยแล้วโดยไปที่หน้า chat integrations ใน Zaapi คลิกไอคอนรูปเฟืองเล็กๆ จากนั้นคลิก "dataset id" เฉพาะของเพจที่คุณเพิ่งใช้ปิดแชทและแปลงเป็นคอนเวอร์ชัน
4. ระบบจะพาคุณไปยัง Meta events manager ซึ่งคุณสามารถตรวจสอบได้ว่าอีเวนต์ "Purchase" ถูกส่งเรียบร้อยแล้วหรือไม่ (โปรดรออย่างน้อย 1 ชั่วโมงเพื่อให้อีเวนต์แสดง)

   <figure><img src="/files/2a3cd800adbc15b0561a82f8005bd083c79768e1" alt=""><figcaption></figcaption></figure>

***

### ข้อจำกัด

* ปัจจุบัน Meta อนุญาตให้แอปส่งอีเวนต์ "Purchase" ได้เท่านั้น
* สถานะของลูกค้าในกล่องข้อความของ business suite จะไม่เปลี่ยนแปลง แต่ระบบได้ส่งอีเวนต์ไปยัง Meta เรียบร้อยแล้ว&#x20;

***

### การแก้ไขปัญหา

* ตรวจสอบให้แน่ใจว่าคุณรอ **อย่างน้อย** 1 ชั่วโมงเพื่อให้อีเวนต์แสดงผล
* ตรวจสอบให้แน่ใจว่าผู้ใช้ที่เชื่อมต่อ Facebook/Instagram บน Zaapi เป็นทั้งผู้ดูแลเพจและผู้ดูแลบัญชีโฆษณาที่เชื่อมโยงกับเพจนั้น


---

# 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://help.zaapi.com/th/integrations/facebook-messenger/track-conversions.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.
