GA4 setup using GTM
Go to the Tag Manager site and sign in to the Tag Manager:
Next, is to create an account:
Click on the Create Account button. This will take you to the Account Setup page:
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:
After creating the account the Google Tag Manager pop-up will appear:
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:
Copy the <body> tag code and paste it in the below location of Admin Panel – Store Personalization >> Language Text References >> search ‘noscript message’:
To get the Measurement ID, follow the below-given steps –
- Click on the Admin from the left-hand side panel:
- From the Admin screen, click on the Create >> Account button.
- In the account setup steps, enter the account name the same as the Google Tag Manager account name, select the "Google products & services" checkbox and click on the Next button.
- In the next step, enter the property name, manage the time zone as well as curreny and then click on the Next button:
- In the 3rd and 4th steps, specify the business details and objectives.
- Click on the Create button. Complete the terms and services agreement step.
- The Account and Property will be successfully created and you will be redirected to the Data collection step:
- Click on the "Web" from the Data collection page, and you will be directed to Data Streams page:
- Enter the Website URL and Stream Name. Click on the Create & continue button.
- You will be redirected to the Data Streams listing page.
- Select "Web" from the screen and click on the stream you created. From the Web Stream Details page, copy and save the Measurement ID for further steps: