Introduction
These instructions explain how to set up Google Analytics in Google Tag Manager (GTM), so that you can manage Analytics on your site or app via GTM. This can simplify ongoing management of 3rd party services which can be controlled by GTM (e.g. Analytics and AdSense).
Requirements
- A Google Tag Manager Account. If you don’t already have one, see How to set up a Google Tag Manager Account and Container.
- A Google Analytics Tracking ID. If you don’t already have one, see How to set up a Google Analytics Account and Tracking ID.
Skill Level
Basic knowledge of browsers.
More Info
Deploy Google Analytics with Tag Manager: https://support.google.com/tagmanager/answer/6107124
Instructions
Time needed: 5 minutes.
- Go to the Google Tag Manager site.
Go to https://tagmanager.google.com/.
If you’re not already logged in, enter the email or phone number associated with your Google Account, click Next, then enter your password and click Next. - Open the relevant Container.
Click the name of the Container you want to use for Google Analytics.
If you don’t already have one, click Create Account (for more info, see How to set up a Google Tag Manager Account and Container). - Click Tags.
- Click New.
- Click Choose a tag type to begin set-up.
- Click Google Analytics: Universal Analytics.
- Start the Tag Configuration step.
In the Track Type drop down, leave Pageview selected.
In the Google Analytics settings drop down, select New Variable…. - Complete the Variable Configuration step.
In the Tracking ID field enter your Google Analytics Tracking ID.
In the Cookie Domain field, leave the value as auto.
Click Save. - Confirm the Variable Name.
Click Save.
- Click Choose a trigger to make this tag fire.
- Click All Pages.
- Save the Tag.
Click Save.
- Confirm the Tag name.
Click Save.
- Submit the changes to the Container.
Click Submit.
- Complete the Submission Configuration step.
In the Version Name field enter a name for the changes made (for reference).
In the Version Description field, enter a brief description of the changes (for reference).
Click Publish.