Google Tag Manager is an advertising ROI tool offered by Google. Google Tag Manager offers a marketing platform that helps to manage all the website tags with the help of a single web interface. You can quickly add and remove these tags from this interface anytime.

When we create any website, we have to add many tags to it, such as to add scripts like Google Analytics, Google search console, Facebook pixel, social media sharing buttons, add Javascript, etc. So let us now see from the technical point of view, if you want to add a new tag to your website, you have to manually edit the core files of the theme, and then add the code into it.

Most of the developers, coders as well as beginners are not familiar with Google Tag Manager. If you are probably wondering to know what is Google Tag Manager and why you should use it on the website? Let’s answer me the most common and basic questions around Google Tag Manager.

WHAT IS GOOGLE TAG MANAGER (GTM)?

Google Tag Manager is a free and marketing platform offered by Google that is used to add the tags and script to your blog or website on a single interface without writing a new code each time when you construct a tag. Google Tag Manager is a reliable, simple, and easily integrated tag management platform.

IS GOOGLE TAG MANAGER EASY TO USE?

According to Google

Google Tag Manager is a simple, reliable, easily integrate with the website and third-party software without using code at one place.

They say it’s a “simple” tool for any marketer & developer. Yes, it is! But I am saying that GTM is not easy to use without any training(course) technical knowledge. You have to some technical knowledge to setup tags, triggers, and variables for firing events. If you want to integrate Facebook pixel code to Google Tag Manager, you’ll need some understanding of how Facebook tracking pixels work.

ADVANTAGE OF GOOGLE TAG MANAGER (GTM) AND WHY YOU SHOULD USE?

Google Tag Manager (GTM) enables your advertising/marketing department to analyze & complete control over the tags and monitor. Integrate easily and track better conversions with accurate measures. You can easily add or change your tags as needed at a single platform.

Google Tag manager manage Google Analytics, Google Search Console, Google Ads Conversion, Facebook Pixel and other third-party tools using two codes:

Primary Code:

<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-TG9CNJ5′);</script>
<!– End Google Tag Manager –>

Alternative Code:

<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-TG9CNJ5″
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Let’s start now to install Google Tag Manager (GTM) to your website. This guide will show you how to setup GTM to the WordPress website and HTML website (if you have cPanel).

How to Set Up Google Tag Manager (GTM)

To get started, log into your Google Tag Manager account. Click on Sign up, if you haven’t created an account yet and complete the form from Google. When you first log into Google Tag Manager:

  • SETUP YOUR ACCOUNT IN GTM

Create your account by adding your Account Name with the target country & setup new container as name www.xyz.com and select web as a targeted platform.Container have four platforms to monitor web, iOS, android, Accelerated Mobile Pages (AMP). And agree to the terms of service.

  • FOLLOW THE CODING INSTRUCTIONS

You’ll see code and their instructions that can be installed on your website.

As per instruction place both codes to the header.php file. 1st code will be paste as high in the <head> of the page and 2nd code will be paste just opening the <body> tag.

  • INSTALL GOOGLE TAG MANAGER TO WORDPRESS, CPANEL & FTP/SFTP
How to Install Google Tag Manager to WordPress

You have to log in to your WordPress, after that in WordPress dashboard, you will get an option here AppearanceTheme Editor

After clicking on the theme editor option, Select theme to edit, and coding of your theme will open in front of you. Select Header.php file and place your 1st code in <head> section

and 2nd code in <body> as per instruction and after that updated the file.

How to Install Google Tag Manager to cPanel & FTP

In cPanel:

login to your cPanel and click on File Manager and Open public_html folder and open your header.php file and paste the code as per GTM instruction and save the file. Watch the video for a detailed overview.

In ftp/sftp:

Connect with the server and open public_html folder. After that open your header.php file and paste the code as per GTM instruction and save the file. Watch the video for detailed overview.

  • PUBLISH GOOGLE TAG MANAGER CODE

After pasting codes into the website. Back to Google Tag Manager and publish the workspace change by clicking Submit.

To test the live Google Tag Manager firing Status. You need to open preview mode by click preview button.

  • FINAL STEP IS “Test Google Tag Manager Firing Status”

Open your website or blog and refresh it. You will see the preview mode to the footer of the website and check the variables are firing properly (click on VariablesWindow Loaded)

That’s it!

Friends, we have successfully installed the Google Tag Manager (GTM) to the website. and I hope that this article will help you.  You may also see our guide on “Step to install Google Analytics Code to website”.

For a detailed guide of Google Tag Manager Implementation to the website, you need to watch my video (in Hindi):

If you like this content or have still any questions about the Google Tag Manager, please comment by asking a question and share your feedback.

SUBSCRIBE MY YOUTUBE CHANNEL


0 Comments

Leave a Reply

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