GoogleAnalytics - Group events by users

Deadly 提交于 2019-12-11 13:25:38

问题


I used the Google's developer guide's example to create an event for my Android app to see it in my Google Analytics account:

// Get tracker.
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
    TrackerName.APP_TRACKER);
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
    .setCategory(getString(categoryId))
    .setAction(getString(actionId))
    .setLabel(getString(labelId))
    .build());

The problem is that all the events are shown togather. Is there a way to somehow group them by users so I can see how many events happened per user and not just how many happened in total?


回答1:


If you just want to be able to track event completions per session, then you can simply use your event in conjunction with goals (goals are only counted once per session). However, if you require counting events per user than you will probably have to use the User ID custom dimension.




回答2:


The way you need to do it is by creating a custom dimension (which is like a table's primary key which is for example a user id) and a custom metric (which is like a regular column in a table) and then you can make a custom report or a dashboard containing these dimensions and metrices.

This is a guide how to create them:

https://support.google.com/analytics/answer/2709829?hl=en



来源:https://stackoverflow.com/questions/30166195/googleanalytics-group-events-by-users

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!