> 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-tiktok-pixel.md).

# 2.2. Hướng dẫn cài đặt Tiktok pixel

**TikTok Pixel** là một đoạn mã JavaScript mà bạn có thể thêm vào trang web của mình để theo dõi hành vi của khách truy cập, đo lường hiệu quả quảng cáo TikTok và tối ưu hóa chiến dịch quảng cáo nhằm tăng tỷ lệ chuyển đổi. Nó tương tự như các công cụ như Facebook Pixel hoặc Google Analytics trong việc hỗ trợ theo dõi và phân tích.&#x20;

Để thêm Tiktok Pixel vào landing page, bạn thực hiện theo các bước sau:

#### **Bước 1: Đăng nhập vào Trình quản lý quảng cáo Tiktok -> Công cụ -> Sự kiện.** <a href="#buoc-1-vao-giao-dien-a-ds-manager-tiktok-greater-than-cong-cu-greater-than-su-kien" id="buoc-1-vao-giao-dien-a-ds-manager-tiktok-greater-than-cong-cu-greater-than-su-kien"></a>

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

#### Bước 2: Nhấn "Kết nối nguồn dữ liệu" **-> Web -> Tiếp theo**.

<figure><img src="/files/27fFLgEDF3Z3R6ypk8ZS" alt=""><figcaption></figcaption></figure>

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

#### Bước 3: Dán đường dẫn đến trang Landing Page của bạn **-> Tiếp theo**.

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

#### Bước 4: Chọn phương thức kết nối là "**Thiết lập thủ công**" **-> Tiếp theo.**

<figure><img src="/files/99S9JHYJpvXTOokvxMEh" alt=""><figcaption></figcaption></figure>

#### Bước 5: Chọn phương thức thiết lập là "Tiktok Pixel + API Sự kiện" **-> Tiếp theo.**

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

#### Bước 6: Thiết lập Pixel + API Sự kiện.

**1.** **Đặt tên** cho Pixel -> **Tạo.**

{% hint style="info" %}
***Lưu ý:** Tất cả các sự kiện được gửi tới Mã Pixel này sẽ hiển thị trong Pixel này. Bạn nên tạo tên Pixel trùng với tên trang web hoặc tên miền. Độ dài tối đa tính cả dấu cách là 128 ký tự*
{% endhint %}

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

**2. Sao chép** mã cơ sở -> **Tiếp theo.**

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

Để 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 **"Start of \<head> tag"** và lưu lại.

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

Ngoài ra, bạn có thể lấy **ID pixel** trong đoạn code pixel tiktok trên cho vào trang **Editor (Chỉnh sửa)** landing page, chọn icon **Cài Đặt** -> **Tracking code (Mã chuyển đổi)** -> Dán **ID Pixel** vào mục **Tiktok Pixel ID** và lưu lại.

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

**3.** Lựa chọn theo hướng dẫn

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

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

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

<figure><img src="/files/4AcBrvguHI0cQY5wN8lZ" alt=""><figcaption></figcaption></figure>

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

4\. Nhấn **Hoàn tất** để hoàn thành thiết lập **"Pixel + API Sự kiện".**

<figure><img src="/files/F98lnZ0hgAkCIpjhpWox" 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-tiktok-pixel.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.
