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
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
string
required
The Google Tag Manager account ID
string
required
The container ID
string
required
The workspace ID
string
required
The name of the tag
string
required
The type of the tag (see Tag Dictionary Reference)
string
required
JSON string representing the list of parameters for the tag
boolean
Whether the tag should only fire in the live environment
string
Any notes or comments about the tag
string
JSON string representing consent settings for the tag
string
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
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
string
required
The Google Tag Manager account ID
string
required
The container ID
string
required
The workspace ID
string
required
The tag ID
string
required
The type of the tag (see Tag Dictionary Reference)
string
required
JSON string representing the list of parameters for the tag
string
The name of the tag
boolean
Whether the tag should only fire in the live environment
string
Any notes or comments about the tag
string
JSON string representing consent settings for the tag
string
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
string
required
The Google Tag Manager account ID
string
required
The container ID
string
required
The workspace ID
string
required
The variable ID
string
required
The name of the variable
string
required
The type of the variable (e.g. ‘jsm’)
string
required
JSON string representing the list of parameters for the variable
string
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).