如何从Google AnalyticsAPI读取事件?

时间:2021-12-06 13:36:24

How do I read custom events from the Google Analytics API (e.g. with the help of gapi.class.php)?

如何从Google AnalyticsAPI读取自定义事件(例如,在gapi.class.php的帮助下)?

If I have three events (myEvent1, myEvent2 and myEvent3) and they all belong to eventCategory myEventCategory, how do I read that data?

如果我有三个事件(myEvent1,myEvent2和myEvent3)并且它们都属于eventCategory myEventCategory,我该如何读取该数据?

I have been searching the API docs but found nothing on retrieving the results of event tracking.

我一直在搜索API文档,但在检索事件跟踪结果时却一无所获。

1 个解决方案

#1


45  

You would set your dimensions to:

您可以将尺寸设置为:

ga:eventCategory, ga:eventAction, ga:eventLabel

ga:eventCategory,ga:eventAction,ga:eventLabel

And then you'd set your filter to:

然后你将过滤器设置为:

ga:eventCategory==myEventCategory

GA:eventCategory == myEventCategory

#1


45  

You would set your dimensions to:

您可以将尺寸设置为:

ga:eventCategory, ga:eventAction, ga:eventLabel

ga:eventCategory,ga:eventAction,ga:eventLabel

And then you'd set your filter to:

然后你将过滤器设置为:

ga:eventCategory==myEventCategory

GA:eventCategory == myEventCategory