Overview
Add Google Analytics to any ModuleX agent or workflow. Manage Google Analytics 4 properties, list accounts, configure key events, and run analytics reports against the Google Analytics Admin (analyticsadmin.googleapis.com) and Data (analyticsdata.googleapis.com) APIs.
Authentication
OAuth2 Authentication
Connect using Google OAuth (recommended)Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Client ID | Google Cloud OAuth 2.0 Client ID | Yes | 1234567890-abcdefghijklmnop.apps.googleusercontent.com |
| Client Secret | Google Cloud OAuth 2.0 Client Secret | Yes | GOCSPX-xxxxxxxxxxxxxxxxxxxxxxxx |
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/analytics.edit,https://www.googleapis.com/auth/analytics.readonly
Available Actions
list_account_options — List Google Analytics accounts available to the authenticated user via the Admin API (/accounts endpoint).
list_account_options — List Google Analytics accounts available to the authenticated user via the Admin API (/accounts endpoint).
Parameters
50)Response
list_property_options — List GA4 properties visible to the authenticated user by flattening the propertySummaries returned from the Admin API /accountSummaries endpoint.
list_property_options — List GA4 properties visible to the authenticated user by flattening the propertySummaries returned from the Admin API /accountSummaries endpoint.
Response
create_ga4_property — Create a new GA4 property under an existing Google Analytics account via the Admin API (POST /properties).
create_ga4_property — Create a new GA4 property under an existing Google Analytics account via the Admin API (POST /properties).
Parameters
Response
create_key_event — Create a new GA4 key event (conversion) on a property via the Admin API (POST /{parent}/keyEvents).
create_key_event — Create a new GA4 key event (conversion) on a property via the Admin API (POST /{parent}/keyEvents).
Parameters
Response
run_report — Run a Universal Analytics (v4 Reporting API) report against a given view ID. Note: Universal Analytics was sunset July 2024 by Google; use run_report_in_ga4 for new GA4 reports.
run_report — Run a Universal Analytics (v4 Reporting API) report against a given view ID. Note: Universal Analytics was sunset July 2024 by Google; use run_report_in_ga4 for new GA4 reports.
Parameters
Response
run_report_in_ga4 — Run a GA4 Data API report against a GA4 property (POST /properties/{property}:runReport).
run_report_in_ga4 — Run a GA4 Data API report against a GA4 property (POST /properties/{property}:runReport).
Parameters
Response
Limits & Quotas
- Admin API — default quota is 1,200 requests per minute per project, with a daily ceiling of 600,000 requests per project. See the Admin API quotas docs for the per-method breakdown.
- Data API — quotas are tracked separately per property (core tokens, realtime tokens, server errors). See the Data API quotas docs for the multi-token model and per-tier limits (Standard vs. Analytics 360).
- Universal Analytics Reporting API v4 is included for backward
compatibility only; Universal Analytics properties stopped processing data on
July 1, 2024.
run_reportwill returnsuccess=Falsewith an API error for any non-GA4 view. - Error model — non-2xx HTTP responses and timeouts are caught and returned
as
success=Falseplus a populatederrorstring rather than raised. Plan for agent-side retries based on the error string.