How to Install Google Tag Manager on your website

In order to install Google Tag Manager (GTM) on your website, follow the steps below:

Step-1: Create a new Google account (if you don’t already have one). You would need a Google account in order to create a GTM account.

Step-2: Navigate to this web page: https://tagmanager.google.com/ and then log in using your Google Account login (username and password).

Step-3: Click on the ‘create account’ button on the home page:

create account 1

Step-4: Name your new GTM account after your company name (in our case ‘ABC Inc’), select your country from the drop-down list and then click on the checkbox ‘Share data anonymously with Google and others‘ (to enable benchmarking):

add a new account

Step-5: Enter the name of your container after your website name and then select ‘Web’ (provided you want to install GTM on a website):

container set up

Step-6: Click on the ‘Create’ button.

Step-7: Read the Google Tag Manager Terms of Service Agreement:

GTM terms of service agreement

Step-8: Scroll down to the very bottom of the service agreement and then click on the checkbox ‘I also accept the Data Processing Terms as required by GDPR.’

i also accept the data process terms

Step-9: Click on the ‘Yes’ button at top right-hand side of your screen:

yes

Once you clicked on the ‘Yes’ button, you would see the code for installing Google Tag Manager:

install google tag manager

Step-10: Copy the code (highlighted below) and then paste it as high as possible in the <head> section of every page of your website

head install google tag manager
head install google tag manager2 1

Step-11: Copy the code (highlighted below) and then paste it immediately after the opening <body> tag of every page of your website:

body install google tag manager
body install google tag manager2

Step-12: Click on the ‘OK’ button.

Once you clicked on the ‘ok’ button, you will see the GTM user interface:

google tag manager user interface

Congratulations.

You have now created your Google Tag Manager account and installed GTM on your website.

Related Articles

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade