Overview
Add Google Tag Manager to any ModuleX agent or workflow. Manage tags, variables, and workspaces in Google Tag Manager containers via the Tag Manager API v2 (www.googleapis.com/tagmanager/v2).
Categories: Analytics & Data · Analytics · Marketing · Auth: OAuth2 · Actions: 6
Authentication
OAuth2 Authentication
Connect using Google OAuth (recommended)Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Client ID | Google OAuth App Client ID | Yes | - |
| Client Secret | Google OAuth App Client Secret | Yes | - |
OAuth Configuration
- Authorization URL:
https://accounts.google.com/o/oauth2/v2/auth - Token URL:
https://oauth2.googleapis.com/token - Scopes:
https://www.googleapis.com/auth/tagmanager.edit.containers,https://www.googleapis.com/auth/tagmanager.readonly
Available Actions
create_tag — Create a tag in a Google Tag Manager workspace
create_tag — Create a tag in a Google Tag Manager workspace
Parameters
The Google Tag Manager account ID
The container ID
The workspace ID
The name of the tag
The type of the tag (see Tag Dictionary Reference)
JSON string representing the list of parameters for the tag
Whether the tag should only fire in the live environment
Any notes or comments about the tag
JSON string representing consent settings for the tag
JSON string representing monitoring metadata for the tag
Response
get_tag — Get a specific tag from a Google Tag Manager workspace
get_tag — Get a specific tag from a Google Tag Manager workspace
get_tags — List all tags in a Google Tag Manager workspace
get_tags — List all tags in a Google Tag Manager workspace
list_account_id_options — List available Google Tag Manager accounts
list_account_id_options — List available Google Tag Manager accounts
Response
update_tag — Update a tag in a Google Tag Manager workspace
update_tag — Update a tag in a Google Tag Manager workspace
Parameters
The Google Tag Manager account ID
The container ID
The workspace ID
The tag ID
The type of the tag (see Tag Dictionary Reference)
JSON string representing the list of parameters for the tag
The name of the tag
Whether the tag should only fire in the live environment
Any notes or comments about the tag
JSON string representing consent settings for the tag
JSON string representing monitoring metadata for the tag
Response
update_variable — Update a variable in a Google Tag Manager workspace
update_variable — Update a variable in a Google Tag Manager workspace
Parameters
The Google Tag Manager account ID
The container ID
The workspace ID
The variable ID
The name of the variable
The type of the variable (e.g. ‘jsm’)
JSON string representing the list of parameters for the variable
JSON string representing the formatValue object for the variable
Response
Limits & Quotas
- Google Tag Manager API uses per-project quotas managed via the Google Cloud Console.
- Default quota: 10,000 requests per day per project (varies by endpoint).
- Rate limit: approximately 5 requests per second per user.
- Error model: non-2xx responses raise
httpx.HTTPStatusError(Pattern A).