Skip to main content
Version: 25.03

Read user funnels

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/o?method=user_funnels

Overview​

Returns funnels where a specific user appears, along with calculated progression data for that user context.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires funnels Read permission.

Request Parameters​

ParameterTypeRequiredDescription
methodStringYesMust be user_funnels.
app_idStringYesTarget app ID.
uidStringYesUser ID to evaluate.
periodString or JSON String (Array/Object)NoAnalysis period.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

/o?
method=user_funnels&
app_id=64f5c0d8f4f7ac0012ab3456&
uid=1234567890abcdef&
period=30days

Response​

Success Response​

[
{
"_id": "67f1c22912df5acb8f8d5caaf0f89a31",
"name": "Purchase Funnel",
"steps": ["Product View", "Add to Cart", "Purchase"],
"step": 2,
"data": {
"total_users": 1,
"success_users": 0,
"success_rate": 0,
"steps": [
{"step": "Product View", "users": 1},
{"step": "Add to Cart", "users": 1},
{"step": "Purchase", "users": 0}
]
}
}
]

Response Fields​

FieldTypeDescription
[]ArrayFunnels in which user appeared in at least first step.
[].stepNumberNumber of contiguous steps the user progressed through.
[].dataObjectPer-funnel calculated data payload for the user filter.

Error Responses​

No explicit error response path; on calculation/query failures endpoint returns an empty array.

Behavior​

  • Loads all funnels for the app.
  • Runs funnel calculation for each funnel with { uid: <uid> } filter.
  • Returns only funnels where computed user progression is greater than zero.
Implementation details

Configuration Impact

SettingDefaultAffectsUser-visible impact
api.*Server API defaultsShared API execution controls (for example processing thresholds/limits).Changes to API-level controls can affect runtime behavior, limits, or response timing for this endpoint.

Database Collections

CollectionUsed forData touched by this endpoint
countly.funnelsEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly_drill.drill_eventsDrill event recordsStores granular event rows queried or updated by this endpoint.
countly.app_users{appId}Per-app user profilesStores user-level properties and profile fields affected by this endpoint.