How to Install Google Tag Manager on HTML Websites

Are you a beginner or an Expert looking to improve your website’s tracking and analytics using GTM? Google Tag Manager (GTM) is a fantastic tool that makes it easy to manage various tracking codes on your website without needing advanced technical skills or coding. A single change in your website HTML Code will ruin your entire website and because of that many are afraid to make any changes on the website. Well by installing GTM in your website can save some trouble and tension when you need to implement any tracking mechanism or LinkedIn ad Tracking. In this step-by-step guide, I’ll walk you through the process of installing Google Tag Manager on your HTML website. By the end of this tutorial, you’ll have the power to enhance your website’s capabilities, track user interactions, and make informed decisions for your online presence.

Step 1: Sign Up for a Google Tag Manager Account

Before you can start using Google Tag Manager, you need to have a Google Tag Manager account. If you don’t already have one, you can easily sign up by visiting Google Tag Manager and following the sign-up process. Use your Google account to log in, and then create a new GTM account. If you don’t know how to create a Google Tag Manager Account, Read my previous blog on How to create a GTM account in simple steps.

Step 2: Copy the GTM Code

Once you created the account and the container you can see two snippets of code that you need to add to your website’s HTML.
The first section of the code needs to be added to the <head> section of your HTML Page, and the second snippet needs to be added to the <body> section of the page.

Step 3: Add the GTM Code to Your HTML Website

Open your HTML website’s source code in a text editor or through your content management system.
Find the <head> tag and paste the first snippet of GTM code immediately after the opening <head> tag.

Find the opening <body> tag and paste the second section  of GTM code immediately after it.

Save the changes to your HTML file.

Step 4: Verify the Installation

Once you copy pasted the Codes into the head and body section of the page,Go back to Google Tag Manager and click on “Submit” to confirm the installation. Remember you need to copy paste the code into each page of your website or else the tag manager won’t work.
You can use the “Preview” mode in GTM to verify that the container is working correctly on your website.
You can also use the Tag Assistant Chrome extension to verify that GTM is installed correctly. It seems nowadays the Tag Assistant is not working Properly if that is your case you can use https://tagassistant.google.com/ for testing. 
You are now successfully installed Google Tag Manager on your Website and are now ready to fire.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
×