| title | Analytics |
|---|---|
| sidebarTitle | Analytics |
import LicenseKeyRequired from '/snippets/license-key-required.mdx' import { Callout } from 'nextra/components'
Analytics provides comprehensive insights into your organization's usage of Sourcebot, helping you understand adoption patterns and quantify the value of time saved.
This dashboard is backed by audit log events. Please ensure you have audit logging enabled in order to see these insights. Analytics data is subject to the audit log retention policy. By default, data older than 180 days is automatically pruned.
<video autoPlay muted loop playsInline className="w-full aspect-video" src="/images/analytics_demo.mp4"
The analytics dashboard segments usage by source so you can understand how your team interacts with Sourcebot across different interfaces. Each chart supports daily, weekly, and monthly time periods.
Tracks the number of unique users who performed any tracked action across all sources (web app, MCP, and API). This includes code searches, navigations, Ask chats, file views, and tree browsing. Web repo listings are excluded to reduce noise from passive page loads.
Metrics from the Sourcebot web interface.
Shows unique users who interacted with the web interface, broken down by activity type:
- All: Users who performed any web action (code searches, navigations, Ask chats, or file views), excluding repo listings.
- Search: The subset of users who performed code searches.
- Ask: The subset of users who created Ask chat sessions.
Total event counts for web interface activity:
- Code Searches: Searches performed in the web search bar.
- Ask Chats: Conversations created through the web interface.
- Navigations: "Go to Definition" and "Find All References" actions in the code viewer.
Metrics from MCP integrations and direct API access.
Shows unique users who interacted via non-web sources:
- Any: Users who used either MCP or the API.
- MCP: Users from IDE extensions and other MCP clients.
- API: Users from direct HTTP API access (e.g., via API keys), excluding web app and MCP traffic.
Total request counts:
- MCP: Code searches, file reads, tree listings, repo listings, and Ask chats from MCP clients.
- API: Direct HTTP API requests, excluding web app and MCP traffic.