Google Analytics信息中心内不显示用户ID(iOS) [英] User ID not displaying in Google Analytics dashboard (iOS)

查看:131
本文介绍了Google Analytics信息中心内不显示用户ID(iOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将GA的用户ID功能链接到我的iOS应用,但这似乎不起作用。从文档中,我启用了支持用户ID的视图(配置文件)。然后,我设置了userId字段。



我的代码:
AppDelegate.m

  ID< GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; 

//您只需要在跟踪器上设置用户ID一次。通过将其设置在跟踪器上,ID将为
//随后的所有匹配发送。
[tracker set:@& uid
value:@userIDTest];


//此匹配将以用户标识值发送,并在启用了用户标识的视图(配置文件)中显示。
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@User Test// Event category(required)
action:@User Sign In//事件动作(必需)
label: nil //事件标签
value:nil] build]]; //事件值

然而,在分析仪表板中:




我似乎无法找到一个可以看到用户ID的地方。

解决方案

您无法在Google中看到用户ID分析。它仅用于统一设备间的数据。要查看用户ID,请尝试添加一个也记录用户ID的自定义维度。然后您将有权在界面中查看它。



有关添加自定义维度以将用户ID发送到Google Analytics(分析))


I'm trying to link GA's User ID feature to my iOS app, but this doesn't seem to be working. From the documentation, I enables a User ID capable view (profile). Then, I set the userId field.

My code: AppDelegate.m

id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];

// You only need to set User ID on a tracker once. By setting it on the tracker, the ID will be
// sent with all subsequent hits.
[tracker set:@"&uid"
       value:@"userIDTest"];


// This hit will be sent with the User ID value and be visible in User-ID-enabled views (profiles).
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"User Test"            // Event category (required)
                                                      action:@"User Sign In"  // Event action (required)
                                                       label:nil              // Event label
                                                       value:nil] build]];    // Event value

However, in the analytics dashboard:

I can't seem to find one place where I can see the user id.

解决方案

You cannot see the user id in Google Analytics at all. It's only there to unify data across devices. To view the user id, try adding a custom dimension which also records user id. Then you'll have access to view it in the interface.

More details on adding custom dimensions to send user IDs to Google Analytics.

这篇关于Google Analytics信息中心内不显示用户ID(iOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