用户ID在Google Analytics仪表板(iOS)中不显示

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

我的代码: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 

但是,在分析仪表板中:

在这里输入图像说明

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

根本无法在Google Analytics中看到用户ID。 只能在各个设备上统一数据。 要查看用户ID,请尝试添加也logging用户ID的自定义维度。 然后,您将有权在界面中查看它。

有关添加自定义维度以将用户ID发送给Google Analytics的更多详细信息。