# Sử dụng mã tracking Abot trên ladipage

Đầu tiên bạn bấm vào **biểu tượng cài đặt** ở góc trên cùng bên phải màn hình -> Bấm **Configuration** -> Chọn **Tracking Settings**

![](/files/46Rxcfm80qNFtLaEgDRO)

Sau đó bạn đăng nhập vào Ladipage -> Chọn trang Landing page bạn muốn cài tracking -> Chọn thiết lập -> Chọn Mã JavaScript/CSS.

![](/files/TtK87ADsJaXpdtbvXCaq)

![](/files/y4tQjBYxv3fAPyqKRsJI)

### Cài tracking nâng cao

Bạn muốn lấy dữ liệu từ Ladigpage về Abot thì làm như sau:

Thay đoạn code sau

```
 mt('send', 'pageview');
```

thành

```
mt('send', 'pageview', {email: 'my@email.com', firstname: 'John'});
```

![](/files/6h2BQbZWR9fdMmyeaiJz)

Như vậy khi khách hàng đăng ký trên landing page, dữ liệu email và tên khách hàng sẽ được tự động lấy về Abot.

Trong trường hợp bạn muốn gắn tag trên Abot. Bạn hãy đổi đoạn code trên thành:

```
mt('send', 'pageview', {email: 'my@email.com', tags: 'addThisTag,-removeThisTag', firstname: 'John'});
```

Sau khi hoàn tất bấm lưu lại.

#### **Load Event**

Vì yêu cầu theo dõi JS được tải không đồng bộ, bạn có thể yêu cầu JS gọi một hàm khi yêu cầu được tải. Để làm điều đó, hãy xác định hàm **onload** trong các tùy chọn như sau:

```
mt('send', 'pageview', {email: 'my@example.com', firstname: 'John'}, {onload: function() { alert("Tracking request is loaded"); }});
```

**Lưu ý:** khi bạn muốn cập nhật các trường thông tin qua ABOT thì cần cài đặt trường đó là được cập nhật công khai trong mục custom fields.


---

# Agent Instructions: 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:

```
GET https://docs.abot.vn/tracking/su-dung-ma-tracking-abot-tren-ladipage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
