( eventName: string, properties?: Record<string, unknown>, )
| 5 | |
| 6 | // Helper function to safely capture events |
| 7 | const safeCapture = ( |
| 8 | eventName: string, |
| 9 | properties?: Record<string, unknown>, |
| 10 | ) => { |
| 11 | if (posthog.__loaded) { |
| 12 | posthog.capture(eventName, properties) |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export const analytics = { |
| 17 | userSignedOut: () => safeCapture("user_signed_out"), |
no outgoing calls
no test coverage detected
searching dependent graphs…