gtm_gtag_config
Create, get, list, update, or remove Google tag configurations in GTM with pagination support.
Instructions
Performs all Google tag config operations: create, get, list, update, remove. The 'list' action returns up to itemsPerPage items per page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Each page contains up to itemsPerPage items. | |
| action | Yes | The Google tag config operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove'. | |
| accountId | Yes | The unique ID of the GTM Account containing the Google tag config. | |
| containerId | Yes | The unique ID of the GTM Container containing the Google tag config. | |
| fingerprint | No | The fingerprint for optimistic concurrency control. Required for 'update' action. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the Google tag config. | |
| gtagConfigId | No | The unique ID of the Google tag config. Required for 'get', 'update', and 'remove' actions. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. | |
| createOrUpdateConfig | No | Configuration for 'create' and 'update' actions. All fields correspond to the Google tag config resource, except IDs. |