Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(onboarding): add GitHub star prompt with badge (#5125)

Jannik Maierhöfered743c1f7614
diff --git a/web/src/features/posthog-analytics/usePostHogClientCapture.ts b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
index ab95c8eebe..167cfd2598 100644
--- a/web/src/features/posthog-analytics/usePostHogClientCapture.ts
+++ b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
@@ -111,7 +111,11 @@ const events = {
"modal_open",
"create_new_button_click",
],
- onboarding: ["code_example_tab_switch", "tracing_check_active"],
+ onboarding: [
+ "code_example_tab_switch",
+ "tracing_check_active",
+ "click_github_star_cta",
+ ],
user_settings: ["theme_changed"],
project_settings: [
"project_delete",
diff --git a/web/src/pages/onboarding.tsx b/web/src/pages/onboarding.tsx
index ca83adf705..9aa0ab62bf 100644
--- a/web/src/pages/onboarding.tsx
+++ b/web/src/pages/onboarding.tsx
@@ -17,6 +17,8 @@ import { usePostHog } from "posthog-js/react";
import { useRouter } from "next/router";
import { LangfuseIcon } from "@/src/components/LangfuseLogo";
import { Textarea } from "@/src/components/ui/textarea";
+import Image from "next/image";
+import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
const referralSourceSchema = z.object({
referralSource: z.string().optional(),
@@ -24,6 +26,7 @@ const referralSourceSchema = z.object({
export default function ReferralSource() {
const posthog = usePostHog();
+ const capture = usePostHogClientCapture();
const router = useRouter();
const form = useForm<z.infer<typeof referralSourceSchema>>({
resolver: zodResolver(referralSourceSchema),
@@ -51,7 +54,32 @@ export default function ReferralSource() {
Welcome to Langfuse
</h2>
</div>
- <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">
+ <div className="mt-4 flex w-full flex-col items-start gap-3 bg-background px-6 py-8 shadow sm:mx-auto sm:max-w-[480px] sm:rounded-lg sm:px-12">
+ <div>
+ <p className="text-sm font-medium">Star Langfuse on GitHub</p>
+ <div className="text-sm text-muted-foreground">
+ See the latest releases and help grow the community.
+ </div>
+ </div>
+ <a
+ href="https://github.com/langfuse/langfuse"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex-shrink-0"
+ onClick={() => {
+ capture("onboarding:click_github_star_cta");
+ }}
+ >
+ <Image
+ alt="Langfuse Github stars"
+ src="https://img.shields.io/github/stars/langfuse/langfuse?label=langfuse&amp;style=social"
+ width={112}
+ height={20}
+ unoptimized
+ />
+ </a>
+ </div>
+ <div className="mt-4 bg-background px-6 py-8 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">
<Form {...form}>
<form
className="space-y-6"