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:
- From your Google Tag Manager console, obtain your container ID and, if desired, auth token. For details, see Add a new container.
- Click > Admin > Sites & Settings > Sites > Global.
- From the Front-End tab, expand the Tag Manager cluster.
- Under Tag Manager, click Google Tag Manager.
- Using the following table as a reference, complete the fields as needed.
- Click Save.
| Field | Description |
|---|---|
| Container ID | Enter 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 Previews | Toggle on to enable Google Tag Manager for page previews. |
| Environments tab | |
| Auth Token | Enter the authorization token you copied in step 1 for the specified Google Tag Manager environment. For details, see Tag Manager API Authorization. |
| Preview Environment | Enter 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 Cookie | Toggle on to force Google Tag Manager to use the environment specified in the Google Tag Manager console. This field overrides the Preview Environment field. |
Google Tag Manager is supported on pages that have disabled scripting.
Verifying that the Google Tag Manager snippet is present
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:
- On one of the pages of your site for which you have configured Google Tag Manager, right-click the page and click View Source.
- Using the Find function (CMD-F on Mac; CTRL-F on PC), search for
gtmand verify that the Google Tag Manager code is included on the page.
Validating the snippet is making a call to Google Tag Manager
The following procedure assumes you are using Google Chrome.
To validate that the snippet is making a call to Google Tag Manager:
- On one of the pages of your site which includes the Google Tag Manager snippet, right-click the page and click Inspect.
- On the Google Developer Toolbar, click the Network tab.
- Refresh the page.
- In the Filter search bar, type
gtm. - 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: