Important notice: Beware of fake recruiters and scammers who misuse Promodo's logo and company name. Learn more in our LinkedIn post!

Google Tag Manager: A Guide for Beginners

PPC
October 18, 2024
15 mins
What Is Google Tag Manager?
Content

With Google Tag Manager, you can quickly add and update tags for analytics, advertising, and other marketing purposes, which greatly simplifies the process of tracking and optimizing online resources. 

In this Google Tag Manager tutorial from Web analyst at Promodo Andrii Korniat, we will look at the main features of Google Tag Manager, analyze the process of setting it up step by step, and show you how to use this tool effectively to achieve business goals.

What is Google Tag Manager?

To install Google Analytics, Hotjar, Meta Pixel, etc. tracking tools on your website, you need to add some JavaScript code. For marketers, these codes collect data on the duration of page visits, form completions, traffic sources, link clicks, and other user actions. For example, the Google Analytics code can track how many people fill out a form on the Contact Us page and send this information to Google Analytics.

One way to streamline the process of adding multiple tracking codes is through Google Tag Manager (GTM). But what is GTM, and what does GTM mean for marketers?

An example of what the JavaScript code might look like:

What Is Google Tag Manager

Adding a single tracking tool is not a difficult task. However, the problem arises when you need to add more scripts to track interactions, sales, and other events. It becomes an ongoing process where new codes have to be added and changed regularly. This can cause delays because the IT department has its own priorities, and marketing tasks often become secondary.

What Is Google Tag Manager

Google Tag Manager solves this problem by simplifying the tag management process.

Google Tag Manager (GTM) is a free tag management solution from Google that serves as an intermediary between your website and marketing or analytics tools. It allows you to add and update tags and code snippets without involving developers. You add tracking codes to Google Tag Manager and set up rules to activate them, for example, when a page is loaded or a button is clicked.

Imagine a tag manager as a dashboard where all the necessary marketing and analytics tools like Google Analytics or Google Ads are stored. Gtm google also allows you to test tags to make sure they are activated correctly and provides the ability to change tags and their behavior without changing the site's source code.

With a Tag Manager account, you can:

  • Easily add, edit, and delete tags.
  • Create triggers that define when and where tags should be triggered.
  • Use variables to dynamically customize tags.
  • Test your settings in preview mode before publishing.

Benefits of Using Google GTM

  • Quick deployment of tracking codes: you can add tracking codes yourself without involving developers, saving time and resources.
  • Tag management in one place: All tags are managed through the GTM interface, eliminating the need to edit website source code and reducing the risk of human error.
  • Built-in and third-party testing tools: The tag manager has a preview and debugging mode that allows you to check the operation of tags before they are published, reducing the likelihood of errors.
  • Easy event tracking: GTM automatically tracks events such as clicks and form submissions, simplifying the setup process and increasing data accuracy.
  • Pre-builttag templates: Tag Manager offers built-in templates for popular tools such as Google Analytics and Google Ads, allowing you to quickly and easily customize tags without the need for deep coding knowledge.

How to Create a Google Tag Manager Account

  1. Go to the official Google Tag Manager website: https://tagmanager.google.com/
  2. Click on the Create Account button to create a new project https://monosnap.com/file/51FHRxQhlnabHz5B0MPAQCElvxAtUj

What Is Google Tag Manager

  1. Sign in with your Google account;
  2. Create a GTM account;
  3. Enter your business name in the Account name field;
  4. Enter the name of your website (domain or just a name);
  5. Select “Web” as the target platform.

What Is Google Tag Manager

A GTM account works similarly to a Google Analytics account. One container can contain several tags, triggers, and variables.

How to Install Google Tag Manager on a Website

After creating a container in GTM, you will receive two codes that you need to add to your website.

What Is Google Tag Manager

  • Add the first code to the <head> section of your website.
  • Add the second code right after the opening <body> tag.

Pass these instructions on to your developer so that they add the codes correctly.

If you are using a content management system such as WordPress or Shopify, use plugins to facilitate the installation process. These codes will ensure that all the customized tags are running on your website.

How to Check if Google Tag Manager is Working

  1. Turn on the preview mode. Click the Preview button in the upper right corner of the gtm google interface.

What Is Google Tag Manager

  1. Enter your site in the window that appears and make sure that the tag is installed on the site.

What Is Google Tag Manager

How Does Google Tag Manager Work?

First, it is important to understand three basic concepts: tags, triggers, and variables.

A tag is a piece of code that is executed on a website under certain conditions. It can include tracking code that captures user actions, such as page views or clicks, and transmits this data to analytics tools like Google Analytics. For example, a tag can collect data about a form being filled out or a purchase being made and send it to the appropriate services for further analysis.

Types of Tags

  • Google Analytics: tracks user actions.
  • AdWords Conversion Tracking: Tracking conversions from ads.
  • Remarketing Tags: Collects data for remarketing purposes.
  • Facebook Pixel: Tracking actions for Facebook ads.
  • Hotjar Tracking: Collects data to analyze user behavior.

What Is Google Tag Manager

The trigger defines when the tag should be launched. This can be when a page loads, a button is clicked, or a form is submitted. For example, a trigger can be configured to be activated every time a user clicks on a specific element on a page. This way, triggers allow you to precisely define the conditions under which tags should be executed.

Types of Triggers

  • Page View: Activated when the page is loaded.some textsome text
    • All Pages: Runs on all pages.
    • Some Pages: Launches on certain pages based on conditions.
  • Click:some textsome text
    • All Elements: Tracks all clicks.
    • Just Links: Only tracks clicks on links.
  • Form Submission: Activated when a form is submitted.
  • Scroll Depth: Tracks the depth of the page scrolling.
  • Timer: Runs a certain amount of time after the page is loaded.

