Get Device Metrics
get_device_metricsRetrieve device category metrics from Google Analytics 4 for a date range. Specify property and dates to analyze user behavior by device type.
Instructions
Get device metrics for a specific date range from Google Analytics 4.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End date in YYYY-MM-DD format | |
| dimensions | No | List of dimensions to group by (optional, defaults to ["deviceCategory"]) | |
| start_date | Yes | Start date in YYYY-MM-DD format | |
| property_id | Yes | Google Analytics 4 property ID (numeric, e.g., "123456789") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||