Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(analytics): classify desktop users as real (#6781)

Ezra Ellette47128c6defb8
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
index f195f1861..4edb3f3c3 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
@@ -210,7 +210,12 @@ impl AnalyticsManager {
"os_name": os_name,
"os_version": os_version,
},
- "$set_once": {},
+ // A successful desktop launch is direct evidence that this is a
+ // real Screenpipe user. Set it once so a server-side fraud
+ // decision (`bot`) always remains authoritative.
+ "$set_once": {
+ "screenpipe_user_type": "real",
+ },
},
});