Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

web: fix newsletter signup

Jeffrey Morganf2044b5838b8
diff --git a/web/app/api/signup/route.ts b/web/app/api/signup/route.ts
index b08636d5f..d391ec31c 100644
--- a/web/app/api/signup/route.ts
+++ b/web/app/api/signup/route.ts
@@ -6,12 +6,22 @@ const analytics = new Analytics({ writeKey: process.env.TELEMETRY_WRITE_KEY || '
export async function POST(req: Request) {
const { email } = await req.json()
- analytics.identify({
- anonymousId: uuid(),
+ const id = uuid()
+
+ await analytics.identify({
+ anonymousId: id,
traits: {
email,
},
})
+ await analytics.track({
+ anonymousId: id,
+ event: 'signup',
+ properties: {
+ email,
+ },
+ })
+
return new Response(null, { status: 200 })
}