我怎样才能获得特定的事件计数。eventName "video_start" 和 "Form"
我使用“metrics”获得总事件计数:[{“name”:“eventCount”}],但只需要两个事件
发布https://analyticsdata.googleapis.com/v1alpha:runReport 正文 JSON:
{
"entity":{"propertyId":"IDIDID"},
"metrics":[{"name":"sessions"}],
"metrics":[{"name":"conversions"}],
"metrics":[{"name":"eventCount"}],
"dimensions":[{"name":"sessionDefaultChannelGrouping"}],
"dateRanges":[{"startDate":"2021-01-01","endDate":"today"}]
}
文档:https ://developers.google.com/analytics/devguides/reporting/data/v1/api-schema