用户首次触碰时间(user_first_touch_timestamp)和首次打开时间(first_open_time)有何不同?

4

“first”是指在此次应用程序运行期间(直到应用程序终止并重新启动)的第一次,还是跨越多次运行的第一次?

我原以为这些字段只有一个值,但实际上它们经常有两个。当我运行此查询时:

SELECT
  user_pseudo_id,
  COUNT(*) AS the_count
FROM (
  SELECT
    DISTINCT user_pseudo_id,
    user_first_touch_timestamp AS user_first_touch_timestamp
  FROM
    `noctacam.<my project>.events*`
  WHERE
    app_info.id = "<my bundle ID>"
  ORDER BY
    user_pseudo_id)
GROUP BY
  user_pseudo_id
ORDER BY
  the_count DESC

我发现我的用户中有0.6%的人拥有两个不同的user_first_touch_timestamp值。这是Firebase中的一个bug吗?

同样的情况也出现在first_open_time中:

SELECT
  user_pseudo_id,
  COUNT(*) AS the_count
FROM (
  SELECT
    DISTINCT user_pseudo_id,
    user_properties.value.int_value AS first_open_time
  FROM
    `noctacam.<my project>.events*`,
    UNNEST(user_properties) AS user_properties
  WHERE
    app_info.id = "<my bundle ID>"
    AND user_properties.key = "first_open_time"
  ORDER BY
    user_pseudo_id)
GROUP BY
  user_pseudo_id
ORDER BY
  the_count DESC

同样的,0.6%的用户在这个字段上有两个不同的值。

参考资料: https://support.google.com/firebase/answer/7029846?hl=en https://support.google.com/firebase/answer/6317486?hl=en

3个回答

11

我开始思考这两个参数的区别,并找到了这个区别。

来自用户属性

First Open Time - 用户首次打开应用程序的时间(以毫秒为单位,UTC),向上舍入到下一个小时

来自BigQuery导出模式

user_first_touch_timestamp - 用户首次打开应用程序的时间(以微秒为单位)。

在我的情况下,四舍五入是不同之处。 我想Firebase出于某种原因需要将first_open_time作为用户属性,因此他们只是四舍五入并复制了user_first_touch_timestamp

我知道它仍然没有回答你的整个问题,并且没有解释为什么0.6%的用户具有2个不同的值。 我仍然认为这可能会对这里的某些人有所帮助。


0

1
谢谢您的研究,但正如问题所述,0.6%的用户在first_touch_timestamp和first_open两个参数上有两个不同的值。如果跟踪其中一个参数的重新安装而另一个没有重新安装,则不会出现这种情况。 - Kartick Vaddadi

0
数据的准确性不同: User_first_touch_timestamp 给出精确时间, 而 First_open_time 给出上取整后的时间。
看下面的例子:
用户1: User_first_touch_timestamp: 1670263710266000 Mon Dec 05 2022 20:08:30 GMT+0200 First_open_time : 1670266800000 Mon Dec 05 2022 21:00:00 GMT+0200
用户2: User_first_touch_timestamp: 1670248060903000 Mon Dec 05 2022 15:47:40 GMT+0200 First_open_time: 1670248800000 Mon Dec 05 2022 16:00:00 GMT+0200

这并没有解释为什么一些用户每个字段都有两个不同的值。 - Kartick Vaddadi
这对我也是不同的,16702 163710266000与1670266800000。你是指完全不同吗? - Ruth

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接