You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/features/analytics.mdx
+33-11Lines changed: 33 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ import { Callout } from 'nextra/components'
14
14
Analytics provides comprehensive insights into your organization's usage of Sourcebot, helping you understand adoption patterns and
15
15
quantify the value of time saved.
16
16
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.
18
18
19
19
<video
20
20
autoPlay
@@ -25,18 +25,40 @@ This dashboard is backed by [audit log](/docs/configuration/audit-logs) events.
25
25
src="/images/analytics_demo.mp4"
26
26
></video>
27
27
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
29
31
30
32
### 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
33
52
34
-
### Code Searches
35
-
Counts the number of code search operations performed by your team.
53
+
Metrics from MCP integrations and direct API access.
36
54
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.
40
60
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.
0 commit comments