query_deeplink_metrics
Query analytics for deeplinks: clicks, conversions, users, traffic sources, geography, KPI summaries, and LTV cohort curves. Results render as inline charts automatically. For web_url (website) deeplinks, a click is a landing recorded by the JavaScript SDK and a conversion is a session attributed to the link; conversion rate and LTV aren't meaningful. Use list_deeplinks first to find a deeplink id when one is needed. Load the understand-deeplinks skill (load_skill("understand-deeplinks")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Time window: 7d, 14d (default), 28d, 56d, 90d, or all (all-time). For ltv, all is clamped to 90d automatically. | 14d |
| metric | Yes | Which deeplink metric to query: clicks_over_time (daily click count), conversions_over_time (daily in-game conversion count), users_over_time (new vs returning converted users daily), sources (clicks/conversions/revenue by referrer source), geography (clicks/conversions/revenue by country/region), kpis (summary: clicks, conversions, conversion rate, users, sessions, revenue), ltv (LTV cohort curve by day number; requires ltvType). | |
| ltvType | No | Required when metric='ltv'. 'revenue' = Robux LTV; 'playtime' = session playtime. | |
| userType | No | Optional filter for kpis: restrict to new or returning users only. | |
| breakdown | No | Optional breakdown dimension for kpis and ltv. 'source' splits by referrer category; 'deeplink' compares multiple deeplinks. | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| deeplinkId | No | Deeplink id to scope the query. Required for clicks_over_time, conversions_over_time, users_over_time, sources, geography, and ltv. Optional for kpis (omit to aggregate all deeplinks). Use list_deeplinks first to find the id. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |