MCPcopy Index your code
hub / github.com/21st-dev/1code / getCommonProperties

Function getCommonProperties

src/main/lib/analytics.ts:73–85  ·  view source on GitHub ↗

* Get common properties for all events

()

Source from the content-addressed store, hash-verified

71 * Get common properties for all events
72 */
73function getCommonProperties() {
74 return {
75 source: "desktop", // Unified source for desktop vs web analytics
76 app_version: app.getVersion(),
77 platform: process.platform,
78 arch: process.arch,
79 electron_version: process.versions.electron,
80 node_version: process.versions.node,
81 // Analytics enrichment properties
82 subscription_plan: cachedSubscriptionPlan,
83 connection_method: cachedConnectionMethod,
84 }
85}
86
87/**
88 * Set opt-out status (called from renderer when user preference changes)

Callers 2

captureFunction · 0.70
identifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected