Warning

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

Visit eDocs
Dismiss message

Daily Session 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: sessions, queries, queries from identified sessions, queries per session and percentage of queries from identified sessions. Data is gathered in a short term session based and no user info is tracked.

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}/DailySession

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/DailySession?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 sessions, queries, queries from identified sessions, queries per session and percentage of queries from identified sessions.
  • Distributed values by day: sessions, queries, queries from identified sessions, queries per session and percentage of queries from identified sessions.
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
{
  "data": {
    "daily_data": [
      {
        "date": "2020-10-21T00:00:00Z",
        "daily_session_count": 4,
        "query_count": 10,
        "query_count_identified": 10,
        "queries_per_session": 2.5,
        "query_count_identified_pct": 100.0,
      },
      {
        "date": "2020-10-23T00:00:00Z",
        "daily_session_count": 1,
        "query_count": 2,
        "query_count_identified": 2,
        "queries_per_session": 2.0,
        "query_count_identified_pct": 100.0,
      }
    ],
    "daily_session_count_total": 5,
    "query_count": 12,
    "query_count_identified": 12,
    "queries_per_session": 2.4,
    "query_count_identified_pct": 100.0
  },
  "params": {
    "site_id": "ebdemo",
    "start_date": 1602720000000,
    "end_date": 1604102400000,
    "filters": [
      {
        "values": [
          "en_US"
        ],
        "filter": "lang"
      }
    ]
  }
}