* Get common properties for all events
()
| 71 | * Get common properties for all events |
| 72 | */ |
| 73 | function 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) |