This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / webapp / features / analytics / utils.ts
280 B 11 lines
1import posthog from 'posthog-js'; 2 3/** 4 * Check if analytics should be captured 5 * Centralizes the logic for when to track events 6 */ 7export function shouldCaptureAnalytics(): boolean { 8 return ( 9 process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && posthog.__loaded 10 ); 11}