Firebase 用户参与度计算 [英] Firebase User Engagement Calculation

查看:16
本文介绍了Firebase 用户参与度计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力思考 Firebase 用户参与度计算.我现在正在做很多调试视图测试,正如在线文档所述(https://support.google.com/firebase/answer/6317485),默认情况下,Firebase 会在应用处于前台时在会话中定期触发 user_engagement 事件.

I am trying to wrap my head around the Firebase User Engagement Calculation. I am doing a lot of debugview testing now, and as the online documentation states (https://support.google.com/firebase/answer/6317485), Firebase is firing the user_engagement event by default on a periodic basis within a session while the app is in the foreground.

到目前为止,我所看到的是 user_engagement 在参与的开始和结束时被非常可靠地触发(这可能在特定会话中发生多次).

What I have seen thusfar is that user_engagement is fired quite reliably in the beginning and end of an engagement (this can be occurring multiple times in a specific session).

场景:举例来说,我开始我的会话并退出应用程序,但在相同的 30 分钟时间段内再次返回.session_start 不会再次触发,而只会触发 user_engagement.这非常聪明,因为我实际上可以查询在这种情况下经历的第一次和最后一次参与.

Scenario: Say for instance I started my session and exited the app, but returned again within the the same 30 minutes time slot. The session_start won't fire again, but only user_engagement. This is quite clever, because I can actually then query first and last engagement experienced within this scenario.

我的问题是:我实际上如何查询 user_engagement 的开始和用户参与的结束之间的区别?目前,engagement_time_msec 允许我测量:自上次 user_engagement 事件以来的额外参与时间 (ms) (https://support.google.com/firebase/answer/7061705?hl=en),而不是从 user_engagement 开始.如果我想从第一次参与和最后一次参与来衡量参与度,假设我之前描述的特定场景.这个问题的想法是询问示例查询如何解决这个问题.

My question is: How would I actually then query the difference between the beginning of a user_engagement and end of the user engagement ? Currently engagement_time_msec allows me to measure: The additional engagement time (ms) since the last user_engagement event (https://support.google.com/firebase/answer/7061705?hl=en), and not since the beginning of the user_engagement. What if I wanted to measure engagement from the first engagement and last engagement, assuming my specific scenario describe earlier. The idea of this question is to ask how would an example query look like to address this question.

推荐答案

自从我发布这个问题后,我发现查看会话持续时间而不是用户参与事件之间的持续时间会更明智.

Since I posted this question, I found it would be a lot wiser to look at Session Duration and not Duration between User Engagement Events.

据我所知,不能更新 user_engagement 事件的设置,但是可以确定会话应该开始的时间(在 0、5、10、15 等秒之后)和b) 会话何时应该结束(在 10、30、60 分钟等不活动后).

As far as I know, one can not update settings of the user_engagement event, but one can however determine when a session should start (after 0, 5, 10, 15, etc seconds) and b) when a session should end (after 10, 30, 60, etc minutes of inactivity).

这里有一些很好的例子来帮助你入门:

To help you get started here is great examples:

重要提示:Firebase 会话默认在触发 user_engagement 事件至少 10 秒后开始(并且会话在没有触发 user_engagement 的至少 30 分钟后结束).因此,只要用户使用您的应用的时间少于 10 秒,您就会在没有会话的情况下增加用户参与度.这通常意味着您的仪表板中的活跃用户群将高于在 Firebase 事件选项卡下启动会话的用户.

Important: a Firebase session starts by default after at least 10s since a user_engagement event was triggered (and a session ends after a period of at least 30 minutes of no triggers of user_engagement). And so, whenever users use your app for a period of less than 10s, you will accrue user engagement without a session. This typically means that you will have higher active user base in your dashboard, than users which started a session under your Firebase Events'-tab.

这篇关于Firebase 用户参与度计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