MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isAnalyticsEnabled

Function isAnalyticsEnabled

frontend/src/features/analytics/config.ts:1–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function isAnalyticsEnabled(): boolean {
2 const key = import.meta.env.VITE_PUBLIC_POSTHOG_KEY as string | undefined;
3 const host = import.meta.env.VITE_PUBLIC_POSTHOG_HOST as string | undefined;
4 const disabled = import.meta.env.VITE_DISABLE_ANALYTICS === 'true';
5 return Boolean(key && host && !disabled);
6}

Callers 4

main.tsxFile · 0.90
AnalyticsRouterListenerFunction · 0.90
trackFunction · 0.90
PostHogClerkBridgeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected