Install Google Analytics via Google Tag Manager

Use these steps to install a standard pageview implementation of Google Analytics via Google Tag Manager:

  1. If you have not already done so, create a container and place the Tag Manager container code on your website.
  2. In Tag Manager, select Tags and then New and then select the Universal Analytics tag type.
  3. Configure your tag
    1. Give the tag a descriptive name, such as "GA Pageview".
    2. Add your Google Analytics property ID.
    3. Choose the Track Type. The most common type of tracking is Page View, which tracks information each time a browser loads a site page.
    4. Most implementations enable Display Advertising Features. This feature adds demographic data in your analytics reports and enables the ability to perform segmentation based on demographic data.
  4. Select firing triggers. The most common implementation is to select All Pages. This means that the Analytics tag will execute on every page of your site.
  5. Choose Create Tag. Now you are ready to preview, debug, and publish this tag.

This basic tag configuration enables Google Analytics to generate pageview reports. You will receive data such as the number of users visiting your site, pages viewed, time spent on the site, the bounce rate, incoming traffic sources, and goal conversions.

Keep reading for tips on how to collect additional Analytics data using  auto-event tracking and custom dimensions.

Before deploying any analytics tags, you should start with a measurement plan that details the data you want to collect. This will help you report the performance of your business objectives and key performance indicators (KPIs) to your stakeholders. If you’re new to measurement planning, check out Analytics Academy for tips on how to create a solid measurement plan.

Previous: Why Google Tag Manager | Next: Naming conventions and setup tips

Was this article helpful?
How can we improve it?