我正在为我的应用程序开发Firebase分析,因此以下问题在同一个上下文中 - firebase是否有“保留用户,未打开应用程序但在设备上有应用程序”的概念?如果是,它是否会显示在Firebase信息中心上?
另外,我如何获得每天新安装的用户(新用户)的数量。
感谢所有帮助。
答案 0 :(得分:0)
不,无法在Firebase Analytics上跟踪此问题。当您的用户使用您的应用时,Firebase SDK会向FA发送事件,并汇总这些数据以生成报告。
通过这种方式,他们可以提取活跃用户,但无法确定已安装该应用但未使用该用户的用户。
您可以根据“first_open”事件确定新用户。此事件显示首次打开应用程序的用户数
答案 1 :(得分:0)
在将Firebase与BQ(Source)链接之后,可以在BigQuery中计算 N天非活跃用户:
-- N-Day Inactive Users = users in the last M days who have not logged a user_engagement event in the last N days where M > N.
SELECT
COUNT(DISTINCT M_days.user_id)
FROM (
SELECT
user_id
FROM
/* PLEASE REPLACE WITH YOUR TABLE NAME */
`YOUR_TABLE.events_*`
WHERE
event_name = 'user_engagement'
/* Has engaged in last M = 7 days */
AND event_timestamp > UNIX_MICROS(TIMESTAMP_SUB(CURRENT_TIMESTAMP, INTERVAL 7 DAY))
/* PLEASE REPLACE WITH YOUR DESIRED DATE RANGE */
AND _TABLE_SUFFIX BETWEEN '20180521' AND '20240131') AS M_days
/* EXCEPT ALL is not yet implemented in BigQuery. Use LEFT JOIN in the interim.*/
LEFT JOIN (
SELECT
user_id
FROM
/* PLEASE REPLACE WITH YOUR TABLE NAME */
`YOUR_TABLE.events_*`
WHERE
event_name = 'user_engagement'
/* Has engaged in last N = 2 days */
AND event_timestamp > UNIX_MICROS(TIMESTAMP_SUB(CURRENT_TIMESTAMP, INTERVAL 2 DAY))
/* PLEASE REPLACE WITH YOUR DESIRED DATE RANGE */
AND _TABLE_SUFFIX BETWEEN '20180521' AND '20240131') AS N_days
ON
M_days.user_id = N_days.user_id
WHERE
N_days.user_id IS NULL