()
| 112 | } |
| 113 | |
| 114 | private async saveSettings(): Promise<void> { |
| 115 | if (!this.settings) return; |
| 116 | |
| 117 | try { |
| 118 | localStorage.setItem(ANALYTICS_STORAGE_KEY, JSON.stringify(this.settings)); |
| 119 | } catch (error) { |
| 120 | console.error('Failed to save analytics settings:', error); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | private generateAnonymousId(): string { |
| 125 | // Generate a UUID v4 |
no outgoing calls
no test coverage detected