会话持续时间超过谷歌分析中的默认时间(30分钟) [英] session duration more than the default (30 minutes) in google analytics
问题描述
在我的谷歌分析中,会话时间设置为30分钟。
但是平均值。我在报告表中看到的会话持续时间在某些情况下超过30分钟。
非常感谢百万
问候
深度
不活动是应用会话中的任何时段用户没有与它进行交互,和会话超时尚未满足。 在用户不活动的情况下,如果应用程序是后台或前台,则无关紧要。换句话说,如果您的应用程序背景昏暗,或者只是闲置在应用程序页面上,在这两种情况下都被视为无效。
会话超时实际上不是一种设置,而是一种变量用于计算会话长度。
会话计时器= 0分钟
用户启动应用程序(会话计时器开始)
倒计时不是0(从超时设置开始)
如果用户触发事件或查看屏幕
将会话时间添加非活动时间
重新开始倒计时
其他
继续倒计时
原谅但是问题是,只有在满足会话超时之前应用程序中存在某些活动时,才会计算在后台花费的时间。
<不幸的是,我没有任何文档来支持这个(因为它不存在,这就是为什么我花时间写这个)。不过,我已经使用官方的Google AnalyticsSDK在iOS和Android上测试了它,这确实是如何工作的。如果需要,我可以与您讨论测试。
In my google analytics the session time is set to 30 minutes. but the avg. session duration that I see in my report tables is more than 30 minutes in some cases. How can it be possible?I am so confused.please please help me.
thanks a million Regards
Main Points
- This is possible because each time there is activity (event or screen view) in your app, the session timeout timer is reset to the full duration.
- Inactive time in the app is counted, but only under specific conditions
- Understanding how Google defines when an app is inactive really helps
In-Depth
Inactivity is any period in the app session when the user is not interacting with it, and the session timeout has not yet been met. It does not matter if the app is backgrounded or foregrounded while the user is inactive. In other words, If you have the app backgrounded, or are simply sitting idle on an app page, you would be considered inactive in both scenarios.
Session Timeout is not actually a setting, but rather a variable
session timer = 0 minutes
user launches app (session timer starts)
while countdown is not 0 (starting from timeout setting)
if user triggered event OR viewed screen
add inactivity time to session time
restart countdown
else
continue with countdown
Pardon the crudely-written pseudocode, but the point is, time spent in background is only counted if there is some activity in the app that occurs before the session timeout is met.
Unfortunately, I don't have any documentation to support this (as it doesn't exist, which is why I am taking the time to write this). However, I have tested this on both iOS and Android using the official Google Analytics SDK and this is indeed how it works. I can discuss the test with you if need be.
这篇关于会话持续时间超过谷歌分析中的默认时间(30分钟)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!