diff --git a/backend/apps/analytics/collector.py b/backend/apps/analytics/collector.py
index dddcedc5..75fa7764 100644
--- a/backend/apps/analytics/collector.py
+++ b/backend/apps/analytics/collector.py
@@ -79,7 +79,7 @@ def record(
dashboard_id: str | None = None,
):
"""Record an analytics event to PostHog."""
- if not _posthog or not _is_opted_in():
+ if not _posthog:
return
props = {**(properties or {})}
@@ -102,7 +102,7 @@ def record(
def identify(extra_properties: dict | None = None):
"""Identify the current installation with properties."""
- if not _posthog or not _is_opted_in():
+ if not _posthog:
return
try:
diff --git a/frontend/src/app/Main.tsx b/frontend/src/app/Main.tsx
index 0e378734..f5bc15e0 100644
--- a/frontend/src/app/Main.tsx
+++ b/frontend/src/app/Main.tsx
@@ -24,7 +24,6 @@ import Modes from './pages/Modes/Modes';
import Views from './pages/Views/Views';
import Customization from './pages/Customization/Customization';
import Analytics from './pages/Analytics/Analytics';
-import AnalyticsOptIn from './components/AnalyticsOptIn';
import OnboardingModal from './components/OnboardingModal';
import { useKeyboardShortcuts } from '@/shared/hooks/useKeyboardShortcuts';
import KeyboardShortcutsHelp from './components/KeyboardShortcutsHelp';
@@ -236,7 +235,6 @@ const ThemedApp: React.FC = () => {
} />
-
diff --git a/frontend/src/app/pages/Settings/Settings.tsx b/frontend/src/app/pages/Settings/Settings.tsx
index ed902109..0e3b0436 100644
--- a/frontend/src/app/pages/Settings/Settings.tsx
+++ b/frontend/src/app/pages/Settings/Settings.tsx
@@ -428,7 +428,7 @@ const UsageStats: React.FC = () => {
if (n < 1_000_000) return `${(n / 1000).toFixed(1)}K`;
return `${(n / 1_000_000).toFixed(2)}M`;
};
- const costSourceLabel = stats.cost_source === '9router' ? 'via subscription' : stats.cost_source === 'sdk' ? 'via API' : '';
+ const costSourceLabel = stats.cost_source === '9router' ? 'equivalent API cost' : stats.cost_source === 'sdk' ? 'via API' : '';
return (
@@ -442,7 +442,7 @@ const UsageStats: React.FC = () => {
- Total Cost
+ {stats.cost_source === '9router' ? 'Est. API Cost' : 'Total Cost'}
{formatCost(stats.total_cost_usd)}
{costSourceLabel ? `${formatCost(stats.avg_cost_per_session)} avg · ${costSourceLabel}` : 'no cost data'}
@@ -1322,26 +1322,6 @@ const Settings: React.FC = () => {
) : activeTab === 'usage' ? (
-
- {/* ── Analytics ── */}
- Analytics
-
-
-
- Share anonymous usage data
-
- Help improve OpenSwarm by sharing anonymous statistics like session counts, model usage, and feature adoption. No conversations, file paths, or personal information is ever collected.
-
-
- setForm({ ...form, analytics_opt_in: e.target.checked } as any)}
- sx={{
- '& .MuiSwitch-switchBase.Mui-checked': { color: c.accent.primary },
- '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { bgcolor: c.accent.primary },
- }}
- />
-
) : (