MCPcopy Index your code
hub / github.com/github/docs / getUserEventsId

Function getUserEventsId

components/lib/events.ts:33–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33export function getUserEventsId() {
34 if (cookieValue) return cookieValue
35 cookieValue = Cookies.get(COOKIE_NAME)
36 if (cookieValue) return cookieValue
37 cookieValue = uuidv4()
38 Cookies.set(COOKIE_NAME, cookieValue, {
39 secure: document.location.protocol !== 'http:',
40 sameSite: 'strict',
41 expires: 365,
42 })
43 return cookieValue
44}
45
46export enum EventType {
47 page = 'page',

Callers 2

bucketFunction · 0.90
sendEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected