簡體   English   中英

Google Analytics iOS中的自定義維度

[英]Custom Dimensions in Google Analytics iOS

我已通過以下方式在Google Analytics iOS中為我的應用實施了3個用戶級自定義維度:

[tracker send:[[[GAIDictionaryBuilder createAppView] set:[DeviceType deviceType] forKey:[GAIFields customDimensionForIndex:1]] build]];
[tracker send:[[[GAIDictionaryBuilder createAppView] set:[[UIDevice currentDevice] systemVersion] forKey:[GAIFields customDimensionForIndex:2]] build]];
[tracker send:[[[GAIDictionaryBuilder createAppView] set:fullVersionUser forKey:[GAIFields customDimensionForIndex:3]] build]];

我已在控制面板中正確設置尺寸,並將所有3個列表設置為活動狀態。 我只是想知道,我如何簡單地查看這些尺寸? 我已經嘗試生成自定義報告,似乎沒有任何顯示。 反正有沒有使這些尺寸出現在常規報告中?

問題是我在app委托中執行上面的代碼行,我沒有設置屏幕視圖。 當我將代碼更改為以下內容時:

[tracker send:[[[[GAIDictionaryBuilder createAppView] set:@"App Delegate"  forKey:kGAIScreenName] set:[DeviceType deviceType] forKey:[GAIFields customDimensionForIndex:1]] build]];

有效。 您還可以將代碼移動到GAITrackedViewController子類的視圖控制器,並執行以下操作:

self.screenName = @"some screen name";

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM