Tút này không mới nhưng sẽ hữu ích cho ae nào mới lọ mọ XF
Step 1: Làm theo hướng dẫn tạo User-ID View mới https://support.google.com/analytics/answer/3123666?hl=en
Step 2: Login Xenforo Admin -> Appearance -> Templates -> tìm template name: google_analytics
Tìm đoạn:
Thêm vào bên dưới
Hết tút, ae check lại kết quả trên GA + view-source XF của ae nhé
Reference
Step 1: Làm theo hướng dẫn tạo User-ID View mới https://support.google.com/analytics/answer/3123666?hl=en
Step 2: Login Xenforo Admin -> Appearance -> Templates -> tìm template name: google_analytics
Tìm đoạn:
Code:
You must log in to view content
(2 lines)
Code:
You must log in to view content
(2 lines)
Hết tút, ae check lại kết quả trên GA + view-source XF của ae nhé
Reference
- https://support.google.com/analytics/answer/3123666?hl=en
- https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id
- https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/