Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 用户首次触摸时间戳与首次打开时间戳有何不同?_Ios_Firebase Analytics - Fatal编程技术网

Ios 用户首次触摸时间戳与首次打开时间戳有何不同?

Ios 用户首次触摸时间戳与首次打开时间戳有何不同?,ios,firebase-analytics,Ios,Firebase Analytics,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

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\u first\u touch\u timestamp有两个不同的值。这是Firebase中的bug吗

同样,对于第一次打开:

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%的用户对此字段也有两个不同的值

参考资料:
我也开始思考这两个参数之间的差异,并发现了这种差异

发件人:

首次打开时间-以毫秒为单位的时间,即用户首次打开应用程序的UTC时间,四舍五入到下一个小时

发件人:

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

在我的例子中,四舍五入就是区别。我设想Firebase出于某种原因需要将first_open_time作为用户属性,所以他们只是取整并复制用户first_touch_时间戳

我知道它仍然不能回答你的全部问题,也不能解释为什么你0.6%的用户有两个不同的值。我仍然认为这可能对这里的人有所帮助