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: ph

Louis Beaumont711f82ffd749
diff --git a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
index 411ebf09e..dd241da33 100644
--- a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
+++ b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
@@ -15,6 +15,7 @@ import { invoke } from "@tauri-apps/api/core";
import { toast } from "@/components/ui/use-toast";
import { motion } from "framer-motion";
import posthog from "posthog-js";
+import { useSettings } from "@/lib/hooks/use-settings";
interface PipeCardProps {
pipe: PipeWithStatus;
@@ -36,6 +37,7 @@ export const PipeCard: React.FC<PipeCardProps> = ({
onToggle,
}) => {
const [isLoading, setIsLoading] = useState(false);
+ const { settings } = useSettings();
const handleOpenWindow = async (e: React.MouseEvent) => {
e.stopPropagation();
try {
@@ -123,12 +125,14 @@ export const PipeCard: React.FC<PipeCardProps> = ({
onPurchase(pipe, () => setIsLoading(false));
posthog.capture("pipe_purchase", {
pipe_id: pipe.id,
+ email: settings.user?.email,
});
} else {
setIsLoading(true);
onInstall(pipe, () => setIsLoading(false));
posthog.capture("pipe_install", {
pipe_id: pipe.id,
+ email: settings.user?.email,
});
}
}}
diff --git a/screenpipe-app-tauri/components/settings/account-section.tsx b/screenpipe-app-tauri/components/settings/account-section.tsx
index 6b9915d54..ed718680f 100644
--- a/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -89,7 +89,9 @@ export function AccountSection() {
useEffect(() => {
if (!settings.user?.email) {
- posthog.capture("app_login");
+ posthog.capture("app_login", {
+ email: settings.user?.email,
+ });
}
const setupDeepLink = async () => {