Setup and installation

To get started managing your tags using Google Tag Manager:

  1. Go to to create a Google Tag Manager account (or to access an existing account).
  2. Create a container for your site or app.
  3. For websites: Add the container snippet to your site while removing any existing tags. For mobile apps: Implement the Google Tag Manager SDK for Android or iOS.

You’re then ready to add tags (such as Google Analytics and AdWords Conversion Tracking tags) to your site via the Google Tag Manager user interface.

Watch this video to get a quick introduction to the Tag Manager installation process for websites:

In this article:

Creating an account and container

The account is the topmost level of organization in Google Tag Manager. Typically, only one account is needed per company. Tags for all the company’s websites can be be managed from this single account.

You can create and/or administer multiple Google Tag Manager accounts from a single Google account. This allows you to conveniently manage tracking and campaigns for more than one company. Each time you sign in to Google Tag Manager, you’ll see the list of the Google Tag Manager accounts to which your Google Account has access.

  1. From the Home/All Accounts page in Google Tag Manager, click Create Account. (You can always get to this screen by clicking on the Tag Manager icon in the far upper left corner of the screen.)
  2. Enter an account name, optionally select the checkboxes to enable sharing data anonymously with Google and others and click Continue.
  3. Enter a container name when prompted in the Setup Container dialog, select the container for Web, iOS, or Android, and click Create.
  4. Review the Terms of Service and click Yes if you agree to those terms.
  5. When your new container first loads, you will be prompted with the container installation code snippet (web) or to download the Tag Manager SDK for your chosen mobile platform. Click OK to clear this dialog (you can always set up your container first and install the container snippet or SDK later.)

For mobile apps, each app (including new major versions of the same app) should have it's own container. Name the container after the app and version, for example "exampleapp2_1".

Adding the container to web pages

A container snippet is provided for each web container. To install the container snippet:

  1. Near the top of your container's home screen, you will see your container ID number (formatted as "GTM-XXXXX"). Click it to launch the Install Google Tag Manager box.
  2. Copy and paste the code snippet into your website. Paste this code so that it appears immediately after the opening <body> tag on every page on your site.
    Note the portion of the code GTM-XXXXXX: This is the unique identifier for each of your containers. Be sure to remove any tags that are now in the Google Tag Manager Container (e.g. Google Analytics, AdWords Conversion Tracking, etc) from the site pages at the same time.
  3. To help verify or troubleshoot your installation, you can use Tag Manager's Preview Mode and the Tag Assistant Chrome extension.

Learn more at the Google Tag Manager developer site.

Adding the container to mobile apps

Download and implement the Google Tag Manager SDK for Android or iOS. Learn more about mobile implementation at the Google Tag Manager developer site.

Creating additional containers for existing accounts

Often you will need additional containers in your account. For instance, you may want to add another container for an additional website or mobile app. To add an additional container to an account:

  1. In Google Tag Manager, select an account. The Containers page appears.
  2. On the Containers page, click Admin in the top nav bar.
  3. From the Containers dropdown menu, choose Create Container…
  4. Enter a container name when prompted. Select if you will use the container for Web or for Mobile and click Create.

Adding, updating and publishing tags

You’ll need to add tags to your new container. Begin by replacing any tags you removed from the site in the previous step. For example, if you deleted an AdWords Conversion Tracking tag, add it back in Google Tag Manager. Once a container has been created and the container tag has been added to the site, you’re ready to add and update all tags from the Tags page.

  1. In Google Tag Manager, select an account. The Containers page appears.
  2. Click your site’s container in the list. The Tags page appears.
    • To add a tag: Click New Tag from the Container screen. Select the tag type (for example, Google Analytics) and specify triggers for when the tag should fire. Read Tags to learn more.
    • To edit a tag: (for example, update the triggers for when the tag should fire) Click the tag in the list. Make changes on the Edit Tag page. Read Tags to learn more.
    • To delete a tag: In the left nav bar, click Tags. Click the tag in the list. On the Edit Tag page, click the Delete button in the lower right corner of the screen.
  3. Preview your site. Previewing gives you an opportunity to perform quality assurance (QA) on your site. You can make sure the site looks and behaves as you expect and, using the debugging option, see which tags fire as you browse and interact with the site.
    • From any page in a container with unpublished changes, click the Publish button in the upper right corner of the screen, then click Preview and Debug. Read Previewing and Debugging to learn more.
  4. Publish the changes live to your site. When you are ready to make your changes live on your website, click the Publish button in the upper right corner of the screen, then click Publish Now.

Managing mobile app configuration from the container

Use Value Collections to define configuration values. Mobile App containers automatically provide predefined variables (such as "app name", "app version", "screen resolution", etc) that you can use in rules to make configuration values conditional.

Was this article helpful?