Marketing Toolbox
Marketing Toolbox provides three command-line tools for Google Analytics 4 and Google Tag Manager:
ga4datactlqueries the Google Analytics Data API.ga4adminctlmanages the Google Analytics Admin API.gtmctlmanages the Google Tag Manager API.
This guide describes the released 0.3.0 commands. The report-leaf --schema flags described in GA4 Data are available in 0.3.0. Earlier 0.2.0 installations should use the existing ga4datactl sdk schema --command "reports run" route instead.
Start with installation, then choose an authentication method. A fresh user can discover the installed command tree without a product-specific skill:
ga4datactl --help
ga4datactl reports --help
ga4datactl reports run --helpUse the same root → group → leaf --help pattern for ga4adminctl and gtmctl. Root help also links to authentication and the relevant official API; tool behavior explains JSON output, schemas, and safety boundaries.
Choose a command
Use ga4datactl for reporting data, ga4adminctl for Analytics account and property configuration, and gtmctl for Tag Manager accounts, containers, and workspaces. sdk schema provides locally installed request descriptors only for eligible leaves; it is not a substitute for leaf help or live resource permissions.
The verified canonical web guides are project home, authentication, GA4 Data, GA4 Admin, and Tag Manager.