Skip to content

Setting Up GA4 Tracking with Google Tag Manager (GTM)

1. Create a GA4 Property and Get Your Measurement ID

Section titled “1. Create a GA4 Property and Get Your Measurement ID”

01.png

02.png

03.png

04.png

Copy and save the Measurement ID as shown above.

2. Create Google Analytics GA4 and GA4 Purchase Event in GTM

Section titled “2. Create Google Analytics GA4 and GA4 Purchase Event in GTM”

05.png

06.png

07.png

08.png

09.png

Create the variable for dataLayerTransactionValue

10.png

11.png

Do the same for the remaining variables:

dataLayerTransactionCoupon 12.png

dataLayerTransactionCurrency 13.png

dataLayerTransactionID 14.png

dataLayerTransactionShipping 15.png

dataLayerTransactionTax 16.png

Create the variable for dataLayerTransactionItems as shown:

17.png 18.png

Verify the result as shown below: 19.png

20.jpg

21.png

Configure exactly as shown below, then click Save.

22.png

Set up a Trigger for the tag.

23.png

Do a final check, then click Submit. 24.png