2014-05-13 53 views
10

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

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

然而,在分析仪表板:

enter image description here

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

+0

[在Google Analytics(分析)中设置用户ID](https://support.google.com/analytics/answer/3123666) –

+2

如果Google发现您的分析数据中包含用户名,他们将删除整个帐户和所有的数据。请参阅使用条款的第7部分。 – TombMedia

回答

10

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

有关adding custom dimensions to send user IDs to Google Analytics的更多详细信息。

+0

我相信拉莫斯是指GA内的观点在这里指出:http://cutroni.com/blog/2014/04/10/understanding-cross-device-measurement-and-the-user-id/我也有同样的问题。 – shug

+0

是的,但用户标识从未在Google Analytics界面中公开。它仅用于统一设备间的用户数据。 – dvdsmpsn

+0

我们现在处于四月份推出的用户标识功能。这仍然是真的吗?我没有看到他们在文档中提到的报道报告。 https://support.google.com/analytics/answer/3123670?hl=en – Amir

相关问题