# Cài đặt Google Analytics

## Google Analytics là gì?

Google Analytic là công cụ được cung cấp miễn phí bởi google giúp người dùng có thể thống kê lượt truy cập đến Website của mình. Đây là công cụ rất cần thiết để quản trị một Website bởi ngoài thống kê lượt truy cập, nó còn thống kê được người truy cập đến từ quốc gia nào, họ dùng trình duyệt gì, liên kết đến Website của bạn từ nguồn nào v.v...

## Hướng dẫn cài đặt google Analytics

**Bước 1:** Truy cập vào **Google Analytics** tại đây [tại đây](https://marketingplatform.google.com/about/analytics/). Nếu bạn đã tạo tài khoản Analytics thì Sign in to Analytics để xem, còn nếu chưa đăng nhập thì nhấp vào nút "**Get started today**".

![](/files/WGZBecyFFPt9SDLRMldc)

**Bước 2:** Nhập các thông tin cần thiết

![](/files/v7FGYu3tzCGAHs3aCnLY)

![](/files/sZhWv2SkX1bxwwfl5gXZ)

![](/files/6sijkn0QmZqF6AsNzAU6)

![](/files/pMWtvZDYHjHyqZYeiIN8)

Bạn phải đồng ý với các điều kiện sử dụng của Google Analytics. Nhấp vào nút "**Tôi chấp nhận**".

![](/files/hPXe555OXS1CgJCQneMc)

**Bước 3:** Chọn nền tảng bạn muốn thu thập dữ liệu (website), sau đó thiết lập luồng dữ liệu.

![](/files/Jv2ohQwR5cfqgXVsog49)

![](/files/u5YNSKsRM3ks5Cv0tUA0)

**Bước 4:** Google sẽ cung cấp cho bạn một mã code. Copy mã code giống như hình dưới

{% hint style="success" %}
**Lưu ý:** Nếu sử dụng mã code phía trên không được, bạn có thể sử dụng mã code này

Link: <https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag>
{% endhint %}

![](/files/eFHEGyLjX37gDms50RDH)

**Bước 5:** Nhúng đoạn mã vừa copy vào trang website [tại đây](https://nhanh.vn/website/script/index?tab=add)

**Bước 6:** Truy cập vào website, sau đó mở thêm tab mới trên trình duyệt để truy cập vào [Google Analytics](https://analytics.google.com/analytics/web/provision/?authuser=0#/provision), nếu thấy Google ghi nhận số người đang hoạt động, nghĩa là bạn đã cài đặt Google Analytics thành công.

![](/files/a86pXO1KkEHLEmO8Wrdr)


---

# 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://pos.manual.nhanh.vn/pos/website/quan-ly-ma-nhung/cai-dat-google-analytics.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.
