Skip to main content

Google Tag Manager

Brightspot's Google Tag Manager integration allows you to streamline marketing and analytics operations, improve the accuracy and efficiency of tracking data, and optimize the website's performance and user experience.

Configuration

You can configure this integration at the Global level or the site level. Global configurations are inherited by all sites, and site-level configurations override Global configurations. This topic explains how to configure this integration at the Global level.

To configure the Google Tag Manager integration:

  1. From your Google Tag Manager console, obtain your container ID and, if desired, auth token. For details, see Add a new container.
  2. Click > Admin > Sites & Settings > Sites > Global.
  3. From the Front-End tab, expand the Tag Manager cluster.
  4. Under Tag Manager, click Google Tag Manager.
  5. Using the following table as a reference, complete the fields as needed.
  6. Click Save.
FieldDescription
Container IDEnter your Google Tag Manager container's ID that you copied in step 1. This field is used to uniquely identify your container, which holds all of your tags, triggers, and variables for a particular site or app.
Enabled in PreviewsToggle on to enable Google Tag Manager for page previews.
Environments tab
Auth TokenEnter the authorization token you copied in step 1 for the specified Google Tag Manager environment. For details, see Tag Manager API Authorization.
Preview EnvironmentEnter a name for the preview environment. Google Tag Manager will load the container to this environment in preview mode. This ensures that any testing is not visible to site visitors.
Use Environment Set in CookieToggle on to force Google Tag Manager to use the environment specified in the Google Tag Manager console. This field overrides the Preview Environment field.
Note

Google Tag Manager is supported on pages that have disabled scripting.

Verifying that the Google Tag Manager snippet is present

tip

Clear your cache before testing if Google Tag Manager is working on your site. This may be done at the browser level or by adding any query parameter to the end of the URL path.

To verify that the Google Tag Manager snippet is present on a Brightspot site:

  1. On one of the pages of your site for which you have configured Google Tag Manager, right-click the page and click View Source.
  2. Using the Find function (CMD-F on Mac; CTRL-F on PC), search for gtm and verify that the Google Tag Manager code is included on the page.

Validating the snippet is making a call to Google Tag Manager

Note

The following procedure assumes you are using Google Chrome.

To validate that the snippet is making a call to Google Tag Manager:

  1. On one of the pages of your site which includes the Google Tag Manager snippet, right-click the page and click Inspect.
  2. On the Google Developer Toolbar, click the Network tab.
  3. Refresh the page.
  4. In the Filter search bar, type gtm.
  5. Verify that the script appears, that the call was made to Google Tag Manager, and verify the ID of the container that was called.

Resources

Google Tag Manager includes a number of public resources that are available to users, including demonstrations and conceptual guides. See the list below: