Run pivot report
documentedGenerate a pivot report for a given GA4 property.
POST /v1beta/{property=properties/*}:runPivotReportAnalytics Data APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://analyticsdata.googleapis.com/v1beta/properties/{{$property_id}}:runPivotReport" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"dateRanges": [{"startDate": "{{$startDate}}", "endDate": "{{$endDate}}"}], "dimensions": [{"name": "{{$dimension1}}"}, {"name": "{{$dimension2}}"}], "metrics": [{"name": "{{$metric1}}"}], "pivots": [{"fieldNames": ["{{$pivotField1}}"]}, {"fieldNames": ["{{$pivotField2}}"]}] }'