MCPcopy Create free account
hub / github.com/winfunc/opcode / getUserId

Method getUserId

src/lib/analytics/consent.ts:106–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 getUserId(): string {
107 return this.settings?.userId || this.generateAnonymousId();
108 }
109
110 getSessionId(): string {
111 return this.settings?.sessionId || this.generateSessionId();

Callers 2

trackMethod · 0.80
identifyMethod · 0.80

Calls 1

generateAnonymousIdMethod · 0.95

Tested by

no test coverage detected