简体   繁体   English

Google Analytics(分析)会话对移动设备(iOS和Android)计数错误

[英]Google analytics session count wrong for mobile (iOS & Android)

We have Google analytics set-up for iOS and Android (also we run it on our web) and it is recording screen views and user counts correctly but not the session count. 我们拥有适用于iOS和Android的Google Analytics(分析)设置(也在我们的网络上运行),它可以正确记录屏幕浏览量和用户数,但不能记录会话数。

iOS 的iOS

  • Users: 39,165 用户:39,165
  • Sessions: 4,123,544 会话数:4,123,544
  • Screen Views: 5,969,818 屏幕浏览量:5,969,818

Android 安卓系统

  • Users: 5,853 使用者:5,853
  • Sessions: 669,675 会话数:669,675
  • Screen Views: 901,164 屏幕浏览量:901,164

Our implementation of Google Analytics seems to be pretty much out of the box. 我们对Google Analytics(分析)的实施似乎是开箱即用的。

GAI.SharedInstance.DefaultTracker.Set (GAIConstants.ScreenName, pageName);
GAI.SharedInstance.DefaultTracker.Send (GAIDictionaryBuilder.CreateAppView ().Build ());

With the settings: 使用设置:

GAI.SharedInstance.DispatchInterval = 20;
GAI.SharedInstance.TrackUncaughtExceptions = false; //We use another 3rd party

On iOS we are using the latest version of google analytics and on Android we are using the latest version for ICS. 在iOS上,我们使用最新版本的Google Analytics(分析),在Android上,我们使用最新版本的ICS。

Any ideas would be greatly appreciated. 任何想法将不胜感激。

Google Analytics' session calculating is based on interaction from the user. Google Analytics(分析)的会话计算基于用户的互动。 If the user clicks, the session gets a heartbeat. 如果用户单击,则会话将获得心跳。 If the user is watching a movie (eg) it wont be interacting with your application and the session stops. 如果用户正在观看电影(例如),它将不会与您的应用程序进行交互,并且会话将停止。

Check out these pages to learn more about time calculation in Google Analytics, which helped me understanding the session calculations inside Google Analytics: http://cutroni.com/blog/2012/02/29/understanding-google-analytics-time-calculations/ http://cutroni.com/blog/2012/02/23/advanced-content-tracking-with-google-analytics-part-2/ 查阅以下页面以了解有关Google Analytics(分析)中时间计算的更多信息,这有助于我了解Google Analytics(分析)中的会话计算: http : //cutroni.com/blog/2012/02/29/understanding-google-analytics-time-calculations / http://cutroni.com/blog/2012/02/23/advanced-content-tracking-with-google-analytics-part-2/

It's based on web, but it just gave me more insights. 它基于Web,但是它给了我更多的见解。

After all, to fix your problem, you should manage your session manually. 毕竟,要解决您的问题,您应该手动管理会话。 This fixed the problem for me. 这为我解决了问题。 You can find my detailed implementation right here: https://stackoverflow.com/a/26882024/1485701 您可以在这里找到我的详细实现: https : //stackoverflow.com/a/26882024/1485701

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM