GA4 setup using GTM
Go to the Tag Manager site and sign in to the Tag Manager:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/nOCMU7s_DaCeZV8SFzPb3_googletagmanager1.png?format=webp)
Next, is to create an account:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/d4tKn-kHz_qE8Ghmsr_OG_googletagmanager2.png?format=webp)
Click on the Create Account button. This will take you to the Account Setup page:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/LF0mOtGIcZr747BgG2cw9_googletagmanager3.png?format=webp)
To complete the account setup enter your account name and select your country. Next, for container setup enter your website name and choose the target platform as Web:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/Ig7UIaQXVXqnZdSorb9G2_containersetup.png?format=webp)
After creating the account the Google Tag Manager pop-up will appear:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/xz1l2JVZvmdsPlf0_HGv6_googletagmanagerinstall.png?format=webp)
Copy the <head> tag code and paste it into the below path in Admin Panel – Store Configuration >> External Service Settings >> Digital Marketing tab >> Google Tag Manager:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/nOMlEtpgk6aq92qn1j9jS_gtmopsadminpanelsettings.png?format=webp)
Copy the <body> tag code and paste it in the below location of Admin Panel – Store Personalization >> Language Text References >> search ‘noscript message’:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/DK-jsrYlGm9Gjoi3zCL4r_googletagmanager6.png?format=webp)
To get the UA code, follow the below-given steps –
- Click on the Admin from the left hand side panel:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/miKJvOyXQOgpoaxU3H30a_gtmadmin.png?format=webp)
- From the Admin screen, click on the Create Account button.
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/bXYUSvCuFNPJcXEDgV12y_gtmadmincreateaccount.png?format=webp)
- In the account setup steps, enter the account name the same as the Google Tag Manager account name, select "Google products & services" checkbox and click on the Next button.
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/lySjj5Ls5qcBc1_I705l__gtmadmincreateaccountstep1.png?format=webp)
- In the next step, enter the property name and then expand the advanced options.
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/CWiLdu8NeyIcmLil5JZki_gtmadmincreateaccountstep2.png?format=webp)
- From the Advanced Options, toggle the button for "Create a Universal Analytics property", enter your website URL, select the first radio button "Create both a Google Analytics 4 and a Universal Analytics property" and then click on Next button.
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/xsIJ8gZmmb0L86oYfFFBI_gtmadmincreateaccountstep2advance.png?format=webp)
- Specify your Business details in the 3rd step.
- Click on the Create button. Complete the terms and services agreement step.
For Universal Analytics (UA) code :
- Navigate back to the Admin page, select the created account and UA property from the drop down and then click on the Tracking Info >> Tracking Code option as shown below:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/awsU8V2j1M7HA_oO2YVcw_gtmadmintrackinginfo.png?format=webp)
- Your Tracking Code will appear like this -
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/S883u-QnAJx6IHl0QBC5q_gtmadmintrackingcode.png?format=webp)
For Measurement ID (GA4):
- Navigate back to the Admin page and select the created account and GA4 property from the drop-down:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/yH1awKixAIM_JuV3eFwWq_gaga4property.png?format=webp)
- Select the Data Streams from the options below, select Web from the Data Streams page and then click on the URL:
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/hAt-8tuzXlcC1ynRSaQp5_gaga4propertydatastream.png?format=webp)
- From the Web Stream Details page, copy and save the Measurement ID for further steps.
![Document image Document image](https://images.archbee.com/HFxpYr6_aO5gwA1HN_Pyx/QQRsECZ42vzsZc_OS6_c9_gaga4datastreammeasurementid.png?format=webp)
For the next step, you can proceed with either of the setups:
OR