---
title: "How to Setup Google Tag Manager"
description: "In this tutorial: Create Account Add Container When you are developing a website, Google Tag Manager can help you handle the many tags you are using. Tags are javascript files (typically used for..."
url: https://www.inmotionhosting.com/support/website/google-tools/tag-manager/
date: 2013-12-27
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Google Tools"]
type: post
lang: en
---

# How to Setup Google Tag Manager

## In this tutorial:

[Create Account](#create) [Add Container](#container)

When you are developing a website, **Google Tag Manager** can help you handle the many tags you are using. Tags are javascript files (typically used for tracking) that pull from separate 3rd party services, such as *Google Analytics*, *DoubleClick Floodlight Counter*, or *Adwords*. This can slow down site load times since it must wait for a response from the 3rd party scripts before it can completely load your page.

A *container* tag is placed on each page of your website, and it pulls all the tags that you set up from Google Tag Manager. This simplifies the process for adding or removing scripts from your website, but it can also improve the load times. Google tag manager is helpful for marketing a website since it allows you to quickly add tags to a container without having to access/edit the code of the website. In this tutorial, we will show you how to set up a Google Tag Manager account, which consists of 2 main steps: [Creating a Google Tag Manager account](#create) (this will create a container), then Adding the container to your web pages.

## Create Google Tag Manager Account:

1. Go to the [Google Tag Manager](https://www.google.com/tagmanager/) site, this is the address: https://www.google.com/tagmanager/
2. Click the **Sign up now** button. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_sign-up.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_sign-up.jpg)
3. Enter an **Account Name**, choose if you want to share your data with Google, then click the **Next** button. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_setup-account.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_setup-account.jpg)
4. On the next screen enter a **Container Name**. Google suggests that you “*name the container after the website*.”
5. Choose if you are going to use the Container on *Web Pages*, or *Mobile Apps*. For this article I chose **Web Pages**. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_container-name.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_container-name.jpg)
6. It will drop down with additional options, choose your **Time Zone**, and click the **Create Account and Container** button. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_create-container.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_create-container.jpg)
7. The *Google Tag Manager Terms of Service Agreement* will then be displayed, click the **I ACCEPT** button to proceed. You will then see the code for your *Container*, in the next section we will show you how to add it to your website.

## How to Add the Container to your Site:

There are several ways to add this code to your website; in this tutorial, I am using the **File Manager** in *cPanel*. If you are not familiar with your file structure, see our article titled “[Find the Document Root of your Website.](https://www.inmotionhosting.com/support/website/where-to-upload-files/)”

1. Log in to the [Google Tag Manager](https://www.google.com/tagmanager/).
2. Click **Accounts**, then click the account you want to set up. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_select-container.png)](/support/wp-content/uploads/2013/12/google_tag-manager_select-container.png)
3. Select your container from the *Containers* section. Now, click **Users & Settings**, then **Settings**. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_container-settings.png)](/support/wp-content/uploads/2013/12/google_tag-manager_container-settings.png)
4. Copy the provided code, it must be pasted into each page of your website. It will look similar to this: [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_container-code.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_container-code.jpg)
5. [Login to cPanel](https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/).
6. Click the **File Manager** button in the *Files* section. If the *Directory Selection* window pops up, choose **Web Root**, then click **Go**.
7. Navigate to where your website files are located. Now, click the site file you want to add the container to and click the **Edit** button. (If the *Text Editor* window pops up, click the **Edit** button)
8. Paste the code immediately after the **&ltbody>** tag. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/12/google_tag-manager_paste-google-tag-manager-code.jpg)](/support/wp-content/uploads/2013/12/google_tag-manager_paste-google-tag-manager-code.jpg) Repeat **Step 5**, and **Step 6** for each page of your site.

Congratulations, now you know how to set up **Google Tag Manager**! The next article will show you how to add tags to your container via Google Tag Manager.
