Install Google Tag Manager (GTM) to configure and deploy tags, including tags from Google Ads, Google Analytics, Floodlight, and 3rd parties.
How to Set Up and Install GTM
Set up and install Tag Manager Google Support Page
-
Create a new account and container, or add a container to an existing account.
-
Install the container in your website or mobile app.
A Google Tag Manager account represents the topmost level of the organization. Typically, only one account is needed per company. A GTM account contains one or more containers, and there are specific container types that may be used for websites, AMP pages, Android apps, and iOS apps.
Create a New Account and Container
A new container is created by default when you create a new account.
-
In GTM, click Accounts > Create account.
-
You can enter an account name and optionally indicate whether you'd like to share data anonymously with Google and others.
-
Enter a descriptive container name and select the type of content: Web, AMP, Android, or iOS. If setting up a mobile container, select whether you're using the Firebase SDK or one of the legacy SDKs.
-
Click Create.
-
Review the Terms of Service and click Yes if you agree to those terms.
Add a New Container to an Existing Account
-
In GTM, click Accounts next to the relevant account name.
-
Choose Create Container.
-
Enter a descriptive container name and select the type of content: Web, AMP, Android, or iOS. If setting up a mobile container, select whether you're using the Firebase SDK or one of the legacy SDKs.
-
Click Create.
-
Review the Terms of Service and click Yes if you agree to those terms.
When your new container first loads, you will be prompted with the web container installation code snippet or to get started with GTM as part of the SDK for your chosen mobile platform. You can install your code snippets now, or click OK to clear this dialog. You can always set up your container first and install the container snippet or SDK later.
Install the Container
If you are not experienced with code or do not have access to your website or mobile app code, you may need to enlist the assistance of a developer for this step. Developers can learn more at the Tag Manager Developer Quick Start Guide.
-
In GTM, click Workspace.
-
Near the top of the window, find your container ID, formatted as "GTM-XXXXXX".
-
Click your container ID to launch the Install Tag Manager box.
-
Copy and paste the code snippets into your website as instructed in the Install Tag Manager box, or download and install the appropriate mobile SDK. Here are some tips on web, AMP, and mobile installation.
Verify or troubleshoot your installation with Tag Manager's Preview Mode and the Tag Assistant Chrome extension.
Add, Update and Publish Tags
Now that a container is installed, you can add new tags.
-
Click Tags from the navigation menu.
-
To add a tag: Click New. Select the tag type and specify triggers for when the tag should fire.
-
To edit a tag: Click a tag in the list and make changes on the "Edit Tag" page. For example, you might update the triggers for when the tag should fire.
-
To delete a tag: Click a tag in the list. On the "Edit Tag" page, click the menu in the upper right corner of the screen and choose Delete.
-
-
Preview mode gives you an opportunity to inspect your Tag Manager configuration on your site or app to make sure everything behaves as expected. On the web, you can use the debug option to see which tags fire as you browse and interact with the site.
-
From any web page in a workspace with unpublished changes, click Preview. Learn more.
-
For mobile apps, read the developer documentation for Android and iOS.
-
-
When you're ready, click Submit in the upper-right corner of the screen to begin publishing your changes. Add details such as a Version Name and Version description, then click Publish.
Most GTM implementations start with a Google Analytics page view tag deployment. Get step-by-step instructions on how to deploy a Google Analytics tag.