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

analytics(meeting-notes): track summarize click + note opened

Louis Beaumont463dffa9d43e
diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
index af0b59ad4..c91baa7f8 100644
--- a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
+++ b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
@@ -29,6 +29,7 @@ import {
} from "lucide-react";
import { listen } from "@tauri-apps/api/event";
import { open as openExternal } from "@tauri-apps/plugin-shell";
+import posthog from "posthog-js";
import { Button } from "@/components/ui/button";
import {
AlertDialog,
@@ -190,6 +191,15 @@ export function NoteView({
};
}, [meeting.id, initialTranscriptOpen]);
+ useEffect(() => {
+ posthog.capture("meeting_note_opened", {
+ meeting_id: meeting.id,
+ is_live: isLive,
+ has_title: !!meeting.title,
+ has_note: !!meeting.note,
+ });
+ }, [meeting.id]);
+
useEffect(() => {
let cancelled = false;
const unlisten = listen<LiveStreamingStatus>(
@@ -392,6 +402,11 @@ export function NoteView({
}, [saveState.kind, save, title, attendees, note]);
const handleSummarize = async () => {
+ posthog.capture("meeting_summarize_clicked", {
+ meeting_id: meeting.id,
+ was_live: isLive,
+ pipe_slug: settings.meetingSummaryPipeSlug || "meeting-summary",
+ });
setSummarizing(true);
try {
const last = lastSavedRef.current;