Mastering Google Tag Manager

Mastering Google Tag Manager


In the current scenario, we all know the importance of digital marketing. It’s one of the fastest-growing industries, which in turn is pushing the demand for digital marketing professionals. The matter with data analysis for digital marketing is that our systems collect and track tons of knowledge and this is often how marketers are using the analytics tools. Google Tag Manager is one such tool for Tracking.

Sandip Trivedi

Digital sandip academy

Are you looking for the having mastering on google tag manager, then you should check out the Digital Sandip Academy, India’s No. 1 Digital Marketing Agency.

Digital Sandip Academy is the best Academy to learn Online Digital Marketing Courses.

Digital Sandip Academy digital marketing agency providing the best Online Digital Marketing Course in Ahmedabad.  Apart from digital marketing services, they also provide internships, and live projects to their students and helping students to start their start-ups and building their profiles.



Get in touch with Digital Sandip Academy to access Digital Marketing advance Courses, PPC course, SEO training, Social media training, Email marketing, Inbound marketing, Google Tag Manager, Google Analytics training, and many more.

The Digital Sandip Academy is led by Mr. Sandip Trivedi, who is the founder and CEO of the academy.  With 10+yrs of experience and having trained 50,000+ students. He has extensive experience in this industry both as a leading digital marketing consultant and as a trainer. He aims to create a more talented resource in the domains of Digital Marketing, Digital Analytics, and Digital Research.

Digital Sandip Academy provides advanced digital marketing courses that cover the following services:

  • Digital Marketing
  • Search Engine Optimization
  • Facebook Marketing
  • Google Analytics
  • Lead Generation
  • Inbound marketing
  • WordPress website development
  • Youtube SEO
  • SEM
  • SMM(Social Media Marketing)
  • Email marketing
  • Web Analytics
  • Landing Page Design Course
  • Google Tag Manager


Address: A-206, Addor Ambition, Beside Vimal House, Near Navkar Classes, Navrang Circle, Navrangpura, Ahmedabad.



Contact No: +91-7567154257

To survive and be ahead in your business one needs to learn and do digital marketing for their products and services. This pandemic has magnified the significance of Digital Marketing and doing various types of online business is not an easy task.

What Is Google Tag Manager?

Google Tag Manager may be a free tag management tool that helps you create, manage, and launch HTML or JavaScript tags. These tags track analytics data on websites or mobile apps, also share that data with web analytics platforms like Google Analytics.

GTM is a user-friendly tool that allows you to add tags (like Google Analytics, AdWords, or third-parties) as well as code to your website. There are some ways to feature code to your site and most websites and organizations have developed their process for how to go about making these changes. Google Tag Manager could also be a tool that anyone can use and helps make this process more consistent across websites, offering features to make adding code and third-party tags easier.

With GTM, you’ll create custom tags, triggers, and variables during a container snippet. These components streamline and automate the method of tracking user behavior, whether on your website or mobile app. They also eliminate the time-consuming steps involved in tag tracking and tag management via Google Analytics.

Customizing Google Tag Manager For Digital Marketing –

The way GTM works is that you simply snippets of code directly into your website and it can modify in its entirety. This suggests you’ll modify the way you collect information, which, consequently, allows you to switch the insights you would like.

What insights can we need from GTM for digital marketing?
  1. Measuring content

Content is measured often because of the number of visits to the page and bounce rates. But it doesn’t need to be this superficial. We’d like more information on content measurement to be ready to grasp any valuable insights from it.

We need things like:

  • Scroll depth

The depth people scrolled your blog posts to ascertain what proportion of your article they read. It is often measured in percentage of page scroll: 10%, 25%, 50%, 100%. It’s useful to realize insights and understand if people like what you’ve got to write down.

  • Dwell time

It’s the time spent on a page after coming from search results, before going back to SERPs. Google is tracking dwell time and its ranking pages consistent with how low or how high this point is. If a page records low dwell time and other people return to look, for Google it’s a sign your content isn’t relevant.

  • Interaction

