getPageViews
Retrieve page view metrics from Google Analytics 4 for a specified date range. Analyze website traffic by grouping data with dimensions like page or country to understand visitor behavior patterns.
Instructions
Get page view metrics for a specific date range
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dimensions | No | Dimensions to group by (e.g., page, country) | |
endDate | Yes | End date in YYYY-MM-DD format | |
startDate | Yes | Start date in YYYY-MM-DD format |
Input Schema (JSON Schema)
{
"properties": {
"dimensions": {
"description": "Dimensions to group by (e.g., page, country)",
"items": {
"type": "string"
},
"type": "array"
},
"endDate": {
"description": "End date in YYYY-MM-DD format",
"type": "string"
},
"startDate": {
"description": "Start date in YYYY-MM-DD format",
"type": "string"
}
},
"required": [
"startDate",
"endDate"
],
"type": "object"
}