Reputation: 37
How can I get a specific event count ex. eventName "video_start" and "Form"
I get total event count with "metrics":[{"name":"eventCount"}], but want only two events
POST https://analyticsdata.googleapis.com/v1alpha:runReport BODY JSON:
{
"entity":{"propertyId":"IDIDID"},
"metrics":[{"name":"sessions"}],
"metrics":[{"name":"conversions"}],
"metrics":[{"name":"eventCount"}],
"dimensions":[{"name":"sessionDefaultChannelGrouping"}],
"dateRanges":[{"startDate":"2021-01-01","endDate":"today"}]
}
DOC: https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema
Upvotes: 2
Views: 4096