Skip to content

Commit 693d53d

Browse files
committed
new docs and news data
1 parent b810cf1 commit 693d53d

File tree

3 files changed

+39
-11
lines changed

3 files changed

+39
-11
lines changed

docs/docs/features/analytics.mdx

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Callout } from 'nextra/components'
1414
Analytics provides comprehensive insights into your organization's usage of Sourcebot, helping you understand adoption patterns and
1515
quantify the value of time saved.
1616

17-
This dashboard is backed by [audit log](/docs/configuration/audit-logs) events. Please ensure you have audit logging enabled in order to see these insights.
17+
This dashboard is backed by [audit log](/docs/configuration/audit-logs) events. Please ensure you have audit logging enabled in order to see these insights. Analytics data is subject to the audit log [retention policy](/docs/configuration/audit-logs#retention-policy). By default, data older than 180 days is automatically pruned.
1818

1919
<video
2020
autoPlay
@@ -25,18 +25,40 @@ This dashboard is backed by [audit log](/docs/configuration/audit-logs) events.
2525
src="/images/analytics_demo.mp4"
2626
></video>
2727

28-
## Data Metrics
28+
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.
29+
30+
## Global
2931

3032
### Active Users
31-
Tracks the number of unique users who performed any Sourcebot operation within each time period. This metric helps you understand team adoption
32-
and engagement with Sourcebot.
33+
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.
34+
35+
## Web App
36+
37+
Metrics from the Sourcebot web interface.
38+
39+
### Web Active Users
40+
Shows unique users who interacted with the web interface, broken down by activity type:
41+
- **All**: Users who performed any web action (code searches, navigations, Ask chats, or file views), excluding repo listings.
42+
- **Search**: The subset of users who performed code searches.
43+
- **Ask**: The subset of users who created Ask chat sessions.
44+
45+
### Web Activity
46+
Total event counts for web interface activity:
47+
- **Code Searches**: Searches performed in the web search bar.
48+
- **Ask Chats**: Conversations created through the web interface.
49+
- **Navigations**: "Go to Definition" and "Find All References" actions in the code viewer.
50+
51+
## API
3352

34-
### Code Searches
35-
Counts the number of code search operations performed by your team.
53+
Metrics from MCP integrations and direct API access.
3654

37-
### Code Navigation
38-
Tracks "Go to Definition" and "Find All References" navigation actions. Navigation actions help developers quickly move
39-
between code locations and understand code relationships.
55+
### API Active Users
56+
Shows unique users who interacted via non-web sources:
57+
- **Any**: Users who used either MCP or the API.
58+
- **MCP**: Users from IDE extensions and other MCP clients.
59+
- **API**: Users from direct HTTP API access (e.g., via API keys), excluding web app and MCP traffic.
4060

41-
### Ask Chats
42-
Tracks the number of new Ask chat sessions created by your team.
61+
### API Requests
62+
Total request counts:
63+
- **MCP**: Code searches, file reads, tree listings, repo listings, and Ask chats from MCP clients.
64+
- **API**: Direct HTTP API requests, excluding web app and MCP traffic.

docs/images/analytics_demo.mp4

-296 KB
Binary file not shown.

packages/web/src/lib/newsData.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { NewsItem } from "./types";
22

33
export const newsData: NewsItem[] = [
4+
{
5+
unique_id: "analytics-by-source",
6+
header: "MCP Analytics",
7+
sub_header: "We've extended analytics to include data on MCP/API usage",
8+
url: "https://docs.sourcebot.dev/docs/features/analytics"
9+
},
410
{
511
unique_id: "ai-search-assist",
612
header: "AI Search Assist",

0 commit comments

Comments
 (0)