“首先”是指在本次应用程序运行中的第一个(直到应用程序终止并重新启动),还是跨运行的第一个?
我以为这些字段只有一个值,但它们通常有两个。当我运行此查询时:
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 中的错误吗?
对于 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
最佳答案
我也开始想知道这两个参数的区别并发现了这个区别。
来自 User Properties :
首次打开时间
- 用户首次打开应用的时间(以毫秒为单位,UTC),四舍五入到下一小时。
user_first_touch_timestamp
- 用户首次打开应用的时间(以微秒为单位)。
就我而言,四舍五入是不同之处。我设想 Firebase 出于某种原因需要将 first_open_time
作为用户属性,因此他们只是四舍五入并复制了 user_first_touch_timestamp
。
我知道它仍然没有回答您的整个问题,也没有解释为什么 0.6% 的用户有 2 个不同的值。我仍然认为这可能会对这里的人有所帮助。
关于ios - user_first_touch_timestamp 与 first_open_time 有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52602926/