Content is formed out of elements, like CTA, buttons, forms, widgets, and the other element that impacts interactions with the website. With GTM you’ll found out about these elements and skim the insights to enhance the way content is presented to visitors and digested by visitors.

All these elements are often customized and tracked with GTM and that they also are a part of your SEO strategy because Google tracks activity on your website that has repercussions on search.

  1. Measuring website performance

Performance is measured often by conversion rates, bounce rates, and e-commerce tracking. Surely, with this data, we’ve enough numbers to form an informed decision on where to take a position to extra money, where to AB test, where we are losing money.

As you can see, all these data are acquired by default from Google Analytics, this data is earned by customizing the tool.

Google Tag Manager Course –

Part – 1 What is Google Tag Manager & Its Importance

Google Tag Manager may be a free tool that eliminates tedious code-editing tasks that formerly required a developer. It allows the marketing team to feature and update their website tags including javascript code snippets for site analytics, conversion tracking, and remarketing while the event team focuses on larger projects.

According to Google,

“Google Tag Manager helps make tag management simple, easy, and reliable by allowing marketers and webmasters to deploy website tags beat one place.”

Tagging is complex. Large websites especially got to a particular need to constantly update their tags, add new tags, and execute complicated installations. If this isn’t all managed properly, the tags can hamper your site, misrepresent your measurements, and cause duplicate costs and missing data. Also, it’s time-consuming to manage tags without a system, and doing so can delay important marketing and measurement programs. GTM has many benefits like easy updates and a future-proofed website, debug features, users and permissions management, functions with Google Analytics, etc.

Click here to watch the video tutorial of Google Tag Manager Course Part-1 

Part – 2 The Way To Install Google Tag Manager To Your Website

Install Google Tag Manager for including tags from Google Ads, Google Analytics, Floodlight, and 3rd parties and to configure and deploy tags.

Create a new account and container

  1. In Tag Manager, click Accounts >Create an account.
  2. Enter an account name and optionally indicate whether you’d like to share data anonymously with Google and others.
  3. Click Continue.
  4. Enter a descriptive container name and select the type of content: Web, AMP, Android, or iOS. If fixing a mobile container, select whether you’re using the Firebase SDK or one among the legacy SDKs.
  5. Click Create.
  6. Review the Terms of Service and click Yes if you agree to those terms.

You’ll install your code snippets now, or click okay to clear this dialog. You’ll always found out your container first and install the container snippet or SDK later.

Install the container
  1. In Tag Manager, click Workspace.
  2. Near the highest of the window, find your container ID, formatted as “GTM-XXXXXX”.
  3. Click your container ID to launch the Install Tag Manager box.
  4. Copy and paste the code snippets into your website as instructed within the Install Tag Manager box, or download and install the acceptable mobile SDK. See below for recommendations on the web, AMP, and Mobile installation.

Click here to watch the video tutorial of Google Tag Manager Course Part-2

Part – 3 Introduction To Google Tag Manager Dashboard

To help wrap your mind around the new feature, consider GTM of the past having only one Workspace. Everybody working in GTM had to figure on an equivalent Container Draft, and when a Version was created and published, all changes were added to the Version at that moment, no matter who worked on them or when.

In essence, when a Workspace is made, a replacement Container Draft is separated from the newest GTM container version, and this becomes your new Workspace. From that moment on, it’ll live a separate life as a draft, and you’ll edit it, Preview it, and Debug it to your heart’s content without interference from other Workspaces. Work is often wiped out multiple Workspaces at an equivalent time, as just one occasion a Workspace is becoming a Version does it become a part of the Google Tag Manager container. It follows that there’s no actual versioning of Workspaces themselves.

Creating a replacement Workspace is straightforward. Attend the Overview section of your Container, and click on anybody of the three options to “Manage Workspaces” you see within the image below. Once you click one among those, you ought to enter the “Manage Workspaces” screen. To make a replacement Workspace, click the Plus icon within the top right corner to open the Workspace creation prompt.

