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 All Accounts page in Google Tag Manager, click New Account.
  2. Enter an account name, optionally select the checkboxes to enable anonymous data sharing and 2-step login verification, and click Continue.
  3. Create the container. A container holds all the tags for a specific website or mobile app. It’s often a good idea to name the container after the site or app itself. Every account must have at least one container. Enter a container name when prompted in the Setup Container dialog, select the container for Web or for Mobile, and click Create.

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. On the main Google Tag Manager home screen, you will see a list of your accounts with containers listed underneath each account. Click the desired container to select it.
  2. On the main nav bar, click Admin.
  3. Double check that your container is selected in the Container settings column and click Install GTM.
  4. 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.
  5. To help verify or troubleshoot your installation, you can use Tag Manager's Preview Mode and the Tag Assistant Chrome extension.

Adding the Container to Mobile Apps

  1. Go to to create a Google Tag Manager account (or to access an existing account).
  2. Create a container for your app in the account (select the "Mobile Apps" option).
  3. Download and implement the Google Tag Manager SDK for Android or iOS.

Visit the Tag Manager developer site to learn more.

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?