# 1.2.3. Kết nối website

SANDBOX CHỈ HỖ TRỢ KẾT NỐI WEBSITE TRỰC TIẾP VỚI KỸ THUẬT VIÊN. ĐƠN VỊ VUI LÒNG CUNG CẤP CONTACT KỸ THUẬT VIÊN KHI CÓ NHU CẦU KẾT NỐI WEBSITE

1\. Truy cập Tài khoản **Marketing,** Click vào biểu tượng **Menu** ![](https://docs.pushsale.vn/~gitbook/image?url=https%3A%2F%2F3915709365-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-MaXnSv2V2d6et1ummML%252F-MbESlO24tue0v-u6oF4%252F-MbET-0kMoDjGGdh53Gh%252Fmenu.png%3Falt%3Dmedia%26token%3D5ed58029-c010-4fbf-9887-50a437fb2c6e\&width=300\&dpr=4\&quality=100\&sign=4461987f\&sv=1) , chọn **Marketing --> Quản lý nguồn dữ liệu**

2\. Tại màn hình hiển thị, Bấm **Thêm mới**\ <br>

<figure><img src="/files/8xweZ1RCln0fdCrQhYYZ" alt=""><figcaption></figcaption></figure>

Điền thông tin để tạo nguồn mới

* **Loại kết nối**: Website
* **Tên nguồn dữ liệu**: Tên của website
* **Url nguồn dữ liệu**: đường dẫn về website
* **Kênh quảng cáo**: Phân biệt các kênh chạy quảng cáo
* **Sản phẩm**: Phân quyền sản phẩm được chạy
* **Ưu tiên sale**: Phân quyền sale được chia data
* **Url API**: Mã kết nối với form của Ladipage (Sau khi điền đầy đủ thông tin hệ thống sẽ tự sinh ra)
* **Nhập thủ công**: Cho phép sale lựa chọn nguồn này khi lên đơn thủ công
* **Duyệt**: Admin xác nhận nguồn này, thì dữ liệu mới được chia về cho các sale
* **Sử dụng woocommerce:** Nếu đơn vị dùng Wordpress cần sử dụng woocommerce (một plugin thương mại điện tử mã nguồn mở cho WordPress), khi tick vào sẽ tự động sinh Url API mới để cấu hình bên web

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

Nhấn **Lưu** hệ thống sẽ tự động sinh ra URL API như ảnh<br>

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

Ví dụ:

```
[sandbox_lading_api] = https://api.sandbox.com.vn/landingpage/api/DataReceive/ReceiveData/ld-api/lid/ae8f44ac-54fd-4049-9ecc-6042a228aaaa/sc/2114845
```

Mẫu:

```
[sandbox_lading_api]?name=[ten_khach_hang]&phone=[so_dien_thoai]&message=[tin_nhan]&t1=[thong_tin_khac]&t2=[thong_tin_khac2]
```

**Trong đó: Phương thức GET**

* 1/ name :Tên
* 2/ link: Đường dẫn
* 3/ phone : SĐT
* 4/ message : Tin nhắn
* 5/ date : Ngày tháng
* 6/ address: Địa chỉ
* 7/country : Quốc gia
* 8/ state: Bang
* 9/ district: Quận/ huyện
* 10/ ward: Phường/ xã
* 11/ products : Chọn 1 sản phẩm
* 12/ quantity : Số lượng
* 13/ utm\_source
* 14/ utm\_medium
* 15/ utm\_campaign
* 16/ utm\_agent
* 17/ utm\_channel
* 18/ utm\_content
* 19/ utm\_term
* 20/ ip
* 21/ singlechoice
* 22/ multiplechoice

Các thông tin phía sau sẽ được nối vào message dạng "**;**"

**Ví dụ:**

```
[sandbox_lading_api] = https://api.sandbox.com.vn/landingpage/api/DataReceive/ReceiveData/ld-api/lid/ae8f44ac-54fd-4049-9ecc-6042a228aaaa/sc/2114845
```

**Data trả về khách dạng chuỗi JSON như sau:**

Copy

```
{
    "success": true,
    "data": true,
    "status": 200,
    "message": "Thành công.",
    "totalRecord": 0,
    "tabIndexError": 0
}
```

File API mẫu kết nối:

{% file src="/files/IkHTIgwuRT0OL3LeQrPF" %}


---

# 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.sandbox.com.vn/1.-marketing/1.2-quan-ly-nguon-du-lieu/1.2.3.-ket-noi-website.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.
