> For the complete documentation index, see [llms.txt](https://help.metu.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metu.vn/su-dung-metu/ket-noi-metu-voi-tai-khoan-google-analytics/cach-gan-ma-theo-doi-cua-google-analytics-qua-google-tag-manager.md).

# Cách gắn mã theo dõi của Google Analytics qua Google Tag Manager

### Bước 1: Sau khi kết nối METU với tài khoản Google Analytics thành công theo cách tự gắn thẻ gtag --> Đăng nhập tài khoản Google Tag Mananger.

### Bước 2: Chọn Thẻ --> Mới.

![](/files/-Ly31GErbXKs58QwBB5Y)

### Bước 3: Điền tiêu đề thẻ --> Chọn icon hình cây bút.

![](/files/-Ly31I9CB-F22gRFbT3G)

### Bước 4: Chọn HTML tùy chỉnh.

![](/files/-Ly31JpCRgwcMSoZkXbZ)

### Bước 5: Nhập mã theo dõi thẻ trang web toàn cầu (gtag) --> Lưu.

![](/files/-Ly31MUbWC7oQCE8lNMx)

### Bước 6: Gửi.

![](/files/-Ly31RRgiz5NNg3Q1q4T)

### Bước 7: Xuất bản --> Tiếp tục.

![](/files/-Ly31c57ZlbgwZaQqvSB)
