Setup and Workflow (Web)

To get started managing your tags using Google Tag Manager:

  1. Go to tagmanager.google.com to create a Google Tag Manager account (or to access an existing account).
  2. Create a container for your site in the account.
  3. Add the container snippet to your site while removing any existing tags on your site.

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 an introduction to the Tag Manager installation process:

Creating an Account

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 website 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. A container holds all the tags for a specific website. It’s often a good idea to name the container after the site. Every account must have at least one container. Enter a container name when prompted in the Setup Container dialog, select the container for Web option, and click Create.

Adding the Container Snippet

A container snippet is provided for each 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 the Tag Assistant Chrome extension.

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 from the site, 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.
Was this article helpful?