---
title: "App stickiness (DAU/WAU)"
method: GET
path: "/api/analytics/stickiness"
tags: ["analytics"]
---

# App stickiness (DAU/WAU)

`GET /api/analytics/stickiness`

App stickiness over a period: average daily active patients versus weekly active (DAU/WAU), with a daily DAU trend. Coordinator role sees only patients under their supervisors.

## Query parameters

- `window` string — Stickiness window: week (DAU/WAU) or month (DAU/MAU).
- `from_date` string, date, nullable — Period start (YYYY-MM-DD). Defaults to 30 days ago.
- `to_date` string, date, nullable — Period end (YYYY-MM-DD). Defaults to today.
- `target_statuses` string, nullable — Comma-separated status keys (e.g. attivo,mai pagato). Empty for all.

## Response `200`

Successful Response

- StickinessResponse — App stickiness over a period: average DAU vs active users in the window (DAU/WAU or DAU/MAU).
  - `window` string, required — Stickiness window: week (WAU, 7d) or month (MAU, 30d)
  - `tracking_start` string, date, nullable — Earliest day with tracked access data. Days before this have no data (the leading zeros in the trend).
  - `from_date` string, date, required — Period start (inclusive)
  - `to_date` string, date, required — Period end (inclusive)
  - `dau_avg` number, required — Average daily active patients (over days from the first day with data)
  - `dau_avg_days` integer, required — Calendar days the DAU average is computed over (first day with data → to_date)
  - `active_users` integer, required — Distinct active patients in the window ending at to_date (WAU or MAU)
  - `stickiness` number, nullable — DAU / active_users ratio (0-100); null when 0
  - `daily` StickinessDailyPoint[] — Daily DAU trend, ascending
    - `day` string, date, required — Day
    - `dau` integer, required — Distinct active patients that day

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
