Replace EventLogger with typed AnalyticsManager using PostHog
Complete analytics overhaul: delete EventLogger.swift, create Analytics.swift with typed event enum (~45 events), screen tracking, super properties (theme, icon pack, voting layout, etc.), session replay with kill switch, autocapture, and network telemetry. Replace all 99 call sites across 38 files with compiler-enforced typed events in object_action naming convention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -254,11 +254,7 @@ class HealthKitManager: ObservableObject {
|
||||
syncStatus = "Synced \(successCount), failed \(failCount)"
|
||||
}
|
||||
logger.info("HealthKit sync complete: \(successCount) succeeded, \(failCount) failed")
|
||||
EventLogger.log(event: "healthkit_sync_complete", withData: [
|
||||
"total": totalToSync,
|
||||
"success": successCount,
|
||||
"failed": failCount
|
||||
])
|
||||
AnalyticsManager.shared.track(.healthKitSyncCompleted(total: totalToSync, success: successCount, failed: failCount))
|
||||
}
|
||||
|
||||
// MARK: - Delete All Moods from HealthKit
|
||||
|
||||
Reference in New Issue
Block a user