Warning

This site is no longer being maintained. Visit the eDocs documentation portal for updated information.

Visit eDocs
Dismiss message

Daily Users Distribution

Created by David Casado ยท last update November 3, 2020

About this report

This report returns the following metrics distributed by day for the selected date range: users, sessions, queries, queries from identified users, queries per user and percentage of queries from identified users.

Request

This report takes start and end dates and, optionally, a set of filters to narrow down the results.

GET https://api.empathybroker.com/stats/v2/{Instance_ID}/DailyUsersDist

Query Parameters

PARAMETER TYPE
start_date Int (ISO 8601 format)
end_date Int (ISO 8601 format)
filters list[str]

Bearer Token Get your token

Example request: https://api.empathybroker.com/stats/v2/ebdemo/DailyUsersDist?start_date=2020-10-15&end_date=2020-10-31&filters=lang,scope&lang=es_ES&scope=desktop


Response

The following KPIs are returned:

  • Total values for the date range and filters selected: total users, sessions, queries, queries from identified users, queries per user and percentage of queries from identified users.
  • Distributed values by day: users, sessions, queries, queries from identified users, queries per user and percentage of queries from identified users.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "data": {
    "daily_data": [
      {
        "daily_user_count": 4,
        "daily_session_count": 4,
        "query_count": 10,
        "query_count_identified": 10,
        "queries_per_user": 2.5,
        "query_count_identified_pct": 100.0,
        "date": "2020-10-21T00:00:00Z"
      },
      {
        "daily_user_count": 1,
        "daily_session_count": 1,
        "query_count": 2,
        "query_count_identified": 2,
        "queries_per_user": 2.0,
        "query_count_identified_pct": 100.0,
        "date": "2020-10-23T00:00:00Z"
      }
    ],
    "daily_user_count_total": 5,
    "daily_session_count_total": 5,
    "query_count": 12,
    "query_count_identified": 12,
    "queries_per_user": 2.4,
    "query_count_identified_pct": 100.0
  },
  "params": {
    "site_id": "ebdemo",
    "start_date": 1602720000000,
    "end_date": 1604102400000,
    "filters": [
      {
        "values": [
          "en_US"
        ],
        "filter": "lang"
      }
    ]
  }
}