Skip to content

Commit 6b8eb98

Browse files
feat(backend): add install_id to PostHog events
Include SOURCEBOT_INSTALL_ID in PostHog event properties for better tracking and analytics. Also removes unused import in web posthogProvider. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 64b33ce commit 6b8eb98

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/backend/src/posthog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function captureEvent<E extends PosthogEvent>(event: E, properties: Posth
2424
properties: {
2525
...properties,
2626
sourcebot_version: SOURCEBOT_VERSION,
27+
install_id: env.SOURCEBOT_INSTALL_ID,
2728
},
2829
});
2930
}

packages/web/src/app/posthogProvider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { usePostHog } from 'posthog-js/react'
44
import { PostHogProvider as PHProvider } from 'posthog-js/react'
55
import { usePathname, useSearchParams } from "next/navigation"
66
import { Suspense, useEffect } from "react"
7-
import { env } from '@sourcebot/shared/client'
87
import { useSession } from 'next-auth/react'
98
import { captureEvent } from '@/hooks/useCaptureEvent'
109

0 commit comments

Comments
 (0)