Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Google Tag Manager

This documentation for the Google Tag Manager integration describes the technical capabilities of this integration, including authorization, scopes/permissions, and utilized endpoints. For more information on how to integrate Google Tag Manager, visit our connection instructions.

Version

This integration utilizes the Google Tag Manager Google Tag Manager v2.

Base URL

The base URL used for all Google Tag Manager API endpoints:
https://www.googleapis.com/tagmanager/v2

Authentication & Authorization

The DataGrail Google Tag Manager integration connects using OAuth 2.0.

Scopes

The Google Tag Manager integration requires specific scopes that must be granted in order to function for a given capability.

ScopeBase
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.edit.containerversions
https://www.googleapis.com/auth/tagmanager.publish
Base Scopes
All base scopes must be granted in order to connect the integration with DataGrail. The remaining scopes are only required if enabling those capabilities

Endpoints Utilized

DataGrail uses the following endpoints to authorize and test the connection:


Limits

Limits in Google Tag Manager are calculated using the leaky bucket algorithm. All requests that are made after rate limits have been exceeded are throttled and an HTTP 429 Too Many Requests error is returned. Requests succeed again after enough requests have emptied out of the bucket.

  • DataGrail supports requests throttling to stay within 70-80% of specified service rate limits.
  • DataGrail processes API responses with HTTP 429 status to interrupt requests, waiting and retrying (using an exponential backoff strategy).

Capabilities

System Detection

DataGrail provides continuous system detection, delivering a real-time inventory of your data assets.

Data Interactions

DataGrail's System Detection process runs once daily and performs the following actions:

  1. List all GTM Accounts that a user has access to.
  2. Lists all Containers that belongs to each of GTM Accounts.
  3. Lists all Workspaces that belong to each of GTM Containers.
  4. Lists all GTM Tags for each of Containers.

Endpoints Utilized

MethodEndpointPurposeDocs
GET/accountsLists all GTM Accounts that a user has access to.
GET/accounts/account_id/containersLists all Containers that belongs to a GTM Account.
GET/accounts/account_id/containers/container_id/workspacesLists all Workspaces that belong to a GTM Container.
GET/accounts/account_id/containers/container_id/workspaces/workspace_id/tagsLists all GTM Tags of a Container.

 

Need help?
If you have any questions, please reach out to your dedicated Account Manager or contact us at support@datagrail.io.

Disclaimer: The information contained in this message does not constitute as legal advice. We would advise seeking professional counsel before acting on or interpreting any material.