analytics

Signup reason

Returns per signup_reason: total users, users with CALL_CONOSCITIVA FATTO/DA_FARE, comparative stats, reason-to-patients map, and pie chart data. Optional filter by patient registration date range.

get/api/analytics/signup-reason

Query parameters

from_datestring date nullable

Start date for patient registration filter (YYYY-MM-DD). If both from_date/to_date are set, only patients created in range are included.

Start date for patient registration filter (YYYY-MM-DD). If both from_date/to_date are set, only patients created in range are included.

to_datestring date nullable

End date for patient registration filter (YYYY-MM-DD).

End date for patient registration filter (YYYY-MM-DD).

Response

Successful Response

reason_to_patientsobject required

Map signup_reason -> { patients_with_call, patients_without_call }

distinct_signup_reasonsstring[] required

List of distinct signup reasons (ordered by total_users desc)

Changes