[英]Differences between AppView and ScreenView in GoogleAnalytics iOS SDK
I'm using Google Analytics 3.0.9 iOS SDK for my iPhone app developement. 我正在使用Google Analytics 3.0.9 iOS SDK进行iPhone应用开发。 I found some issues with idfa.
我发现了一些与idfa有关的问题。 So, iam moving to 3.0.3c as suggested from Answer .
所以,我按照Answer的建议移动到3.0.3c。
While implementing the 3.0.3c SDK, i found the error "no known class method for selector 'create screenview' . 在实现3.0.3c SDK时,我发现错误“没有已知的选择器类方法'创建screenview' 。
In the line : 在线:
**[tracker send:[[GAIDictionaryBuilder createScreenView] build]];**
iam supposed to change as 我应该改变为
**[tracker send:[[GAIDictionaryBuilder createAppView] build]];**
If the change is supposed to done, iam not getting the tracking correctly as previous. 如果应该进行更改,则不能像以前那样正确地进行跟踪。 What i supposed to do for implementing analytics without these issues.
如果没有这些问题,我应该怎么做才能实现分析。 If possible may i know the differences between these sdk's and between screenview and appview.
如果可能,我可以知道这些sdk与screenview和appview之间的差异。
now GA used for Advanced Configuration 现在GA用于高级配置
Managing Sessions with defaults to 30 minutes 管理会话,默认为30分钟
[tracker send:[[GAIDictionaryBuilder createAppView] build]]
this is used for Data is sent to Google Analytics by setting maps of parameter-value pairs on the tracker and sending them via the set and send methods: 这用于通过在跟踪器上设置参数值对的映射并通过set和send方法发送数据,将数据发送到Google Analytics:
//it is used in all hits sent from this screen //this is used for V3
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:@"MainMenu Screen"];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];
Managing Sessions with manually 手动管理会话
To manually start or end a session
// Start a new session with a screenView hit.
GAIDictionaryBuilder *builder = [GAIDictionaryBuilder createScreenView];
[builder set:@"start" forKey:kGAISessionControl];
[tracker set:kGAIScreenName value:@"MainMenu Screen"];
[tracker send:[builder build]];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.