> For the complete documentation index, see [llms.txt](https://docs.shopone.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shopone.io/theo-doi-va-do-luong-landing-page/ma-theo-doi-va-chuyen-doi/huong-dan-cai-dat-facebook-pixel-tren-landing-page.md).

# 2.1. Hướng dẫn cài đặt Facebook Pixel trên Landing Page

Facebook Pixel là một đoạn mã (JavaScript) mà Facebook cung cấp cho các nhà quảng cáo. Khi bạn chèn đoạn mã này vào trang landing page, Facebook sẽ hỗ trợ theo dõi và đo lường các sự kiện trên trang landing page.

Để cài đặt Facebook Pixel, bạn làm theo các bước sau:

#### Bước 1: Truy cập vào Trình quản lý quảng cáo: <https://adsmanager.facebook.com/adsmanager/manage/campaigns>

#### Bước 2: Nhấp vào thanh Trình quản lý quảng cáo, chọn Tất cả công cụ -> Cài đặt cho doanh nghiệp.

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

#### Bước 3: Thiết lập pixel, chọn mục Nguồn dữ liệu -> Pixel.

<figure><img src="/files/6OyAIbqqaBGMQwiurreB" alt=""><figcaption></figcaption></figure>

#### Bước 4: Nhấn Thêm -> nhập Tên -> Tạo để thêm Tập dữ liệu mới.

<figure><img src="/files/9zgSmLr8OfyO8uHY19cn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/47KtSzS7tCI24sCvWdHT" alt=""><figcaption></figcaption></figure>

Tại mục **Tập dữ liệu**, chọn tập dữ liệu vừa tạo -> **Mở trong Trình quản lý sự kiện**.

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

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

#### Bước 5: Chọn Thiết lập Meta Pixel -> Tự cài đặt mã.

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

<figure><img src="/files/74yGeHNW3EbSHtSzQsg0" alt=""><figcaption></figcaption></figure>

#### Bước 6: Sao chép mã trong hộp thoại.

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

#### Bước 7: Gắn mã vào landing page.

Để gắn đoạn mã trên vào landing page, thực hiện: Truy cập vào trang **Editor (Chỉnh sửa)** landing page, chọn icon **Cài Đặt** -> **Code JavaScript/CSS** -> Dán đoạn mã vào mục **"End of \<head> tag"** và lưu lại.

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

Ngoài ra, bạn có thể lấy **Facebook Pixel ID** trong mục Tập dữ liệu để gắn vào landing page, thực hiện: Truy cập vào trang **Editor (Chỉnh sửa)** landing page, chọn icon **Cài Đặt** -> **Tracking code (Mã chuyển đổi)** -> Dán **Facebook Pixel ID** vào mục **Facebook Pixel ID** và lưu lại.

<figure><img src="/files/lbBDjDU46pLYNPeqcpJe" 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.shopone.io/theo-doi-va-do-luong-landing-page/ma-theo-doi-va-chuyen-doi/huong-dan-cai-dat-facebook-pixel-tren-landing-page.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.
