MCPcopy
hub / github.com/PostHog/posthog / currentSessionId

Function currentSessionId

frontend/src/lib/internalMetrics.ts:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function currentSessionId(): string | undefined {
25 const sessionDetails = posthog.sessionManager?.checkAndGetSessionAndWindowId?.(true)
26 return sessionDetails?.sessionId
27}
28
29export async function captureTimeToSeeData(teamId: number | null, payload: TimeToSeeDataPayload): Promise<void> {
30 if (window.JS_CAPTURE_TIME_TO_SEE_DATA && teamId) {

Callers 4

insightLogic.tsFile · 0.90
dashboardLogic.tsxFile · 0.90
queryFunction · 0.90
captureTimeToSeeDataFunction · 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…