To switch between Workspaces is straightforward. Within the left navigation may be a new menu for Workspaces. Whenever you click that, an overlay flies out, which allows you to switch between Workspaces just by clicking the Workspace name within the list that appears. The new menu item within the navigation serves a two-fold purpose: First, it allows you to know which Workspace you’re currently performing on. Second, it allows you to quickly open the Workspace management overlay, where you’ll jump between Workspaces. smoothly.

Click here to watch the video tutorial of Google Tag Manager Course Part-3 

Part – 4 How To Connect Google Analytics To Google Tag Manager

The first thing you would like to try to do is to check in for Google Tag Manager. Then, add a replacement account by entering a preferred account name to your Account Name field. Click Continue. Within the Setup Container step, you’ll enter your website name because of the Container name. Under Where to Use Container, choose Web then, click Create.

Now you’ll be asked to comply with the Terms of Services for Google Tag Manager. Click Yes. Then you’ll tend a tracking code snippet to repeat onto your site. Copy it and paste it onto the header.php of your Word Press site. You’ll inspect this guide the way to copy-paste code snippets in Word Press.

Then click New Tag. You’ll rename the tag by clicking on the Untitled Tag field. Then click on the large icon where it says choose a tag type to start setup. Then click Universal Analytics. You’ll get to enter the Tracking ID and Tracking Type. You’ll find out how to seek out your Analytics tracking ID.

Click on the large icon where it says choose a trigger to form this tag fire. For basic Google Analytics implementation, select All Pages. Then, you’ll get to wait a couple of hours for Google Analytics to collect your website’s data. Then, you’ll log into your Google Analytics account and consider your website’s reports.

Click here to watch the video tutorial of Google Tag Manager Course Part-4

Part – 5 The Way To Do Video Tracking On Your Website

It all starts with a trigger. In Google Tag Manager, attend Triggers > New > Trigger Configuration and choose Youtube Video. Then enter the following settings: You can change the Percentage threshold to anything you like, just separate them with a comma. Also, you’ll enable Pause, Seeking, and Buffering tracking.

In Google Tag Manager, attend Variables > Configure and enable all video-related variables.

In GTM, attend Variables > New > Lookup table and enter the subsequent settings:

  • In the Input, Variable field enter the {{Video Status}} variable
  • Then in the Input field enter “progress” (without quotation marks, all lowercase) and then in the Output field enter {{Video Status}} {{Video Percent}}%
  • Finally, enable the “Set Default Value” checkbox and insert the {{Video Status}} variable once again.

In GTM, attend Tags > New > Universal Analytics and enter the subsequent settings. Once you have completed all previous steps, it’s time to test. Enable/Refresh the Preview and Debug mode, refresh the page on your website with the embedded Youtube video player and check out to interact with it. Click one among them and check whether your Google Analytics tag has fired.

Click here to watch the video tutorial of Google Tag Manager Course Part-5

Part – 6 The Way To Do Page View Tracking On Your Website

A virtual pageview may be a hit (or view) on your website that happens without reloading the page. On sites that make use of Ajax for infinite scroll or load more functionality, it’s going to be important that every action registers a page view when additional content is loaded or a URL is updated.

There are 3 steps involved within the tracking of virtual page views in Google Analytics with Tag Manager.

Variables –

The first step is to enable the Built-in Variable, New History State under the variables > configure section of the Tag Manager Admin console. The New History State variable will instruct the Tag Manager to concentrate on URL changes and perform actions supported by URL history changes.

Triggers –

In Google Tag Manager, a trigger listens to your website surely sorts of events like page views or button clicks. A trigger tells the tag to fireside when the required event is detected. The subsequent step is to make a Trigger that listens for a History Change event. Under Triggers, click New and choose the History Change Trigger Type. With the History Change Trigger in place, you’ll proceed and make the Tag that will be wont to dispatch the Page Views.

Tags –

The final step is to configure a custom Tag that will trigger a page view whenever the browser URL updates. Under Tags, click New open the choices menu, and complete the Tag Configuration and Triggering sections as seen below.

