analytics_data
Fetch sessions, users, conversions, traffic sources, and device breakdown from Google Analytics 4 by providing project and account IDs.
Instructions
Query your Google Analytics 4 data — sessions, users, conversions, traffic sources, and device breakdown.
Requires a connected GA4 data source. Call list_projects() then list_connections()
to find your project_id and account_id.
Args:
project_id: Your project UUID (from list_projects)
account_id: GA4 property ID (from list_connections, e.g. "375869549")
endpoint: What data to fetch:
- "complete_data": Full analytics with device breakdown (last 2 months)
- "sessions": Session and user metrics (last 3 months)
- "conversions": Conversion and e-commerce metrics (last 3 months)
- "device_breakdown": Metrics by device category (last month)
- "traffic_acquisition": Traffic by source/medium (last 2 months)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| endpoint | No | complete_data | |
| account_id | Yes | ||
| project_id | Yes |