Skip to content

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

Added grouping in pageview api

Pamela Chia7b3835e7d8cb
diff --git a/studio/components/ui/PageTelemetry.tsx b/studio/components/ui/PageTelemetry.tsx
index 3fc7ca2bb78..6992ea5fc14 100644
--- a/studio/components/ui/PageTelemetry.tsx
+++ b/studio/components/ui/PageTelemetry.tsx
@@ -56,6 +56,12 @@ const PageTelemetry: FC = ({ children }) => {
})
post(`${API_URL}/telemetry/pageview`, {
+ ...(router.route.includes('/project/') && {
+ projectRef: router.asPath.split('/project/')[1].split('/')[0],
+ }),
+ ...(router.route.includes('/org/') && {
+ orgId: router.asPath.split('/org/')[1].split('/')[0],
+ }),
referrer: referrer,
title: document.title,
path: router.route,