Firebase Analytics如何定义会话?

时间:2023-01-16 15:18:46

Firebase Analytics has a number of stats around "Sessions" (like "Sessions per user" and "Average session length"), but how exactly does Firebase Analytics define a session?

Firebase Analytics围绕“会话”提供了大量统计信息(例如“每个用户的会话数”和“平均会话长度”),但Firebase Analytics究竟如何定义会话?

2 个解决方案

#1


14  

And I'll answer my question by saying that Firebase Analytics defines a session as a user engaging with your app for a minimum amount of time (10 seconds by default) followed by your user not engaging with your app for a certain amount of time (30 minutes by default). But you can change those times if you'd like something different.

我会回答我的问题,说Firebase Analytics将会话定义为用户与您的应用程序保持最少的时间(默认为10秒),然后您的用户在一段时间内不与您的应用程序互动(默认为30分钟)。但是如果你想要不同的东西,你可以改变那些时间。

So if a user starts using your app, switches to messaging to send a message, goes back to your app, switches to messaging again to send a quick selfie, then goes back to your app, that's all considered just one session.

因此,如果用户开始使用您的应用程序,切换到消息传递以发送消息,返回到您的应用程序,再次切换到消息传递以发送快速自拍,然后返回到您的应用程序,这都被认为只是一个会话。

Similarly if a user accidentally taps on your app icon and then quickly switches away to open up the app they actually meant to open, that won't get recorded as a session.

同样,如果用户意外地点击了您的应用图标,然后快速切换以打开他们实际打算打开的应用,则不会将其记录为会话。

#2


5  

Adding to Todd Kerpelman's response above, you can customize the definition of a session via FirebaseAnalytics.setMinimumSessionDuration(long millis) and FirebaseAnalytics.setSessionTimeoutDuration(long millis).

添加到上面的Todd Kerpelman的响应,您可以通过FirebaseAnalytics.setMinimumSessionDuration(long millis)和FirebaseAnalytics.setSessionTimeoutDuration(long millis)自定义会话的定义。

The docs are at: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics

文档位于:https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics

(Sorry, don't have the reputation to make this a comment)

(抱歉,没有声誉可以发表评论)

#1


14  

And I'll answer my question by saying that Firebase Analytics defines a session as a user engaging with your app for a minimum amount of time (10 seconds by default) followed by your user not engaging with your app for a certain amount of time (30 minutes by default). But you can change those times if you'd like something different.

我会回答我的问题,说Firebase Analytics将会话定义为用户与您的应用程序保持最少的时间(默认为10秒),然后您的用户在一段时间内不与您的应用程序互动(默认为30分钟)。但是如果你想要不同的东西,你可以改变那些时间。

So if a user starts using your app, switches to messaging to send a message, goes back to your app, switches to messaging again to send a quick selfie, then goes back to your app, that's all considered just one session.

因此,如果用户开始使用您的应用程序,切换到消息传递以发送消息,返回到您的应用程序,再次切换到消息传递以发送快速自拍,然后返回到您的应用程序,这都被认为只是一个会话。

Similarly if a user accidentally taps on your app icon and then quickly switches away to open up the app they actually meant to open, that won't get recorded as a session.

同样,如果用户意外地点击了您的应用图标,然后快速切换以打开他们实际打算打开的应用,则不会将其记录为会话。

#2


5  

Adding to Todd Kerpelman's response above, you can customize the definition of a session via FirebaseAnalytics.setMinimumSessionDuration(long millis) and FirebaseAnalytics.setSessionTimeoutDuration(long millis).

添加到上面的Todd Kerpelman的响应,您可以通过FirebaseAnalytics.setMinimumSessionDuration(long millis)和FirebaseAnalytics.setSessionTimeoutDuration(long millis)自定义会话的定义。

The docs are at: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics

文档位于:https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics

(Sorry, don't have the reputation to make this a comment)

(抱歉,没有声誉可以发表评论)