Tag Manager: Audit Tracking
gtm_audit_trackingAudit the conversion tracking in one Google Tag Manager container — its published version, or a draft workspace when scope is workspace — and rank what is wrong by what it does to measurement. Container checks: paused tags, tags with no trigger (setup/teardown tags excepted), active duplicate GA4 configuration or Google tags (double counting where their triggers overlap), Universal Analytics tags still firing, marketing tags without a consent setting, custom HTML, triggers and variables nothing references (checked through nested settings, trigger groups and sequencing; reported as unverified when the reference graph is incomplete), and unpublished workspace changes. When Google Ads is also connected, it reads the account that tracks the conversions (the manager account under cross-account tracking) and joins every enabled website conversion action on that account's AW- id plus conversion label with the container's Google Ads conversion tags, keeping every matching tag: actions with no tag here, actions a variable-driven tag might send to (unresolved), tags for no action, tags sending to another account's id and paused conversion tags; GA4-imported, offline, call and app conversions are listed as not applicable, never as missing. Each finding carries a stable id, severity, confidence (confirmed, likely, unverified), the entities by kind and id, and what it asks for next (draft, review, external, info). Read-only; it changes nothing in Tag Manager or Google Ads.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gtm_audit_tracking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Read the live version from Google again instead of the copy cached for ten minutes. Only needed right after the user published a change. Default false. | |
| scope | No | What to judge: live (the published version, default) or workspace (one draft workspace, named by `workspace`; what the container would look like with its unpublished changes). | |
| container | No | The container: its public id (GTM-XXXXXXX), its name, or its API path from gtm_list_containers. May be left out when the connected login reaches exactly one container. | |
| workspace | No | The draft workspace to audit (by name or id, as the user named it) when scope is workspace; naming one implies scope workspace. | |
| skip_google_ads | No | Audit the container alone, without reading Google Ads conversion actions. Default false. | |
| include_workspaces | No | Also read unpublished changes (one API request per workspace, up to 3). Default true. | |
| google_ads_account_id | No | Google Ads customer id (10 digits) of the account this container measures, for the conversion cross-check. Default: the connected Google Ads account, or its selected one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | When Google answered the read the audit judged (ISO instant). | |
| scope | Yes | live (the published version) or workspace (a draft). | |
| complete | Yes | False when a list was cut off by paging; completenessNotes says which. | |
| findings | Yes | Findings, worst first. | |
| lowCount | Yes | LOW findings. | |
| publicId | No | Public GTM-XXXXXXX id of the container. | |
| tagCount | Yes | Tags in the version or workspace judged. | |
| tagKinds | Yes | Tags per kind. | |
| fromCache | Yes | True when the live version came from the ten-minute cache rather than Google. | |
| highCount | Yes | HIGH findings. | |
| mediumCount | Yes | MEDIUM findings. | |
| ruleVersion | Yes | Version of the audit rules that produced these findings. | |
| triggerCount | Yes | Triggers. | |
| containerName | Yes | The container's name. | |
| containerPath | Yes | API path of the container, accounts/{a}/containers/{c}. | |
| evidenceNotes | Yes | Why the reference graph is incomplete: lists cut off, kinds not read, references that resolved to nothing. | |
| liveVersionId | No | Id of the published container version the answer describes. | |
| variableCount | Yes | User-defined variables. | |
| workspaceName | No | The workspace read, when scope is workspace. | |
| pausedTagCount | Yes | Of which paused. | |
| evidenceComplete | Yes | True when the reference graph was complete, so unused verdicts are facts; false when evidenceNotes list what could not be checked. | |
| googleAdsChecked | Yes | True when conversion actions were compared. | |
| completenessNotes | Yes | What the read did not cover, empty when complete. | |
| conversionActions | Yes | One row per Google Ads conversion action; empty when not checked. | |
| googleAdsCustomerId | No | The Google Ads account audited. | |
| conversionCustomerId | No | The account whose conversion actions apply (the manager under cross-account tracking). | |
| conversionTrackingId | No | Numeric part of the AW- id the container's conversion tags must send to. | |
| googleAdsSkippedReason | No | Why they were not, when they were not. | |
| unpublishedChangeCount | Yes | Changes waiting in the workspaces read; 0 when workspaces were not read. |