MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getSessionProperties

Function getSessionProperties

packages/studio/src/utils/studioTelemetry.ts:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37function getSessionProperties(): EventProperties {
38 return {
39 studio_version: typeof __STUDIO_VERSION__ !== "undefined" ? __STUDIO_VERSION__ : "dev",
40 screen_width: window.screen?.width,
41 screen_height: window.screen?.height,
42 viewport_width: window.innerWidth,
43 viewport_height: window.innerHeight,
44 user_agent: navigator.userAgent,
45 url_hash: location.hash.replace(/#project\//, ""),
46 };
47}
48
49declare const __STUDIO_VERSION__: string;
50

Callers 1

trackStudioEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected