Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(telemetry): mirror signup_timestamp to PostHog person property (#45951)

Sean Oliver856b2badf7be
diff --git a/packages/common/telemetry.tsx b/packages/common/telemetry.tsx
index 3dc49c6e669..b92aae494cc 100644
--- a/packages/common/telemetry.tsx
+++ b/packages/common/telemetry.tsx
@@ -446,7 +446,13 @@ export function useTelemetryIdentify(API_URL: string) {
...(anonymousId && { anonymous_id: anonymousId }),
})
- posthogClient.identify(user.id, { gotrue_id: user.id })
+ // user.created_at is gotrue's immutable signup timestamp — safe to $set on
+ // every identify because the value never changes per user. Lets flag
+ // targeting distinguish brand-new signups from returning single-org users.
+ posthogClient.identify(user.id, {
+ gotrue_id: user.id,
+ ...(user.created_at && { signup_timestamp: user.created_at }),
+ })
}
}, [API_URL, user?.id])
}