阅读时长指标

time_read 不包含用户可能花费在阅读网站发送的邮件上的时间。其数值是根据用户在屏幕上打开主题所花费的时间计算的。有关时间计算方式的详细信息,请参阅 https://meta.discourse.org/t/how-does-post-tracking-work-in-discourse/115790。

您可以发起 API 请求以获取特定报告。例如,以下请求适用于“用户访问”报告:

curl -X GET "https://forum.example.com/admin/reports/visits.json?end_date=2019-07-10&start_date=2019-06-10" \
-H "Api-Username: system" \
-H "Api-Key: $api_key" -H \
"Content-Type: multipart/form-data;"

/admin/reports/bulk.json 端点发起请求也应有效。您需要确保在 URL 中添加 .json,并在 URL 中添加 start_dateend_date 查询参数。

3 个赞