Skip to content

Commit a5c2536

Browse files
Rename analytics event and track proceed without account
Rename the analytics event "user_signed_up" to "sign_up" to standardize naming. Also add tracking for users who choose to proceed without creating an account by emitting a "proceed_without_account" analytics event when they click the corresponding button. These changes ensure sign-up and opt-out flows are both recorded for analytics.
1 parent 79debaf commit a5c2536

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/desktop/src/auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
241241
}
242242
if (event === "SIGNED_IN" && session) {
243243
void analyticsCommands.event({
244-
event: "user_signed_up",
244+
event: "sign_up",
245245
});
246246
}
247247
setSession(session);

apps/desktop/src/components/onboarding/welcome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query";
22
import { arch, platform } from "@tauri-apps/plugin-os";
33
import { memo, useMemo } from "react";
44

5+
import { commands as analyticsCommands } from "@hypr/plugin-analytics";
56
import { TextAnimate } from "@hypr/ui/components/ui/text-animate";
67

78
import { Route } from "../../routes/app/onboarding";
@@ -51,6 +52,9 @@ export const Welcome = memo(function Welcome({ onNavigate }: StepProps) {
5152
<button
5253
className="mt-4 text-sm text-neutral-400 transition-colors hover:text-neutral-600"
5354
onClick={() => {
55+
void analyticsCommands.event({
56+
event: "proceed_without_account",
57+
});
5458
const next = { ...search, local: true };
5559
onNavigate({ ...next, step: getNext(next) });
5660
}}

0 commit comments

Comments
 (0)