François Lecomte - Installing Google Tag Manager in 5 minutes
François Lecomte - Installing Google Tag Manager in 5 minutes
François Lecomte - Installing Google Tag Manager in 5 minutes

Install Google Tag Manager in 5 Minutes: Quick Setup Guide

François Lecomte

by

François Lecomte

Sep 14, 2024

Data

Data

Install Google Tag Manager in 5 Minutes: Quick Setup Guide

Identify and convert your most valuable users
Hyperaktiv.ai Dashboard
Hyperaktiv.ai Dashboard
Hyperaktiv.ai Dashboard

Sign Up

Google Tag Manager (GTM) is a powerful tool that allows you to manage various marketing and analytics tags on your website without having to modify the code. In this guide, we'll walk you through the process of installing and configuring Google Tag Manager, which typically takes less than 5 minutes.


Google Tag Manager


Step 1: Create a Google Tag Manager Container


  1. Go to tagmanager.google.com.

  2. Create a new container with the type "Web"

  3. Note that you only need to create one container for both your website and web app


Google Tag Manager - Create New Container


Step 2: Install Google Tag Manager on Your Website

After creating your container, you'll see instructions for installing GTM on your site. You'll need to add two scripts to your website:


  1. The first script goes in the <head> section of your HTML

  2. The second script goes immediately after the opening <body> tag


Google Tag Manager - Code Snippets


Note for CMS Users: If you're using a Content Management System (CMS) like Bubble or Framer, the installation process might be different. Usually, you'll need to use a plugin in the CMS. Check your CMS documentation or our guide for specific instructions.

Example of how the code should look in your HTML:


Google Tag Manager - How the code should look like in HTML


Step 3: Verify the Installation

To ensure GTM is correctly installed:


  1. Use the GTM installation checker feature

  2. Enter your website's URL and click "Test"

  3. Wait for the checkmark to appear, confirming the successful installation


Google Tag Manager Instalation checker -  green mark


Step 4: Understanding Tags and Triggers

Now that GTM is installed, let's cover two crucial concepts:


  1. Triggers: Events that occur on your website or web app (e.g., button clicks, page views)

  2. Tags: Scripts that send information to tracking software when triggered

Step 5: Creating a Trigger

Let's create a trigger for tracking clicks on a specific link:


  1. In GTM, create a new trigger

  2. Choose the trigger type "Link Click"

  3. Set a condition to capture only the desired link (e.g., URL starts with a specific text)


Google Tag Manager Creating new triggers


Step 6: Creating Tags

Now, let's create tags that will fire when our trigger is activated:


  1. Create a Google Analytics tag

  2. Create a Google Ads tag

  3. Create a Segment tag (or any other analytics platform you use)

Associate each tag with the trigger you created in Step 5.


Google Tag Manager Creating a new tag


Step 7: Testing Your Configuration

Before publishing your changes:


  1. Click the "Preview" button in GTM

  2. Use the Tag Assistant debugger to verify that your triggers and tags are working correctly

  3. Navigate your website and check if the events are captured as expected


Google Tag Manager Captured Events


Step 8: Publishing Your Container

Once you're satisfied with your configuration:


  1. Click the "Submit" button to publish your container

  2. Add a description of your changes for version control purposes

  3. Publish the container to make your changes live


Publishing a container in Google Tag Manager


Congratulations! You've successfully installed and configured Google Tag Manager. Remember, you can always make changes through the GTM console without modifying your website code directly.

By following these steps, you'll have a powerful tracking system set up on your website in no time. Happy tracking!

For a more in-depth walkthrough and to see these steps in action, we recommend watching the full video tutorial. The video will provide additional context, tips, and tricks to help you make the most of Google Tag Manager for your website or web application.

Want to make the captured data actionable?

Want to make the captured data actionable?

Get Started Today