Google Tag Manager Tutorial for Beginners and Newbies - Learn GTM Step by step in less than 15 mins

Опубликовано: 25 Октябрь 2024
на канале: Optizent Academy - Marketing Analytics
1,265
49

Google Tag Manager Tutorial for Beginners - In this tutorial for newbies, you will learn what GTM is, what are various options in it, and how to configure tags, triggers, and variables.
I will also show you an example of configuring a Google Analytics pageview tag as well as steps to enable event tracking in Google Analytics.

Videos mentioned in this video
1. Event Tracking in Google Analytics -    • Event tracking in Google Analytics - ...  
2. How Tag Manager Works -    • How Does Google Tag Manager Works? Ta...  
3. How to use JavaScript in Google Tag Manager -    • How to use JavaScript in Google Tag M...  

Training Resources
Google Tag Manager Mastery course - https://academy.optizent.com/courses/...

00:00 Introduction
00:23 - What is a tag and what is a tag manager
01:15 Login to Google Tag Manager
01:44 - Accounts and Containers in Google Tag Manager
03:00 Creating a Google Tag Manager Container
05:42 Creating Google Analytics Page View Tag
07:02 Getting Google Analytics Tracking ID to add in Google Tag Manager
07:40 Configuring a Trigger
08:43 Various types of variables in GTM
10:40 Preview mode in Google Tag manager to debug
11:50 Publishing GTM container to make it live on the site
12:38 Google Analytics Event Tracking in Google Tag Manager

[00:00:29.950]
A tag is generally a piece of JavaScript code or an image that you need to put on your website for tracking or advertising purposes. Examples are Google Analytics, tracking Facebook, Pixel, et Cetera, Tag Manager is a tool that allows you to easily deploy all these tags to your site without you having to modify the page code. So instead of putting each and every pixel on your web pages, you manage them in a Tag Manager and put Tag Manager JavaScript code on your web pages. Once that's done, all your tags and pixels can be managed within Tag Manager. So now that you understand what's a tag and a Tag Manager, let's go to Google Tag Manager and see how it works.
[00:02:43.990]
Think of Container as a collection of all the things that you will be enabling on your app or website. This will become clear as we move forward in this tutorial. To create a new container, click on these three dots and then click on Create Container that will bring you to an interface where you can create your container, give your container a name and then pick the platform that you will be using this container on.
[00:03:47.640]
So any page when it loads with this code, it will bring all the configurations that we are going to look at in just a few minutes. If your website is developed in WordPress, then you will likely use a WordPress plugin to install Google Tag Manager. In that case, you do not need the full code, you will just need this container ID.
[00:04:20.290]
There are three things I want you to be aware of tags, triggers and variables. Tags are the pieces of code that you want to fire. Examples are Google Analytics page view tracking, Google Analytics event tracking, Facebook pixel tracking, Google Ads conversion tracking, et cetera. These are all tags.
[00:04:44.530]
Triggers are the rules or the conditions when you want to fire any specific tag. For example, you want to fire Google Analytics page view tracking. When a page loads, you might want to fire a particular event when somebody clicks on a link or a button on your website.
[00:05:10.420]
Those things are called triggers. Then there are variables. Just like any programming language, variables store information or data. You can use variables to pull the information from your web pages or certain tags or triggers and pass them to other tags or triggers or even variables. Keep in mind, Google Tag Manager is a rules engine.
[00:05:32.570]
You are just defining the rules to fire certain tags. It does not store any data. Now let's go ahead and create these tags, triggers and variables. So first I'm going to create a tag to track page views in Google Analytics. Go ahead and click on Tags.
[00:06:24.670]
Next you have to assign your Google Analytics tracking ID. This is the property ID or the Tracking ID of Google Analytics property where you will be sending this data. So when the tag fires, then it will send the Page View data to that property that you specify here. To set the tracking ID, click here and click on New Variable. We are going to store this information in a variable.
[00:07:30.130]
However, that tag will only get fired under certain conditions and those are called triggers. So click here or again on the pencil icon and pick all pages. We want to fire this on all the pages. You can configure all sorts of triggers by clicking on this plus here and then configuring a new trigger. To configure a new trigger, click in the middle and here.