Hướng dẫn setup tracking GA4 với Google Tag Manager (GTM)

Modified on Tue, 22 Mar, 2022 at 8:08 PM

1. Tạo GA4 và lấy Measurement ID






Copy và lưu lại Measurement ID như hình trên.



2. Tạo Google Analytics GA4 và GA4 Purchase Event ở GTM


Tạo Google Analytics GA4



Tạo GA4 Purchase Event


1. Tạo Template cho Items


2. Tạo Variables




Thực hiện tạo variable cho dataLayerTransactionValue




Thực hiện tương tự cho các variables còn lại bao gồm:


dataLayerTransactionCoupon




dataLayerTransactionCurrency




dataLayerTransactionID




dataLayerTransactionShipping




dataLayerTransactionTax




Tạo variable cho dataLayerTransactionItems theo hướng dẫn như hình




Kiểm tra sau khi hoàn tất như hình dưới:



3. Tạo GA4 Purchase event Tag




Thực hiện chính xác như hình bên dưới sau đó chọn Save



Setup Trigger cho tag




Kiểm tra lần cuối, sau đó click Submit






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article