What Is Google Tag Manager

A variable is a data element used by tags and triggers to provide additional information. For example, a variable can contain a page URL, a product ID, or a total order amount. Variables help make the tracking process more flexible and accurate by allowing you to collect specific data depending on the conditions set in triggers.

Types of Variables

  • Built-in Variables:some textsome text
    • Page URL: The address of the page.
    • Click ID: The ID of the clicked element.
  • User-Defined Variables:some textsome text
    • Custom JavaScript: Execute custom JavaScript code.
    • Constant: A constant value that can be used in tags and triggers.
  • Data Layer Variables: Data passed through the Data Layer.some textsome text
    • ecommerce.purchase: Data about purchases.
    • event: Events defined in the Data Layer.

What Is Google Tag Manager

Example of Interaction Between Tags, Triggers, and Variables

  • Tag: The Google Ads conversion tag tracks the completion of a purchase.
  • Trigger: The tag is triggered on a thank you page with a URL containing “purchase-success”.
  • Variable: The total amount of the order is passed to Google Ads when the tag is activated.

This structure allows you to effectively and dynamically manage the tracking of events on the site, simplifying the process for marketers and reducing the workload for developers.

Setting Up Tags in Google Tag Manager

After creating a Tag Manager account, the first step is to configure the tag.

Let's set up the GA4 configuration tag for our website.

Create a new tag:

  • Click “Tags” in the menu on the left.
  • Click the “New” button to create a new tag.

What Is Google Tag Manager

Customize the tag: Name the tag and click Tag Configuration.

What Is Google Tag Manager

You'll see dozens of tag types from various marketing platforms that you can use. Select Google Analytics:

What Is Google Tag Manager

And select Google Tag.

Then paste the MEASUREMENT ID from your GA4.

What Is Google Tag Manager

And choose a trigger by clicking in any field of the Triggering block and select All Pages.

What Is Google Tag Manager

Save the tag:

What Is Google Tag Manager

Set Up a Google Ads Configuration Tag For Our Website

Before proceeding with setting up the tag in GTM, we first need to get a Conversion ID.

Creating a conversion in Google Ads
  • Log in to your account at ads.google.com.
  • Go to Goals > Conversions > Summary.

What Is Google Tag Manager

  • Click New Conversion Action and select Website.

What Is Google Tag Manager

  • Enter your website URL and click Scan.

What Is Google Tag Manager

  • Select Add conversion action manually.

What Is Google Tag Manager

Configure the conversion
  • Select the type of action, in our case it will be Subscribe.
  • Enter a name for the conversion, for example, “Subscription Form”.
  • Specify the value of each conversion.
  • Select the count as “Unit”.
  • Click “Save and continue”.

What Is Google Tag Manager

After that, you will see your conversion in the advertising account. You will need to go to “View Event Tag” and get its Conversion ID and Conversion Label.

What Is Google Tag Manager

Creating a Tag in Google Tag Manager

  • Create a new tag > Tags > New.

  • Select Google Ads > Google Ads Conversion Tracking.

What Is Google Tag Manager

  • Enter the ID and conversion tag that you have already received from your Ads account.

What Is Google Tag Manager

  • Create a “Conversion Linking Tag” by clicking on Create, enter a name for the tag, and save it.

  • Set a trigger for the event, in our case it will be successful form submission.

  • Save the trigger and the tag.

After setting up all the tags, click Submit. Your tag will not work until you do this.

What Is Google Tag Manager

After that, you will be taken to the Post Configuration page. There are two options: “Publish and create version” or ‘Create version’.

For example, I'm ready to place a tag on all pages of my site, I chose Publish and create a version, and then I clicked the blue Publis button in the upper right corner to place all your tags on the site.

Conclusion

Google Tag Manager greatly simplifies the process of managing tags on your website. It allows marketers to add and customize tags on their own without the need for developers, enabling quick deployment of tracking codes and efficient management of all tags from one place. Using the Tag Manager improves the accuracy of analytics, makes it easier to debug and test tags, and provides more flexibility in event tracking. Thanks to its intuitive interface and support for ready-made templates, gtm google is a powerful tool for modern marketers.

Let's reach your business goals!
Contact Promodo experts today for
a free consultation.

Published:
October 18, 2024
Updated:
No items found.
No items found.
No items found.
No items found.
No items found.
No items found.
Subscribe to our newsletter
This is some text inside of a div block.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
List of the US Trust worthy Automotive Forums
DOWNLOAD

You may also like

Check our similar articles

Choose quality and trusted services to improve the presence of your company on the Internet, and feel free to contact our UK team if you have any questions.

Mobile App Marketing
In-App Events and Promotional Content: Tools for Enhancing App User Loyalty

In-App Events are available to users directly in the App Store in the form of an event card that includes a visual, the name of the event, and a description.

November 19, 2024
10 mins
Digital Marketing
All categories
An Exceptional Cardiologist, But Patients Don’t Know About You Yet?

When it comes to running a cardiological practice, reaching the hearts of new patients isn’t just a medical matter—it’s about strategic marketing too.

November 14, 2024
10 mins
Boost your effectiveness

We at Promodo are ready to help you improve your performance across all digital marketing channels.

Get started
Contact us
Get a free strategy session

Let us look at your business challenge from a different angle and share our ideas.

Valid number
Send message

By clicking on “Send message” button, you agree to our Privacy Policy, and allow Promodo to use this information for marketing purposes.

Please check your inbox for a new email containing a list of reputable automotive forums.
Got it
Oops! Something went wrong while submitting the form.