用户 ID 未显示在 Google Analytics 仪表板 (iOS) 中 [英] User ID not displaying in Google Analytics dashboard (iOS)

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

问题描述

我正在尝试将 GA 的用户 ID 功能链接到我的 iOS 应用程序,但这似乎不起作用.从文档中,我启用了具有用户 ID 功能的视图(配置文件).然后,我设置了 userId 字段.

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.

我的代码:AppDelegate.m

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:

我似乎找不到可以看到用户 ID 的地方.

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

推荐答案

您在 Google Analytics 中根本看不到用户 ID.它只是为了统一跨设备的数据.要查看用户 ID,请尝试添加也记录用户 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.

有关添加自定义维度以发送用户的更多详细信息Google Analytics(分析)的 ID.

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

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