Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add tracker event when a user skips signup

thecodrr3752e55f302f
diff --git a/apps/web/src/utils/analytics.ts b/apps/web/src/utils/analytics.ts
index da03d814e..917da0ef6 100644
--- a/apps/web/src/utils/analytics.ts
+++ b/apps/web/src/utils/analytics.ts
@@ -78,6 +78,11 @@ export const ANALYTICS_EVENTS = {
description: "Sent when you create an account.",
type: "view",
},
+ signupSkipped: {
+ name: "/signup/skipped",
+ description: `Sent when you press "Jump to app" button on signup screen.`,
+ type: "view",
+ },
} as const;
export function trackEvent(event: TrackerEvent, eventMessage?: string) {
diff --git a/apps/web/src/views/auth.tsx b/apps/web/src/views/auth.tsx
index 024a5a404..627c36532 100644
--- a/apps/web/src/views/auth.tsx
+++ b/apps/web/src/views/auth.tsx
@@ -23,6 +23,7 @@ import AuthContainer from "../components/auth-container";
import { isTesting } from "../utils/platform";
import { AuthenticatorType } from "../components/dialogs/multi-factor-dialog";
import { useTimer } from "../hooks/use-timer";
+import { ANALYTICS_EVENTS, trackEvent } from "../utils/analytics";
type LoginFormData = {
email: string;
@@ -153,7 +154,11 @@ function Auth(props: AuthProps) {
alignItems: "center",
}}
variant={"secondary"}
- onClick={() => openURL("/notes/")}
+ onClick={() => {
+ if (route === "signup")
+ trackEvent(ANALYTICS_EVENTS.signupSkipped);
+ openURL("/notes/");
+ }}
>
Jump to app <ArrowRight size={18} sx={{ ml: 1 }} />
</Button>