Click here to watch the video tutorial of Google Tag Manager Course Part-6

Part – 7 The Way To Do Text Tracking On Your Website

Text or button click tracking on an internet site will offer you an insight into user behavior. Many websites have contact forms that you simply can track to ascertain which channels are driving you the simplest traffic, however, some website visitors may prefer to contact you directly by email.

Website visitors rather than filling out a contact form will want to contact the corporate or a private team member then they’ll usually do that by either calling them or emailing them. To email, they’re going to likely click on the “email” button or email address in their profile or on the contact page like below.

By tracking this button click via Google Tag Manager you’ll discover

  1. Which traffic source it came from. Ex. Organic, Direct, Referral, Social, Paid or other
  2. Whether there have been quite 1 traffic sources involved within the whole customer journey to conversion
  3. Which website page they clicked the e-mail text on
  4. What time and date the press was made

Click here to watch the video tutorial of Google Tag Manager Course Part-7

Part – 8 The Way To Track A Button Click On Your Website

You can use Google Tag Manager to trace button clicks into Google Analytics without having to switch the code on your website. I’m getting to walk you through tracking clicks on a button utilized in a form, but you’ll use an equivalent technique for tracking buttons in your navigation, banners, content, and more.

Here’s a quick overview of the steps we’re getting too fancy to track button clicks:

  • Find your button
  • View the ASCII text file
  • Enable the variable
  • Create a tag
  • Create a trigger
  • Preview the container
  • Check Google Analytics
  • Publish the container

Click here to watch the video tutorial of Google Tag Manager Course Part-8

Part – 9 The Way To Add The Facebook Pixel

If you’re using Google Tag Manager to manage tags for your website, you can add your Facebook pixel to your Google Tag Manager account to live and optimize the results of your Facebook advertising.

Install your pixel
  1. Log in to your GTM account.
  2. Select your website’s container and click on Add a replacement tag.
  3. Click the Custom HTML tag and enter a reputation for your tag.
  4. Attend Events Manager and click on Details for your pixel.
  5. Click found out and choose Manually install the code yourself.
  6. Copy the whole pixel base code, as shown below.
  7. Return to Google Tag Manager and paste the code within the HTML container.
  8. Click the Advanced settings drop-down and choose once per page under Tag firing options.
  9. Under attack on, select all pages.
  10. Click Create tag.

Click here to watch the video tutorial of Google Tag Manager Course Part-9

Part – 10 The Way To Do Remarketing

Remarketing allows you to point out ads to people that have previously visited your website or used your mobile app. Dynamic remarketing takes this a step further by showing your visitors a billboard with the precise product that they had previously viewed on your site.

Dynamic remarketing is often implemented for any sort of online organization. The list of dynamic values that ought to be captured will depend upon your website’s business objectives. There are parameters defined for various business categories, like education, jobs, travel, etc.

The implementation steps are as follows:

  1. Populate events and parameter values
  2. Insert dynamic values within the remarketing tag
  3. Specify triggers to fireside the remarketing tag
  4. Test and deploy

Click here to watch the video tutorial of Google Tag Manager Course Part-10

Part – 11 The Way To Setup Conversion Tracking On Your Website

Valuable actions for your company are called conversions. A conversion is often, for instance, subscribing to a newsletter, downloading an app, or buying a product. Conversion tracking helps you to live the defined conversions and assign them to specific sources. In this manner, you’ll determine whether a conversion resulted from a digital ad campaign, a social media post, or an immediate visit to your website.

Google Tag Manager may be a tag management system that permits you to update tags and code snippets on your websites or mobile apps, like those intended for traffic analysis or marketing optimization.

You can use Google Tag Manager to deploy the tracking code on your website, without having to involve development, during a few simple steps.

  • Getting Started
  • Creating a Tag
  • Custom Events

Click here to watch the video tutorial of Google Tag Manager Course Part-11

Part – 12 The Way To Add A Messenger Chatbot To Your Website

