Event User Leaderboard
rybbit_get_event_user_leaderboardRank users by how many times they triggered a specific event, such as messages sent or ad clicks, and identify your top participants for any date range.
Instructions
Returns the top users for a given event (e.g. who sent the most pm_sent, who clicked the most ad_click). Groups by identified_user_id + traits.username. Answers questions like 'kdo dnes poslal nejvíc vzkazů'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Top N users (default 25). | |
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| endDate | No | End date in ISO format (YYYY-MM-DD) | |
| filters | No | Array of filters. Example: [{parameter:'browser',type:'equals',value:['Chrome']},{parameter:'country',type:'equals',value:['US','DE']}] | |
| maxScan | No | Maximum events to scan (default 5000). | |
| timeZone | No | IANA timezone (e.g., Europe/Prague). Default: UTC | |
| eventName | Yes | Event name to rank users by (e.g. 'pm_sent', 'chat_v2_message_sent', 'ad_click'). | |
| startDate | No | Start date in ISO format (YYYY-MM-DD) | |
| identifiedOnly | No | If true (default), exclude anonymous users without identified_user_id. | |
| pastMinutesEnd | No | Alternative to dates: minutes ago end (default 0 = now) | |
| pastMinutesStart | No | Alternative to dates: minutes ago start (e.g., 60 = last hour) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | Grouped event counts, sorted by count DESC by default | |
| hasMore | Yes | True if scan was capped by maxScan and more data exists | |
| scanned | Yes | Total events scanned across pagination | |
| hitCount | Yes | Events matching eventName / property filters | |
| windowEnd | No | ||
| windowStart | No |