Digital Marketing
Google Tag Manager Integration

GA4 setup using GTM

9min

1. Registration with Google Tag Manager to create an account

Go to the Tag Manager site and sign in to the Tag Manager:

Document image


Next, is to create an account:

Document image


Click on the Create Account button. This will take you to the Account Setup page:

Document image


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


2. Add the Google Tag Manager code

After creating the account the Google Tag Manager pop-up will appear:

Document image


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


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


3. Get the Measurement ID from Google Analytics Account

To get the Measurement ID, follow the below-given steps –

Document image

  • From the Admin screen, click on the Create >> Account button.
Document image

  • 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.
Document image

  • In the next step, enter the property name, manage the time zone as well as curreny and then click on the Next button:
Document image

  • 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:
Document image

  • Click on the "Web" from the Data collection page, and you will be directed to Data Streams page:
Document image

  • 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:
Document image