Using a Facebook Messenger chatbot for your website chat may be a highly effective thanks to growing your contact list for Facebook Messenger marketing. At an equivalent time, your customers get instant answers and support during a mobile-optimized experience. You’ll use a free chatbot builder and these Facebook Messenger templates with Google Tag Manager to feature a Facebook Messenger chat widget to your site regardless of what platform it runs on including CMS platforms like Magento, WordPress, and more. We’ll use a WIX website for instance.

In a single container controlled from the Google Tag Manager interface, you’ll manage tags you would possibly need for a spread of reasons, from analytics tracking to an internet site chat widget, without the assistance of an experienced developer.

So how are you able to add Facebook Messenger chat to a WIX website? With Google Tag Manager! Just:

  1. Install Google Tag Manager on your website.
    2. Found your website chat widget in MobileMonkey.
    3. Create a replacement tag for your customer chatbot in Tag Manager.

Click here to watch the video tutorial of Google Tag Manager Course Part-12

Part – 13 Why To Connect Schema On Your Website

Google Tag Manager may be a free tool that permits marketers to feature or update tags without having to understand any website coding. During this case, we’re using it to feature a snippet of code to the location of our structured data markup without actually editing any of the web site codes.

“Using structured data enables a feature to be present, it doesn’t guarantee that it’ll be present. The Google algorithm tailors search results to make what it thinks is that the best search experience, counting on variables, search history, location, and device type. In some cases, it’s going to determine that one feature is more appropriate than another, or maybe that a clear blue link is best.” is that the structured data vocabulary that we’ll be using during this GTM demo. Schema is so powerful, yet numerous websites either have poor implementation or aren’t using it in the least. You’ll markup just almost anything, and therefore the benefits of doing this will pay off within the search results.

Click here to watch the video tutorial of Google Tag Manager Course Part-13

Part – 14 The Way To Track Scroll Depth

Scroll depth tracking may be a method of tracking how users scroll throughout your site. It can apply to almost every site and provides insight into the non-interaction behavior of users on your site. In other words, it’s how to know how users move throughout your site, albeit they don’t click anything.

Scroll depth tracking allows you to simply get insight into the scrolling behavior of users on your site, how users are digesting your content, and overlying trends of your site’s user experience. Scroll depth tracking also can validate other metrics, like bounce rate or conversion rate, to offer your analysis another dimension.

Step – 1 Open GTM & make sure that the built-in scrolling variables are configured.

Step – 2 Configure the ‘Scroll Depth’ Trigger

Step – 3 Tag For the Trigger, create a Google Analytics

Click here to watch the video tutorial of Google Tag Manager Course Part-14

Part – 15 The Way To Delete & Restore Triggers

A trigger may be a set of rules that tells your tag when to start out firing. The foremost basic trigger in GTM is that all pages trigger. The all pages trigger tells your tag to fireside on every page when the page loads. This trigger is usually used with the Google Analytics tag.

Google Tag Manager has triggers for YouTube videos, scroll depth, button clicks, custom events, and more.

Each trigger utilizes its own set of rules for firing the tags in GTM.

  1. Manual deletion of tags, triggers, and variables one by one. Not recommended. I won’t explain this feature because it’s terrible. You’re more intelligent than that. I bet that your reluctance to try to the work manually drove you to read this blog post in the first place, right?
  2. Restoring the first version of the container. This solution isn’t universal and works under one circumstance.
  3. Importing an empty container. This is often the foremost recommended solution. I even have prepared an easy GTM recipe for that.

Click here to watch the video tutorial of Google Tag Manager Course Part-15

Conclusion –

Google Tag Manager can make your life easier if you’re willing to find out how it works. Confirm that you simply are using the info that you are fixing in GTM. Google Tag Manager will improve your marketing by supplying you with insight into what can cause an increase or decrease in website activity.

With GTM, you’ll get these insights and be ready to better analyze your website analytics to improve the performance of your website and form more informed marketing decisions.

Recent Post

Quick link