Notification

G Suite is now Google Workspace: everything your business needs to get work done.

Google Analytics 4

Set up Google Analytics in Tag Manager

To set up Google Analytics 4 (GA4) in Google Tag Manager, you need to configure the Google tag. The Google tag enables data to flow from your website to Google Analytics and any other designated destinations. Ensure you create a unique Google tag for each website. For additional instructions on setting up Google Analytics, refer to Set up Analytics.

How the Google tag works

The Google tag works by loading your Google Analytics property on a page and:

Before you begin

This guide assumes that you've done the following:

It also assumes that you have the following:

  • Access to the Tag Manager container for the website
  • The Editor (or above) role to the Google Analytics account

Set up the Google tag

  1. Go to https://tagmanager.google.com.
  2. Sign in to your Google Account. Learn how to create a Google Account.
  3. In Tag Manager, click the Accounts tab (top left), then select your container. Find your way around Tag Manager.
  4. In the Workspaces tab, go to Tags, then click New (top right).
  5. In the panel, follow these steps:
    1. Replace Untitled Tag with the name of your tag (for example, 'Google tag').
    2. In the Tag Configuration section:
      1. In Choose tag type, select Google Tag.
      2. In Tag ID, enter your Tag ID. Learn how to find your Tag ID.
      3. Optional: You can set up additional configuration options to govern how your Google tag communicates with its destinations. If you set up the Google tag and want to keep all its default settings, you can skip the optional settings.

        Optional settings

    3. In the Triggering section, select Initialization - All Initialization Events or Some Initialization Events. Learn more about Page view triggers.
  6. Click Save.

Verify and publish

Verify

  1. Go to https://tagmanager.google.com.
  2. Sign in to your Google Account. Learn how to create a Google Account.
  3. Open the Tag Manager container you want to edit. Find your way around Tag Manager.
  4. In the Workspace tab, click Preview (top right) to launch Google Tag Assistant in a new tab.
  5. Enter your website URL and click Connect. Learn to debug with Tag Assistant.

Publish

An animation showing how to publish the container on Google Tag Manager.

  1. In the Workspace tab, click Submit (top right)
  2. In the Submission Configuration section, follow these steps:
    1. Select Publish and Create Version to publish the changes to your site. To save the changes without publishing them, select Create Version instead.
    2. Enter a name and description for the version.
  3. Select Activity History to review the changes you've made since the previous version.
  4. Click Publish (top right).

Was this helpful?

How can we improve it?
11763829109768315750
true
Search Help Center
true
true
true
true
true
102259
Search
Clear search
Close search
Main menu
false
false
false