MCPcopy
hub / github.com/supermemoryai/supermemory / safeCapture

Function safeCapture

apps/web/lib/analytics.ts:7–14  ·  view source on GitHub ↗
(
	eventName: string,
	properties?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

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

Callers 1

analytics.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…