1importposthogfrom'posthog-js'; 2 3/**
4 * Check if analytics should be captured
5 * Centralizes the logic for when to track events
6 */ 7exportfunctionshouldCaptureAnalytics():boolean{ 8return( 9process.env.NEXT_PUBLIC_VERCEL_ENV==='production'&&posthog.__loaded10);11}