In this tutorial:

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 improves 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 setup a Google Tag Manager account, which consists of 2 main steps: Creating a Google Tag Manager account (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 site, this is the address:
    https://www.google.com/tagmanager/
  2. Click the Sign up now button.
  3. Enter an Account Name, choose if you want to share your data with Google, then click the Next button.
  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.
  6. It will drop down with additional options, choose your Time Zone, and click the Create Account and Container button.
  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 "What directory should I put my files in?"
  1. Login to the Google Tag Manager.
  2. Click Accounts, then click the account you want to setup.
  3. Select your container from the Containers section. Now, click Users & Settings, then Settings.
  4. Copy the provided code, it must be pasted into each page of your website. It will look similar to this:
  5. Login to 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 <body> tag.


    Repeat Step 5, and Step 6 for each page of your site.

Congratulations, now you know how to setup Google Tag Manager! The next article will show you how to add tags to your container via Google Tag Manager.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!